Audacity  2.2.0
Matrix Class Reference

Holds a matrix of doubles and supports arithmetic, subsetting, and matrix inversion. Used by InterpolateAudio. More...

#include <Matrix.h>

Public Member Functions

 Matrix (const Matrix &copyFrom)
 
 Matrix (unsigned rows, unsigned cols, double **data=NULL)
 
 ~Matrix ()
 
Matrixoperator= (const Matrix &other)
 
Vectoroperator[] (unsigned i)
 
Vectoroperator[] (unsigned i) const
 
unsigned Rows () const
 
unsigned Cols () const
 
void SwapRows (unsigned i, unsigned j)
 

Private Member Functions

void CopyFrom (const Matrix &other)
 

Private Attributes

unsigned mRows
 
unsigned mCols
 
ArrayOf< VectormRowVec
 

Detailed Description

Holds a matrix of doubles and supports arithmetic, subsetting, and matrix inversion. Used by InterpolateAudio.

Constructor & Destructor Documentation

Matrix::Matrix ( const Matrix copyFrom)

References CopyFrom().

Matrix::Matrix ( unsigned  rows,
unsigned  cols,
double **  data = NULL 
)
Matrix::~Matrix ( )

Member Function Documentation

void Matrix::CopyFrom ( const Matrix other)
private

References mCols, mRows, mRowVec, and ArrayOf< X >::reinit().

Referenced by Matrix(), and operator=().

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

References CopyFrom().

Vector& Matrix::operator[] ( unsigned  i)
inline

References mRowVec.

Vector& Matrix::operator[] ( unsigned  i) const
inline

References mRowVec.

void Matrix::SwapRows ( unsigned  i,
unsigned  j 
)

References mRowVec.

Referenced by InvertMatrix().

Member Data Documentation

unsigned Matrix::mCols
private

Referenced by Cols(), and CopyFrom().

unsigned Matrix::mRows
private

Referenced by CopyFrom(), and Rows().

ArrayOf<Vector> Matrix::mRowVec
private

Referenced by CopyFrom(), operator[](), and SwapRows().


The documentation for this class was generated from the following files: