Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

Matrix Class Reference

#include <matrix.h>

List of all members.

Public Member Functions

 Matrix ()
 Matrix (double InitVal, int Rows, int Cols)
 Matrix (double *Data, int Rows, int Cols)
 Matrix (double **Data, int Rows, int Cols)
 Matrix (const Matrix &obj)
 ~Matrix ()
Matrix & operator+ (const Matrix &obj) const
Matrix & operator- (const Matrix &obj) const
Matrix & operator * (const Matrix &obj) const
Matrix & operator * (const double _d) const
Matrix & operator * (const int _i) const
Matrix & operator/ (const Matrix &obj) const
Matrix & operator/ (const double _d) const
Matrix & operator/ (const int _i) const
Matrix & operator+= (const Matrix &obj)
Matrix & operator-= (const Matrix &obj)
Matrix & operator *= (const Matrix &obj)
Matrix & operator *= (const double _d)
Matrix & operator *= (const int _i)
Matrix & operator/= (const Matrix &obj)
Matrix & operator/= (const double _d)
Matrix & operator/= (const int _i)
Matrix & operator= (const Matrix &obj)
Matrix & operator~ () const
bool operator== (const Matrix &obj) const
bool operator!= (const Matrix &obj) const
double * operator[] (const int _i) const
double & operator() (const int _i, const int _j) const
bool IsIdentity () const
bool IsEmpty () const
double Determinant () const
double SumAll () const
double SumAllSquared () const
double SumRow (const int Row) const
double SumColumn (const int Col) const
double SumRowSquared (const int Row) const
double SumColumnSquared (const int Col) const
double GetMax () const
double GetMin () const
double GetRowMax (const int Row) const
double GetRowMin (const int Row) const
double GetColumnMax (const int Col) const
double GetColumnMin (const int Col) const
double GetRange () const
double GetRowRange (const int Row) const
double GetColumnRange (const int Col) const
double * GetDataOneDimen () const
double ** GetDataTwoDimen () const
int GetRows () const
int GetColumns () const
Matrix & Clear ()
Matrix & ClearRow (const int Row)
Matrix & ClearColumn (const int Col)
Matrix & SetValue (int Row, int Col, double _d)
Matrix & Fill (const double _d)
Matrix & FillRow (const int Row, const double _d)
Matrix & FillColumn (const int Col, const double _d)
Matrix & GetInverse () const
Matrix & Invert ()
Matrix & AddRows (const int SourceRow, const int DestRow, const double factor=1)
Matrix & MultiplyRow (const int Row, const double _d)
Matrix & DivideRow (const int Row, const double _d)
Matrix & AddColumns (const int SourceCol, const int DestCol, const double factor=1)
Matrix & MultiplyColumn (const int Col, const double _d)
Matrix & DivideColumn (const int Col, const double _d)
Matrix & REF ()
Matrix & RREF ()
Matrix & GetREF () const
Matrix & GetRREF () const
Matrix & CholeskyDecomposition ()
 Cholesky decomposition I added.

Matrix & GetMinor (const int RowSpot, const int ColSpot) const
Matrix * GetMinorNew (const int RowSpot, const int ColSpot) const
Matrix & GetSubMatrix (const int RowSpot, const int ColSpot, const int RowLen, const int ColLen) const
Matrix & SetSubMatrix (const int RowSpot, const int ColSpot, const int RowLen, const int ColLen)
Matrix & SwapRows (const int Row1, const int Row2)
Matrix & SwapCols (const int Col1, const int Col2)
Matrix & GetTransposed () const
Matrix & Transpose ()
Matrix & GetNumericRange (double &Min, double &Max) const
Matrix & GetNumericRangeOfRow (double &Min, double &Max, const int Row) const
Matrix & GetNumericRangeOfColumn (double &Min, double &Max, const int Col) const
Matrix & CMAR (const Matrix &obj)
Matrix & CMAC (const Matrix &obj)
Matrix & GetCMAR (const Matrix &obj) const
Matrix & GetCMAC (const Matrix &obj) const
Matrix & ConcatenateRow (const double *RowData)
Matrix & ConcatenateColumn (const double *ColumnData)
Matrix & SpliceInRow (const double *RowData, const int RowSpot)
Matrix & SpliceInColumn (const double *ColumnData, const int ColumnSpot)
Matrix & RemoveRow (const int Row)
Matrix & RemoveColumn (const int Column)
Matrix & SortAscend ()
Matrix & SortDescend ()
Matrix & GetNormalized (const double Min, const double Max) const
Matrix & Normalize (const double Min, const double Max)
Matrix & GetCovariant () const
Matrix & MakeCovariant ()
void Display () const
void Output (ostream &ostr=cout) const
void Input (istream &istr=cin)
void Read (ifstream &istr)
void Write (ofstream &ostr) const

