Click here to Skip to main content
12,510,824 members (52,761 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C# .NET
how is the program for matrix multiplication written in C# and .NET?
Posted 19-Jun-12 7:39am
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

It does not work like this here.

Here is what is expected of enquirers:
1. TRY first what you want to do! You may find that it's not that hard.
2. Formulate what was done by you that looks like an issue/not working.

Try them and tell if you face issues.
Members will be more than happy to help like this.


For now, start from here:
MSDN: Matrix.Multiply Method [^]
Harness the Features of C# to Power Your Scientific Computing Projects[^]
  Permalink  
Comments
CIDev 19-Jun-12 14:13pm
   
I like your answer, +5 :)
VJ Reddy 20-Jun-12 22:35pm
   
Good answer. 5!
alireza1246 9-May-14 2:44am
   
Five 4 this Solution :)
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

for (int i = 0; i < N; i++) {
    for (int j = 0; j < N; j++) {
        for (int k = 0; k < N; k++) {
            C[i,j] += A[i,k] * B[k,j];
        }
    }
}
  Permalink  
Comments
alireza1246 9-May-14 2:45am
   
Thank u!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160929.1 | Last Updated 12 Oct 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100