|
||||||
| C and C++ C and C++ forum for discussing all forms of C except for C#. These languages are powerful low level languages used for creating Operating Systems, Device Drivers, compilers and much more. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
Working with C on ms visual studio2005:
Is there a way i can multiply 2 matrices (dimensions of NxM) without having to do dot product? can anyone post an example source code? here are two matrices for example: set A: (3x3) 1 -5 6 3 5 -7 9 8 4 set B: (3x3) 2 -3 4 -8 7 5 6 1 9 |
| Sponsored Links |
|
|
|
|||||
|
What do you mean by a "dot product"?
I would run through the matrices using a loop.
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum C/C++ resources - C/C++ frequently asked questions Python resources - Python frequently asked questions I'm always up for a chat, so feel free to contact me... |
|
|||||
|
I believe the Boost library has support for matrix classes, which might take care of your problem for you. If you are manually creating matrices, then I would create the class and overload the * operator.
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Tutorial: C++ Functions | Jordan | C Tutorials | 2 | 04-22-2008 02:09 PM |
| Understanding the differences between a class and struct in C# : | Jordan | CSharp Tutorials | 4 | 04-20-2008 09:32 AM |
| sizeof Struct | Eagle_ | C and C++ | 2 | 11-18-2007 10:15 AM |
| Need help on matrix. | sania21 | Java Help | 15 | 06-28-2007 03:29 AM |
| Flex, bison multifunction calculator | annatsos | C and C++ | 1 | 01-04-2007 06:00 AM |
| Xav | ........ | 1359.44 |
| MeTh0Dz|Reb0rn | ........ | 1072.63 |
| WingedPanther | ........ | 911.18 |
| marwex89 | ........ | 906.86 |
| morefood2001 | ........ | 899.18 |
| John | ........ | 887.37 |
| Brandon W | ........ | 770.65 |
| chili5 | ........ | 312.39 |
| Steve.L | ........ | 264.99 |
| dcs | ........ | 232.34 |
Goal: 100,000 Posts
Complete: 83%