Static Public Member Functions

Matrix & IdentityMatrix (int Diagonal)

Private Member Functions

Matrix & RightAppendIdentity ()
Matrix & LeftRemoveIdentity ()

Private Attributes

double ** m_pData
int m_nCols
int m_nRows


Detailed Description

Author:
Yann

Definition at line 19 of file matrix.h.


Constructor & Destructor Documentation

Matrix::Matrix (   ) 
 

Definition at line 55 of file matrix.cpp.

References m_nCols, m_nRows, and m_pData.

Referenced by CholeskyDecomposition(), GetMinor(), GetMinorNew(), GetSubMatrix(), GetTransposed(), IdentityMatrix(), LeftRemoveIdentity(), operator *(), operator+(), operator-(), operator/(), RightAppendIdentity(), SortAscend(), and SortDescend().

Matrix::Matrix (  double  InitVal,
int  Rows,
int  Cols
) 
 

Definition at line 64 of file matrix.cpp.

References m_nCols, m_nRows, and m_pData.

Matrix::Matrix (  double *  Data,
int  Rows,
int  Cols
) 
 

Definition at line 81 of file matrix.cpp.

References m_nCols, m_nRows, and m_pData.

Matrix::Matrix (  double **  Data,
int  Rows,
int  Cols
) 
 

Definition at line 98 of file matrix.cpp.

References m_nCols, m_nRows, and m_pData.

Matrix::Matrix (  const Matrix &  obj  ) 
 

Definition at line 113 of file matrix.cpp.

References m_nCols, m_nRows, and m_pData.

Matrix::~Matrix (   ) 
 

Definition at line 128 of file matrix.cpp.

References m_nRows, and m_pData.


Member Function Documentation

Matrix & Matrix::AddColumns (  const int  SourceCol,
const int  DestCol,
const double  factor = 1
) 
 

Definition at line 794 of file matrix.cpp.

References m_nRows, and m_pData.

Matrix & Matrix::AddRows (  const int  SourceRow,
const int  DestRow,
const double  factor = 1
) 
 

Definition at line 762 of file matrix.cpp.

References m_nCols, and m_pData.

Referenced by REF(), and RREF().

Matrix & Matrix::CholeskyDecomposition (   ) 
 

Cholesky decomposition I added.

Definition at line 1062 of file matrix.cpp.

References GetRows(), m_pData, Matrix(), and Real.

Referenced by mainmatrix(), MCEngine::RunEngineRainbow2AssetsBasketMax(), MCEngine::RunEngineRainbow2SpreadOptionMax(), MCEngine::RunEngineRainbowBestOf2AssetsCash(), MCEngine::RunEngineRainbowMax2AssetsCall(), MCEngine::RunEngineRainbowMax2AssetsPut(), MCEngine::RunEngineRainbowMin2AssetsCall(), MCEngine::RunEngineRainbowMin2AssetsPut(), and MCEngine::RunEngineRainbowWorstOf2AssetsCash().

Matrix & Matrix::Clear (   ) 
 

Definition at line 664 of file matrix.cpp.

References m_nCols, m_nRows, and m_pData.

Matrix & Matrix::ClearColumn (  const int  Col  ) 
 

Definition at line 686 of file matrix.cpp.

References m_nRows, and m_pData.

Matrix & Matrix::ClearRow (  const int  Row  ) 
 

Definition at line 676 of file matrix.cpp.

References m_nCols, and m_pData.

Matrix & Matrix::CMAC (  const Matrix &  obj  ) 
 

Definition at line 1118 of file matrix.cpp.

References ErrorMsg(), m_nCols, m_nRows, and m_pData.

Referenced by GetCMAC().

Matrix & Matrix::CMAR (  const Matrix &  obj  ) 
 

Definition at line 1094 of file matrix.cpp.

