Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Matrix.C File Reference

Implementation of a limited matrix class. More...

#include "Matrix.h"
#include <cmath>
#include <cassert>
#include <iostream>
Include dependency graph for Matrix.C:

Go to the source code of this file.

Functions

ostream & operator<< (ostream &output, const Matrix &m)
 

Detailed Description

Implementation of a limited matrix class.

Supports 3 by 2, and 3 by 3 matrices.

Definition in file Matrix.C.

Function Documentation

ostream& operator<< ( ostream &  output,
const Matrix &  m 
)

Definition at line 92 of file Matrix.C.

92  {
93  for (int r = 0; r <m.rows_; r++){
94  for (int c = 0; c < m.cols_; c++){
95  output << m(r,c) << " ";
96  }
97  output << endl;
98  }
99  return output;
100 }