Matrix Operations in C#

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
 
A

AnsweringMachine

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
 
L

Larry Lard

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.
 
G

Guest

Hi Larry,
is this library part of Visual Studio.. Can you email me more details on this
Thanks
-zelma
 
K

Kevin Spencer

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.
 
G

Greg Young

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top