References ErrorMsg(), m_nCols, m_nRows, and m_pData.

Referenced by GetCMAR().

Matrix & Matrix::ConcatenateColumn (  const double *  ColumnData  ) 
 

Definition at line 1183 of file matrix.cpp.

References m_nCols, m_nRows, and m_pData.

Matrix & Matrix::ConcatenateRow (  const double *  RowData  ) 
 

Definition at line 1163 of file matrix.cpp.

References m_nCols, m_nRows, and m_pData.

double Matrix::Determinant (   )  const
 

Definition at line 430 of file matrix.cpp.

References ErrorMsg(), GetMinorNew(), m_nCols, m_nRows, m_pData, and q.

void Matrix::Display (   )  const
 

Definition at line 1379 of file matrix.cpp.

References m_nCols, m_nRows, and m_pData.

Matrix & Matrix::DivideColumn (  const int  Col,
const double  _d
) 
 

Definition at line 814 of file matrix.cpp.

References ErrorMsg(), m_nRows, and m_pData.

Matrix & Matrix::DivideRow (  const int  Row,
const double  _d
) 
 

Definition at line 782 of file matrix.cpp.

References ErrorMsg(), m_nCols, and m_pData.

Referenced by REF(), and RREF().

Matrix & Matrix::Fill (  const double  _d  ) 
 

Definition at line 705 of file matrix.cpp.

References m_nCols, m_nRows, and m_pData.

Matrix & Matrix::FillColumn (  const int  Col,
const double  _d
) 
 

Definition at line 727 of file matrix.cpp.

References m_nRows, and m_pData.

Matrix & Matrix::FillRow (  const int  Row,
const double  _d
) 
 

Definition at line 717 of file matrix.cpp.

References m_nCols, and m_pData.

Matrix & Matrix::GetCMAC (  const Matrix &  obj  )  const
 

Definition at line 1152 of file matrix.cpp.

References CMAC().

Matrix & Matrix::GetCMAR (  const Matrix &  obj  )  const
 

Definition at line 1140 of file matrix.cpp.

References CMAR().

double Matrix::GetColumnMax (  const int  Col  )  const
 

Definition at line 564 of file matrix.cpp.

References m_nRows, and m_pData.

double Matrix::GetColumnMin (  const int  Col  )  const
 

Definition at line 576 of file matrix.cpp.

References m_nRows, and m_pData.

double Matrix::GetColumnRange (  const int  Col  )  const
 

Definition at line 608 of file matrix.cpp.

References GetNumericRangeOfColumn().

int Matrix::GetColumns (   )  const
 

Definition at line 658 of file matrix.cpp.

References m_nCols.

Referenced by operator<<().

Matrix & Matrix::GetCovariant (   )  const
 

Definition at line 1359 of file matrix.cpp.

References Transpose().

Referenced by MakeCovariant().

double * Matrix::GetDataOneDimen (   )  const
 

Definition at line 619 of file matrix.cpp.

References m_nCols, m_nRows, and m_pData.

Referenced by SortAscend(), and SortDescend().

double ** Matrix::GetDataTwoDimen (   )  const
 

Definition at line 636 of file matrix.cpp.

References m_nCols, m_nRows, and m_pData.

Matrix & Matrix::GetInverse (   )  const
 

Definition at line 737 of file matrix.cpp.

References ErrorMsg(), LeftRemoveIdentity(), m_nCols, m_nRows, RightAppendIdentity(), and RREF().

Referenced by Invert(), operator/(), and operator~().

double Matrix::GetMax (   )  const
 

Definition at line 512 of file matrix.cpp.

References m_nCols, m_nRows, and m_pData.

double Matrix::GetMin (   )  const
 

Definition at line 526 of file matrix.cpp.

References m_nCols, m_nRows, and m_pData.

Matrix & Matrix::GetMinor (  const int  RowSpot,
const int  ColSpot
)  const
 

Definition at line 877 of file matrix.cpp.

References m_nCols, m_nRows, m_pData, and Matrix().

Matrix * Matrix::GetMinorNew (  const int  RowSpot,
const int  ColSpot
)  const
 

Definition at line 905 of file matrix.cpp.

References m_nCols, m_nRows, m_pData, and Matrix().

Referenced by Determinant().

Matrix & Matrix::GetNormalized (  const double  Min,
const double  Max
)  const
 

