1) How would you do this if you were doing it by hand? Probably something like this:
- scale B by 5.
- subtract that matrix from A
2) what do you mean? It looks to me like you need to define subtractMatrices and scalarMultiply, but otherwise I don't understand what you need to define.
3) You do need to do the extra calls in main() to get the A-5B result.
4) You should use [code] tags when you post so we can read your code easily.
PS - it's int main() not void main()
Last edited by Infarction; Dec 11th, 2006 at 2:58 pm.
Reputation Points: 683
Solved Threads: 53
Posting Virtuoso
Offline 1,580 posts
since May 2006