Click here to Skip to main content
Rate this: bad
good
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 at 19-Jun-12 14:13pm
   
I like your answer, +5 :)
VJ Reddy at 20-Jun-12 22:35pm
   
Good answer. 5!
alireza1246 at 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 at 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
0 OriginalGriff 517
1 CPallini 460
2 Sergey Alexandrovich Kryukov 358
3 George Jonsson 251
4 BillWoodruff 224
0 OriginalGriff 5,370
1 CPallini 4,360
2 Sergey Alexandrovich Kryukov 3,822
3 George Jonsson 3,037
4 Gihan Liyanage 2,435


Advertise | Privacy | Mobile
Web01 | 2.8.140916.1 | Last Updated 12 Oct 2012
Copyright © CodeProject, 1999-2014
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