Definition at line 1325 of file matrix.cpp.

References Normalize().

Matrix & Matrix::GetNumericRange (  double &  Min,
double &  Max
)  const
 

Definition at line 1020 of file matrix.cpp.

References m_nCols, m_nRows, and m_pData.

Referenced by GetRange(), and Normalize().

Matrix & Matrix::GetNumericRangeOfColumn (  double &  Min,
double &  Max,
const int  Col
)  const
 

Definition at line 1048 of file matrix.cpp.

References m_nRows, and m_pData.

Referenced by GetColumnRange().

Matrix & Matrix::GetNumericRangeOfRow (  double &  Min,
double &  Max,
const int  Row
)  const
 

Definition at line 1035 of file matrix.cpp.

References m_nCols, and m_pData.

Referenced by GetRowRange().

double Matrix::GetRange (   )  const
 

Definition at line 588 of file matrix.cpp.

References GetNumericRange().

Matrix & Matrix::GetREF (   )  const
 

Definition at line 854 of file matrix.cpp.

References REF().

double Matrix::GetRowMax (  const int  Row  )  const
 

Definition at line 540 of file matrix.cpp.

References m_nCols, and m_pData.

double Matrix::GetRowMin (  const int  Row  )  const
 

Definition at line 552 of file matrix.cpp.

References m_nCols, and m_pData.

double Matrix::GetRowRange (  const int  Row  )  const
 

Definition at line 598 of file matrix.cpp.

References GetNumericRangeOfRow().

int Matrix::GetRows (   )  const
 

Definition at line 652 of file matrix.cpp.

References m_nRows.

Referenced by CholeskyDecomposition(), RainbowOption::getCorrelRisk(), operator<<(), RainbowOption::RainbowOption(), MCEngine::RunEngineRainbow2AssetsBasketMax(), MCEngine::RunEngineRainbow2SpreadOptionMax(), MCEngine::RunEngineRainbowBestOf2AssetsCash(), MCEngine::RunEngineRainbowMax2AssetsCall(), MCEngine::RunEngineRainbowMax2AssetsPut(), MCEngine::RunEngineRainbowMin2AssetsCall(), MCEngine::RunEngineRainbowMin2AssetsPut(), and MCEngine::RunEngineRainbowWorstOf2AssetsCash().

Matrix & Matrix::GetRREF (   )  const
 

Definition at line 865 of file matrix.cpp.

References RREF().

Matrix & Matrix::GetSubMatrix (  const int  RowSpot,
const int  ColSpot,
const int  RowLen,
const int  ColLen
)  const
 

Definition at line 933 of file matrix.cpp.

References m_pData, and Matrix().

Referenced by SetSubMatrix().

Matrix & Matrix::GetTransposed (   )  const
 

Definition at line 997 of file matrix.cpp.

References m_nCols, m_nRows, m_pData, and Matrix().

Referenced by mainmatrix(), and Transpose().

Matrix & Matrix::IdentityMatrix (  int  Diagonal  )  [static]
 

Definition at line 1452 of file matrix.cpp.

References m_pData, Matrix(), and q.

Referenced by IdentityMatrix().

void Matrix::Input (  istream &  istr = cin  ) 
 

Definition at line 1406 of file matrix.cpp.

References getint(), m_nCols, m_nRows, and m_pData.

Matrix & Matrix::Invert (   ) 
 

Definition at line 754 of file matrix.cpp.

References GetInverse().

bool Matrix::IsEmpty (   )  const
 

Definition at line 418 of file matrix.cpp.

References m_nCols, m_nRows, and m_pData.

bool Matrix::IsIdentity (   )  const
 

Definition at line 401 of file matrix.cpp.

References m_nCols, m_nRows, and m_pData.

Matrix & Matrix::LeftRemoveIdentity (   )  [private]
 

Definition at line 37 of file matrix.cpp.

References m_nCols, m_nRows, m_pData, and Matrix().

Referenced by GetInverse().

Matrix & Matrix::MakeCovariant (   ) 
 

Definition at line 1370 of file matrix.cpp.

References GetCovariant().

Matrix & Matrix::MultiplyColumn (  const int  Col,
const double  _d
) 
 

Definition at line 804 of file matrix.cpp.

References m_nRows, and m_pData.

