ME581_Assignment01

ME581_Assignment01 - ME 581 Assignment #1 In the following...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
ME 581 Assignment #1 In the following questions show the derivations that you used to write your program. 1. Write a subroutine to do matrix multiplication [ C ] = [ A ] [ B ] of arbitrary sized matrices. The input to the program should be: The first matrix [ A ], the number of rows of [ A ] and the number of columns of [ A ]. The second matrix [ B ], the number of columns of [ B ] (The number of rows of [ B ] is equal to the number of columns of [ A ]). The output of the subroutine is matrix [ C ]. Test your program using the following matrices: = 1 1 4 2 4 1 0 1 2 3 5 9 1 0 2 2 1 0 3 2 ] [ A = 4 1 1 3 4 3 2 1 0 4 1 0 2 1 2 ] [ B 2. Write a subroutine to do the multiplication C j = A ijk B ik of arbitrary sized multi-dimensional matrices. The input to the program should be: a. The multidimensional matrix [ A ], the maximum value of the indices of
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

ME581_Assignment01 - ME 581 Assignment #1 In the following...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online