Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please make sure program is done in MIPS in mars simulator. Problem 3: Vector Matrix Multiplication (20 Marks) Given a MxN matrix A and an

Please make sure program is done in MIPS in mars simulator.

image text in transcribed

Problem 3: Vector Matrix Multiplication (20 Marks) Given a MxN matrix A and an N dimensional vector x. Matrix Vector product of Ax=B is shown below: For example: A= A 11 A12 X = Aiz A23 (x1,x2, X3) A2, A22 [ - A 1 Aiz AX = + Arz .X + A13 X3 All .X, Aiz A23 Xi X2 Azi A22 . A21. X + A22. X2 + .3. 3 for A= 1 -1 2 and X = (2, 1,0) 0 -3 1 2 1.2 1 - 1 - 1 AX 5 0 2 1 - JA + (-1). 1 t 2.0 + (-3).1 + 1. 0.2 -3 Perform the matrix vector multiplication by assuming the following: 1. Size of the matrix (M, N) is written in the memory at address 0x10010000 and Ox 10010004. 2. Starting the from the very next location 0x10010008, matrix A is written in row-major order in contiguous memory location. 3. After the matrix A, the vector X is written in contiguous memory locations. 4. Store the result vector B from the very next location after the Input vector X ends. You can test your program using given Matrix A and vector x below. A= 3 1 4 2 5 6 x=(1, 2, 3) Output vector B = (14, 32)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Microsoft Visual Basic 2005 For Windows Mobile Web Office And Database Applications Comprehensive

Authors: Gary B. Shelly, Thomas J. Cashman, Corinne Hoisington

1st Edition

0619254823, 978-0619254827

More Books

Students also viewed these Databases questions

Question

Why might managers be compelled to adopt a global approach to HRM?

Answered: 1 week ago