Matrix & Matrix::MultiplyRow (  const int  Row,
const double  _d
) 
 

Definition at line 772 of file matrix.cpp.

References m_nCols, and m_pData.

Matrix & Matrix::Normalize (  const double  Min,
const double  Max
) 
 

Definition at line 1336 of file matrix.cpp.

References GetNumericRange(), m_nCols, m_nRows, and m_pData.

Referenced by GetNormalized().

Matrix & Matrix::operator * (  const int  _i  )  const
 

Definition at line 216 of file matrix.cpp.

References m_nCols, m_nRows, m_pData, and Matrix().

Matrix & Matrix::operator * (  const double  _d  )  const
 

Definition at line 201 of file matrix.cpp.

References m_nCols, m_nRows, m_pData, and Matrix().

Matrix & Matrix::operator * (  const Matrix &  obj  )  const
 

Definition at line 175 of file matrix.cpp.

References ErrorMsg(), m_nCols, m_nRows, m_pData, Matrix(), and q.

Matrix & Matrix::operator *= (  const int  _i  ) 
 

Definition at line 295 of file matrix.cpp.

Matrix & Matrix::operator *= (  const double  _d  ) 
 

Definition at line 289 of file matrix.cpp.

Matrix & Matrix::operator *= (  const Matrix &  obj  ) 
 

Definition at line 283 of file matrix.cpp.

bool Matrix::operator!= (  const Matrix &  obj  )  const
 

Definition at line 367 of file matrix.cpp.

References m_nCols, m_nRows, and m_pData.

double & Matrix::operator() (  const int  _i,
const int  _j
)  const
 

Definition at line 392 of file matrix.cpp.

References ErrorMsg(), m_nCols, m_nRows, and m_pData.

Matrix & Matrix::operator+ (  const Matrix &  obj  )  const
 

Definition at line 139 of file matrix.cpp.

References ErrorMsg(), m_nCols, m_nRows, m_pData, and Matrix().

Matrix & Matrix::operator+= (  const Matrix &  obj  ) 
 

Definition at line 271 of file matrix.cpp.

Matrix & Matrix::operator- (  const Matrix &  obj  )  const
 

Definition at line 157 of file matrix.cpp.

References ErrorMsg(), m_nCols, m_nRows, m_pData, and Matrix().

Matrix & Matrix::operator-= (  const Matrix &  obj  ) 
 

Definition at line 277 of file matrix.cpp.

Matrix & Matrix::operator/ (  const int  _i  )  const
 

Definition at line 254 of file matrix.cpp.

References ErrorMsg(), m_nCols, m_nRows, m_pData, and Matrix().

Matrix & Matrix::operator/ (  const double  _d  )  const
 

Definition at line 237 of file matrix.cpp.

References ErrorMsg(), m_nCols, m_nRows, m_pData, and Matrix().

Matrix & Matrix::operator/ (  const Matrix &  obj  )  const
 

Definition at line 231 of file matrix.cpp.

References GetInverse().

Matrix & Matrix::operator/= (  const int  _i  ) 
 

Definition at line 313 of file matrix.cpp.

Matrix & Matrix::operator/= (  const double  _d  ) 
 

Definition at line 307 of file matrix.cpp.

Matrix & Matrix::operator/= (  const Matrix &  obj  ) 
 

Definition at line 301 of file matrix.cpp.

Matrix & Matrix::operator= (  const Matrix &  obj  ) 
 

Definition at line 319 of file matrix.cpp.

References m_nCols, m_nRows, and m_pData.

bool Matrix::operator== (  const Matrix &  obj  )  const
 

Definition at line 352 of file matrix.cpp.

References m_nCols, m_nRows, and m_pData.

double * Matrix::operator[] (  const int  _i  )  const
 

Definition at line 383 of file matrix.cpp.

References ErrorMsg(), m_nRows, and m_pData.

Matrix & Matrix::operator~ (   )  const
 

Definition at line 346 of file matrix.cpp.

References GetInverse().

void Matrix::Output (  ostream &  ostr = cout  )  const
 

Definition at line 1394 of file matrix.cpp.

References m_nCols, m_nRows, and m_pData.

void Matrix::Read (  ifstream &  istr  ) 
 

Definition at line 1424 of file matrix.cpp.

References m_nCols, m_nRows, and m_pData.

