URGENT : matrix multiplication

can anyone help me with a program that receives two square matrices from the serial interface one by one and performs matrix multiplication then resends the result matrix on the serial interface , refrences to read , or code to build up from .

You need to receive the matrix definitions in some format, store them in memory, perform the matrix multiplication, send the resulting matrix back over the serial interface (presumably in a similar format to the received. Individually, all of these seem simple enough.

Which part of this are you having trouble with?

If you just need matrix multiplication, why use an Arduino at all?

unfortunatley , it's an assignment in college , and i dodn't understand what they want definitely

Start small with Serial communication and work your way up.

I'm guessing this is URGENT because you didn't look at this until the last minute?

rma11: unfortunatley , it's an assignment in college , and i dodn't understand what they want definitely

So the assignment was: "Multiple a matrix on an Arduino. If necessary wait until the last minute and post in the forums"?

[quote author=James C4S link=topic=106559.msg799448#msg799448 date=1337475390]

rma11: unfortunatley , it's an assignment in college , and i dodn't understand what they want definitely

So the assignment was: "Multiple a matrix on an Arduino. If necessary wait until the last minute and post in the forums"? [/quote]

If you can help i will be thankful for you , if you can't KEEP SILENCE

am I wrong ?!

rma11: am I wrong ?!

Am I?

You still haven't said what part of your homework assignment you are having trouble with. If your expectation is to have someone write it for you, you can stop trying now.

rma11: am I wrong ?!

Wrong about what your assignment is? How would we know?

http://www.lmgtfy.com/?q=matrix+multiplication+c%2B%2B

Oh, you missed a part of the assignment. It also said, “Be really snotty about it when the forum slaves don’t send your assignment back completed immediately.”

maniacbug: Oh, you missed a part of the assignment. It also said, "Be really snotty about it when the forum slaves don't send your assignment back completed immediately."

That must have been in the extra credit portion of the assignment description.

OK serious questions:

Can you post the code you have sofar? What did you expect? What did you get? What have you tried sofar?

What is the size of the square matrices? 5x5 4x4 3x3 2x2 1x1 ?

What Arduino are you using as there are square matrices that won't fit in an UNO, you might need a MEGA for them.

Should the code include matrix X vector?

Should the code include multiplication of different size square matrices?

Should the matrix multiplication algorithm include specific optimizations or algorithms like Gauss-Jordan elimination with partial pivoting?

The members of the matrices, are these char, byte, int, long, float ? (un)signed?

Should the code include error handling? - in the serial communication part (non digit input, missing bytes, checksum errors etc) - In the math part (overflow, underflow, divide by zero)

What are allowed baudrates for your application?

Are you familiar with the playground and tutorial sections of the Arduino where many example code snippets live?

Can you give an example of typical matrices?

In short, can you explain more about the assignment as it is not unambiguous to me yet

rma11: unfortunatley , it's an assignment in college , and i dodn't understand what they want definitely

I'm not sure what you mean by that, but if you don't understand your assignment you should get clarification from the person who set it.

... unfortunatley , it's an assignment in college ...

We could tell that by the 'URGENT' in the subject line.

Don

Maybe he went to AVRFreaks.net for help!

Maybe he went to AVRFreaks.net for help!

If he did I sure he is sorry about that choice by now.

Don

We should add that to the FAQ! http://arduino.cc/forum/index.php/topic,97455.0.html

"If you're unable to get your question answered by the friendly folks on the Arduino forums, please check out avrfreaks.net for further assistance."

I think we have well-and-truly scared off the OP by now. Either that or it wasn't as urgent as he made out.