Home All Groups Group Topic Archive Search About

Math class for Visual Basic.NET (matrix operations)

Author
28 Oct 2006 12:00 AM
Ing. Carlos Villaseñor M.
Hi everybody!

I have developed in C# and got in a news group a math class that make matrix
operations, eigenvals, eigenvecs, stat functions and much more, but now I
trying to develop software in Visual Basic.NET and wondering if does exist
something like that for Basic.NET.

I appreciate some help

Thank you
Carlos Villaseñor

Author
28 Oct 2006 12:03 AM
Herfried K. Wagner [MVP]
"Ing. Carlos Villaseñor M." <cvmdis***@avantel.net> schrieb:
> I have developed in C# and got in a news group a math class that make
> matrix
> operations, eigenvals, eigenvecs, stat functions and much more, but now I
> trying to develop software in Visual Basic.NET and wondering if does exist
> something like that for Basic.NET.

Compile the C# class to a DLL file (project type Class Library) and
reference the project/library from your VB project.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://dotnet.mvps.org/dotnet/faqs/>
Author
28 Oct 2006 10:02 AM
Theo Verweij
Correct, but look at the VisualBasic Namespace; a lot of these functions
are standard in VB.

Herfried K. Wagner [MVP] wrote:
Show quoteHide quote
> "Ing. Carlos Villaseñor M." <cvmdis***@avantel.net> schrieb:
>> I have developed in C# and got in a news group a math class that make
>> matrix
>> operations, eigenvals, eigenvecs, stat functions and much more, but now I
>> trying to develop software in Visual Basic.NET and wondering if does
>> exist
>> something like that for Basic.NET.
>
> Compile the C# class to a DLL file (project type Class Library) and
> reference the project/library from your VB project.
>
Author
28 Oct 2006 10:25 AM
Cor Ligthert [MVP]
Yea, that is more likely the most correct answer in my idea.
Author
28 Oct 2006 10:33 AM
Herfried K. Wagner [MVP]
"Theo Verweij" <tverw***@xs4all.nl> schrieb:
>Correct, but look at the VisualBasic Namespace; a lot of these functions
>are standard in VB.

Matrix operation functions?!

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://dotnet.mvps.org/dotnet/faqs/>
Author
28 Oct 2006 10:39 AM
Theo Verweij
No.

But a lot of other stuff, like stat functions are available.

Herfried K. Wagner [MVP] wrote:
Show quoteHide quote
> "Theo Verweij" <tverw***@xs4all.nl> schrieb:
>> Correct, but look at the VisualBasic Namespace; a lot of these
>> functions are standard in VB.
>
> Matrix operation functions?!
>
Author
28 Oct 2006 11:44 AM
Jaap Bos
"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> schreef in bericht
news:eSTKMyn%23GHA.4524@TK2MSFTNGP04.phx.gbl...
> "Theo Verweij" <tverw***@xs4all.nl> schrieb:
>>Correct, but look at the VisualBasic Namespace; a lot of these functions
>>are standard in VB.
>
> Matrix operation functions?!
>
> --
> M S   Herfried K. Wagner
> M V P  <URL:http://dotnet.mvps.org/>
> V B   <URL:http://dotnet.mvps.org/dotnet/faqs/>
>

When some time ago I wanted to use matrix operations the only things I found
were the 3x3 matrices used in translating/rotating/shearing and so on.
So in the end had had to write my own methods for matrix multiplication and
matrix inversion in vb2005 express..
Have I overlooked something...?

Greetings
Author
28 Oct 2006 2:43 PM
Tim Patrick
The GDI+ libraries in .NET include some matrix transformation methods, but
they are specifically designed to work with .NET's view of a graphics canvas.
There are a few matrix features in the book "Visual Basic 2005 Cookbook"
by O'Reilly Media, including matrix inversion, but it sounds like you may
already have some of those basics written.

-----
Tim Patrick
Start-to-Finish Visual Basic 2005

Show quoteHide quote
> "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> schreef in
> bericht news:eSTKMyn%23GHA.4524@TK2MSFTNGP04.phx.gbl...
>
>> "Theo Verweij" <tverw***@xs4all.nl> schrieb:
>>
>>> Correct, but look at the VisualBasic Namespace; a lot of these
>>> functions are standard in VB.
>>>
>> Matrix operation functions?!
>>
>> --
>> M S   Herfried K. Wagner
>> M V P  <URL:http://dotnet.mvps.org/>
>> V B   <URL:http://dotnet.mvps.org/dotnet/faqs/>
> When some time ago I wanted to use matrix operations the only things I
> found
> were the 3x3 matrices used in translating/rotating/shearing and so on.
> So in the end had had to write my own methods for matrix
> multiplication and
> matrix inversion in vb2005 express..
> Have I overlooked something...?
> Greetings
>
Author
28 Oct 2006 3:43 PM
Dennis
I have a set of functions written in VB3 and also a set in VB.Net.  If you
want, I can e-mail them to you.  My e-mail is dhin***@houston.rr.com
--
Dennis in Houston


Show quoteHide quote
"Ing. Carlos Villaseñor M." wrote:

> Hi everybody!
>
> I have developed in C# and got in a news group a math class that make matrix
> operations, eigenvals, eigenvecs, stat functions and much more, but now I
> trying to develop software in Visual Basic.NET and wondering if does exist
> something like that for Basic.NET.
>
> I appreciate some help
>
> Thank you
> Carlos Villaseñor
>
>
>
Author
30 Oct 2006 4:33 PM
Trifon
You may find this interesting: http://www.bluebit.gr/NET/
Author
30 Oct 2006 9:24 PM
Jaap Bos
"Trifon" <trif***@otenet.gr> schreef in bericht
news:1162226019.366252.303850@e3g2000cwe.googlegroups.com...
> You may find this interesting: http://www.bluebit.gr/NET/
>
Yes, looks nice!
But still, should VB2005 not include basic matrix functions?

I'm (trying) porting some programs from TranEraHTBasic to VB. It came as a
bit of surprise to me that in VB2005 I had to write my own routines to do
matrix multiplication and matrix inversion. These are simply commands in
TransEraHTBasic (even in the 15-years old edition I'm using).
These commands are not too esoteric, if you work with e.g. simultaneous
equations, you really need them!
Suppose that you would want to calculate the square root of a number. And
there was not a function for that in VB2005!
I don't think anyone would be satisfied with the idee that if you wanted to
do that, that there is always the possibility to use third party software to
achieve this.

Greetings

Jaap