Matrix Operations in C#

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi
I'm trying to do matrix operations in C#. Is there a API that can be used.
Like for eg. I have 2 vectors
Vector A: [1 0 1 0]
Vector B : [0 1 0 1]
Vector B - Vector A = [-1 1 -1 1]

Should just be using ArrayList for these.

Considering that there could be at least 96 elements in each array list and
this

comparison should be done for a minimum of 200 ArrayList. How fast would
this operation be if I was scanning thru the list everytime.

-Zelma
 
I guess you'll have to devise your own classes for this.

The built-in Matrix class in .NET encapsulates a 3-by-3 affine matrix
that represents a geometric transform to be used with GDI+.

Zheng Tan
 
ZS said:
Hi
I'm trying to do matrix operations in C#. Is there a API that can be used.

I've used the Mathnet Numerics library before. It works fine and has a
whole load of stuff in it.
 
Hi Larry,
is this library part of Visual Studio.. Can you email me more details on this
Thanks
-zelma
 
Don't forget the DirectX managed and unmanaged namespaces and classes. Lots
and lots of good stuff there.

--
HTH,

Kevin Spencer
Microsoft MVP
Chicken Salad Surgery

Who is Mighty Abbott? A twin-turret scalawag.
 
sorry nmath is open source .. must have not had my coffee yet :)
Greg Young said:
nmath might be worth taking a look at but it costs money .. this is a feww
library http://www.codeproject.com/csharp/PsDotNetMatrix.asp

Cheers,

Greg Young
MVP - C#
http://codebetter.com/blogs/gregyoung

ZS said:
Hi
I'm trying to do matrix operations in C#. Is there a API that can be
used.
Like for eg. I have 2 vectors
Vector A: [1 0 1 0]
Vector B : [0 1 0 1]
Vector B - Vector A = [-1 1 -1 1]

Should just be using ArrayList for these.

Considering that there could be at least 96 elements in each array list
and
this

comparison should be done for a minimum of 200 ArrayList. How fast would
this operation be if I was scanning thru the list everytime.

-Zelma
 
Back
Top