Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

SMatrix.cpp File Reference

#include "SMatrix.h"

Include dependency graph for SMatrix.cpp:

Include dependency graph

Go to the source code of this file.

Defines

#define min(a, b)   ( a<b ? a : b )
#define max(a, b)   ( a>b ? a : b )
#define checkNRows(M)   (m_NRows==M.m_NRows)
#define checkNCols(M)   (m_NCols==M.m_NCols)
#define checkDims(M)   (checkNRows(M) && checkNCols(M))

Functions

SMatrix operator * (const double s, const SMatrix &m)
 Multiplies a scalar by a matrix.
ostream & operator<< (ostream &ofp, const SMatrix &A)
istream & operator>> (istream &ifp, SMatrix &A)


Define Documentation

#define checkDims  )     (checkNRows(M) && checkNCols(M))
 

Definition at line 28 of file SMatrix.cpp.

Referenced by SMatrix::operator *=(), SMatrix::operator+(), SMatrix::operator+=(), SMatrix::operator-(), and SMatrix::operator-=().

#define checkNCols  )     (m_NCols==M.m_NCols)
 

Definition at line 27 of file SMatrix.cpp.

Referenced by SMatrix::vertCat().

#define checkNRows  )     (m_NRows==M.m_NRows)
 

Definition at line 26 of file SMatrix.cpp.

Referenced by SMatrix::horizCat().

#define max a,
 )     ( a>b ? a : b )
 

Definition at line 12 of file SMatrix.cpp.

#define min a,
 )     ( a<b ? a : b )
 

Definition at line 9 of file SMatrix.cpp.


Function Documentation

SMatrix operator * const double  s,
const SMatrix m
 

Multiplies a scalar by a matrix.

Definition at line 442 of file SMatrix.cpp.

ostream& operator<< ostream &  ofp,
const SMatrix A
 

Definition at line 512 of file SMatrix.cpp.

References dword, SMatrix::m_Data, SMatrix::m_NCols, and SMatrix::m_NRows.

istream& operator>> istream &  ifp,
SMatrix A
 

Definition at line 525 of file SMatrix.cpp.

References dword, SMatrix::m_Data, SMatrix::m_NCols, and SMatrix::m_NRows.


Generated on Wed Dec 15 21:20:46 2004 for vuVolume by  doxygen 1.3.9.1