Module 5.1 - Algebraic Methods - Matrix/Matrix Arithmetic
We've seen the declaration of vectors (1-dimensional arrays) in Modules 4.1 and 4.2, and 2-dimensional arrays, or matrices, in this module.
- How would the declaration look for 3 dimensional arrays? Arrays of 4 dimensions?
And we've seen how to use nested for loops to multiply a matrix by a vector for a vector result in this module, as well as a doubly-nested for loop for the multiplication of 2 dimensional arrays.
- What C set of nested or combined C structures would it take to implement the multiplication of a vector by a 3 dimensional array? Or a 2 dimensional array by a 3 dimensional array? How about multiplying arrays in 3 dimensions by each other?
- What about this same series of multiplications for arrays in 4 dimensions?
Take a look at some web sites that show these types of arithmetical operations on arrays, and discuss their implementations with your classmates.
Continue to Module 5.2 - Algebraic Methods ->