Matrix & Matrix::REF (   ) 
 

Definition at line 826 of file matrix.cpp.

References AddRows(), DivideRow(), m_nRows, and m_pData.

Referenced by GetREF(), and RREF().

Matrix & Matrix::RemoveColumn (  const int  Column  ) 
 

Definition at line 1263 of file matrix.cpp.

References m_nCols, m_nRows, and m_pData.

Matrix & Matrix::RemoveRow (  const int  Row  ) 
 

Definition at line 1246 of file matrix.cpp.

References m_nCols, m_nRows, and m_pData.

Matrix & Matrix::RightAppendIdentity (   )  [private]
 

Definition at line 15 of file matrix.cpp.

References m_nCols, m_nRows, m_pData, Matrix(), and q.

Referenced by GetInverse().

Matrix & Matrix::RREF (   ) 
 

Definition at line 839 of file matrix.cpp.

References AddRows(), DivideRow(), m_nRows, m_pData, and REF().

Referenced by GetInverse(), and GetRREF().

Matrix & Matrix::SetSubMatrix (  const int  RowSpot,
const int  ColSpot,
const int  RowLen,
const int  ColLen
) 
 

Definition at line 949 of file matrix.cpp.

References GetSubMatrix().

Matrix & Matrix::SetValue (  int  Row,
int  Col,
double  _d
) 
 

Author:
Yann - I added setters for (i,j) - not clean but needed

Definition at line 696 of file matrix.cpp.

References m_nCols, m_nRows, and m_pData.

Referenced by RainbowOption::getCorrelRisk(), RainbowOption::getDelta(), RainbowOption::getGamma(), RainbowOption::getVega(), mainmatrix(), RainbowOption::RainbowOption(), MCEngine::RunEngineRainbow2AssetsBasketMax(), MCEngine::RunEngineRainbow2SpreadOptionMax(), MCEngine::RunEngineRainbowBestOf2AssetsCash(), MCEngine::RunEngineRainbowMax2AssetsCall(), MCEngine::RunEngineRainbowMax2AssetsPut(), MCEngine::RunEngineRainbowMin2AssetsCall(), MCEngine::RunEngineRainbowMin2AssetsPut(), MCEngine::RunEngineRainbowWorstOf2AssetsCash(), transform1DvalarrayToColumnMatrix(), and transform2DvalarrayToMatrix().

Matrix & Matrix::SortAscend (   ) 
 

Definition at line 1281 of file matrix.cpp.

References GetDataOneDimen(), m_nCols, m_nRows, and Matrix().

Matrix & Matrix::SortDescend (   ) 
 

Definition at line 1303 of file matrix.cpp.

References GetDataOneDimen(), m_nCols, m_nRows, and Matrix().

Matrix & Matrix::SpliceInColumn (  const double *  ColumnData,
const int  ColumnSpot
) 
 

Definition at line 1226 of file matrix.cpp.

References m_nCols, m_nRows, and m_pData.

Matrix & Matrix::SpliceInRow (  const double *  RowData,
const int  RowSpot
) 
 

Definition at line 1204 of file matrix.cpp.

References m_nCols, m_nRows, and m_pData.

double Matrix::SumAll (   )  const
 

Definition at line 450 of file matrix.cpp.

References m_nCols, m_nRows, and m_pData.

Referenced by SumAllSquared().

double Matrix::SumAllSquared (   )  const
 

Definition at line 464 of file matrix.cpp.

References SumAll().

double Matrix::SumColumn (  const int  Col  )  const
 

Definition at line 484 of file matrix.cpp.

References m_nRows, and m_pData.

Referenced by RainbowOption::getDelta(), RainbowOption::getGamma(), RainbowOption::getVega(), and SumColumnSquared().

double Matrix::SumColumnSquared (  const int  Col  )  const
 

Definition at line 504 of file matrix.cpp.

References SumColumn().

double Matrix::SumRow (  const int  Row  )  const
 

Definition at line 472 of file matrix.cpp.

References m_nCols, and m_pData.

Referenced by SumRowSquared().

double Matrix::SumRowSquared (  const int  Row  )  const
 

Definition at line 496 of file matrix.cpp.

References SumRow().

Matrix & Matrix::SwapCols (  const int  Col1,
const int  Col2
) 
 

Definition at line 979 of file matrix.cpp.

