Course Home | Assignments | Computing Resources | Lab Hours/Tutoring | Schedule

Saint Louis University

Computer Science 146
Object-Oriented Practicum

Michael Goldwasser

Fall 2010

Dept. of Math & Computer Science

Assignment 03

Matrix Multiplication

Overview

Topic: Matrix Multiplication
Due: 11:59pm Tuesday, 21 September 2010

Please make sure you adhere to the policies on academic integrity.


Your task

In class, we gave an initial implementation of the matrix class that supported construction, indexing, and addition, as well as scalar multiplication. Your goal is to implement the function to support matrix multiplications. It has signature

  matrix operator*(const matrix& other) const
Its responsibility is to return a new matrix that results when multiplying two matrices (e.g., A*B).

We are providing the basic framework for the matrix class, and a very simple driver named test that allows you to enter the name of a file that contains data for two matrices, separated by a blank line, and which reads those matrices and then tries to perform the appropriate additions and multiplications based upon the dimensions of those matrices.


Files we are providing

If working on turing, change directories into a desired subdirectory of your home folder if desired, and to execute the following command verbatim

cp -R /Public/goldwasser/146/asgn03 .
This will cause a new folder named asgn03 to appear in your working directory including all files that you need for this assignment. Alternatively, these files can be downloaded individual from this website. There are four files in the distribution:

Submitting your project

When you are finished, the only file that I need from you is the source code matrix.h. Please attach that file to an email sent to me.


Michael Goldwasser
CSCI 146, Fall 2010
Last modified: Wednesday, 15 September 2010
Course Home | Assignments | Computing Resources | Lab Hours/Tutoring | Schedule