446,318 Members | 2,300 Online
Need help? Post your question and get tips & solutions from a community of 446,318 IT Pros & Developers. It's quick & easy.

# Matrix Operations in C#

 P: n/a 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 Aug 2 '06 #1
7 Replies

 P: n/a 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 wrote: 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 Aug 3 '06 #2

 P: n/a 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"

 P: n/a ZS wrote: 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. -- Larry Lard la*******@googlemail.com The address is real, but unread - please reply to the group For VB and C# questions - tell us which version Aug 3 '06 #4

 P: n/a Hi Larry, is this library part of Visual Studio.. Can you email me more details on this Thanks -zelma "Larry Lard" wrote: ZS wrote: 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. -- Larry Lard la*******@googlemail.com The address is real, but unread - please reply to the group For VB and C# questions - tell us which version Aug 3 '06 #5

 P: n/a ZS http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet If replying to the group, please do not mail me too Aug 3 '06 #6

 P: n/a 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. "Jon Skeet [C# MVP]" is this library part of Visual Studio.. Can you email me more details onthis Google is a wonderful tool. A search for "mathnet numerics" found this at the top of the is: http://nmath.sourceforge.net/doc/num....Numerics.html For the download page etc, just go to: http://nmath.sourceforge.net -- Jon Skeet - http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet If replying to the group, please do not mail me too Aug 3 '06 #7

 P: n/a sorry nmath is open source .. must have not had my coffee yet :) "Greg Young" HiI'm trying to do matrix operations in C#. Is there a API that can beused.Like for eg. I have 2 vectorsVector 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 listandthiscomparison should be done for a minimum of 200 ArrayList. How fast wouldthis operation be if I was scanning thru the list everytime.-Zelma Aug 3 '06 #8

### This discussion thread is closed

Replies have been disabled for this discussion.