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

Saint Louis University

Computer Science 146
Object-Oriented Practicum

Michael Goldwasser

Spring 2012

Dept. of Math & Computer Science

Assignment 03

Matrix Multiplication

Overview

Topic: Matrix Multiplication
Due: 11:59pm Tuesday, 8 February 2012

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

Your assignment should be submitted electronically (details on the submission process). The only file that I need from you is the source code matrix.h.


Michael Goldwasser
CSCI 146, Spring 2012
Last modified: Saturday, 17 September 2011
Course Home | Assignments | Computing Resources | Lab Hours/Tutoring | Questionnaire | Schedule | Submit