I'm asked to implement matrix multiplication. So far, the code I have: (define mult (λ (m1 m2) (if (or (empty? m1) (empty? m2)) '() (map vec-mult m1 m2))))
only generates a list of lists. Each of the inner lists must be summed up to give me the values along the diagonal to add in order to generate the elements. I'm stuck at the part of how I should do the 2D multiplication so that each row in m1 is multiplied by each row in m2 (hence the vector - matrix multiplication). I also have "transpose" and "vec-mult" implemented. Please give me a hint on how I should approach this problem. The prof wants us to use transpose and map but I just don't see how it has to be done.
Thanks