References m_nRows, and m_pData.

Matrix & Matrix::SwapRows (  const int  Row1,
const int  Row2
) 
 

Definition at line 961 of file matrix.cpp.

References m_nCols, and m_pData.

Matrix & Matrix::Transpose (   ) 
 

Definition at line 1012 of file matrix.cpp.

References GetTransposed().

Referenced by GetCovariant().

void Matrix::Write (  ofstream &  ostr  )  const
 

Definition at line 1439 of file matrix.cpp.

References m_nCols, m_nRows, and m_pData.


Member Data Documentation

int Matrix::m_nCols [private]
 

Definition at line 22 of file matrix.h.

Referenced by AddRows(), Clear(), ClearRow(), CMAC(), CMAR(), ConcatenateColumn(), ConcatenateRow(), Determinant(), Display(), DivideRow(), Fill(), FillRow(), GetColumns(), GetDataOneDimen(), GetDataTwoDimen(), GetInverse(), GetMax(), GetMin(), GetMinor(), GetMinorNew(), GetNumericRange(), GetNumericRangeOfRow(), GetRowMax(), GetRowMin(), GetTransposed(), Input(), IsEmpty(), IsIdentity(), LeftRemoveIdentity(), Matrix(), MultiplyRow(), Normalize(), operator *(), operator!=(), operator()(), operator+(), operator-(), operator/(), operator=(), operator==(), Output(), Read(), RemoveColumn(), RemoveRow(), RightAppendIdentity(), SetValue(), SortAscend(), SortDescend(), SpliceInColumn(), SpliceInRow(), SumAll(), SumRow(), SwapRows(), and Write().

int Matrix::m_nRows [private]
 

Definition at line 23 of file matrix.h.

Referenced by AddColumns(), Clear(), ClearColumn(), CMAC(), CMAR(), ConcatenateColumn(), ConcatenateRow(), Determinant(), Display(), DivideColumn(), Fill(), FillColumn(), GetColumnMax(), GetColumnMin(), GetDataOneDimen(), GetDataTwoDimen(), GetInverse(), GetMax(), GetMin(), GetMinor(), GetMinorNew(), GetNumericRange(), GetNumericRangeOfColumn(), GetRows(), GetTransposed(), Input(), IsEmpty(), IsIdentity(), LeftRemoveIdentity(), Matrix(), MultiplyColumn(), Normalize(), operator *(), operator!=(), operator()(), operator+(), operator-(), operator/(), operator=(), operator==(), operator[](), Output(), Read(), REF(), RemoveColumn(), RemoveRow(), RightAppendIdentity(), RREF(), SetValue(), SortAscend(), SortDescend(), SpliceInColumn(), SpliceInRow(), SumAll(), SumColumn(), SwapCols(), Write(), and ~Matrix().

double** Matrix::m_pData [private]
 

Definition at line 21 of file matrix.h.

Referenced by AddColumns(), AddRows(), CholeskyDecomposition(), Clear(), ClearColumn(), ClearRow(), CMAC(), CMAR(), ConcatenateColumn(), ConcatenateRow(), Determinant(), Display(), DivideColumn(), DivideRow(), Fill(), FillColumn(), FillRow(), GetColumnMax(), GetColumnMin(), GetDataOneDimen(), GetDataTwoDimen(), GetMax(), GetMin(), GetMinor(), GetMinorNew(), GetNumericRange(), GetNumericRangeOfColumn(), GetNumericRangeOfRow(), GetRowMax(), GetRowMin(), GetSubMatrix(), GetTransposed(), IdentityMatrix(), Input(), IsEmpty(), IsIdentity(), LeftRemoveIdentity(), Matrix(), MultiplyColumn(), MultiplyRow(), Normalize(), operator *(), operator!=(), operator()(), operator+(), operator-(), operator/(), operator=(), operator==(), operator[](), Output(), Read(), REF(), RemoveColumn(), RemoveRow(), RightAppendIdentity(), RREF(), SetValue(), SpliceInColumn(), SpliceInRow(), SumAll(), SumColumn(), SumRow(), SwapCols(), SwapRows(), Write(), and ~Matrix().


The documentation for this class was generated from the following files:
Note: Generated nightly - reload for latest version
Generated on Thu Dec 22 23:12:39 2005 for terreneuve by doxygen 1.3.6