Audacity 3.2.0
|
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 ©From) | |
Matrix (unsigned rows, unsigned cols, double **data=NULL) | |
~Matrix () | |
Matrix & | operator= (const Matrix &other) |
Vector & | operator[] (unsigned i) |
Vector & | operator[] (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< Vector > | mRowVec |
Holds a matrix of doubles and supports arithmetic, subsetting, and matrix inversion. Used by InterpolateAudio.
Matrix::Matrix | ( | const Matrix & | copyFrom | ) |
Definition at line 102 of file Matrix.cpp.
References CopyFrom().
Matrix::Matrix | ( | unsigned | rows, |
unsigned | cols, | ||
double ** | data = NULL |
||
) |
Definition at line 80 of file Matrix.cpp.
Matrix::~Matrix | ( | ) |
Definition at line 118 of file Matrix.cpp.
|
inline |
Definition at line 69 of file Matrix.h.
References mCols.
Referenced by InterpolateAudio(), InvertMatrix(), MatrixConcatenateCols(), MatrixMultiply(), operator*(), operator+(), ScalarMultiply(), and TransposeMatrix().
|
private |
Definition at line 107 of file Matrix.cpp.
References mCols, mRows, mRowVec, and ArrayOf< X >::reinit().
Referenced by Matrix(), and operator=().
Definition at line 96 of file Matrix.cpp.
References CopyFrom().
|
inline |
|
inline |
|
inline |
Definition at line 68 of file Matrix.h.
References mRows.
Referenced by InterpolateAudio(), InvertMatrix(), MatrixConcatenateCols(), MatrixMultiply(), operator*(), operator+(), ScalarMultiply(), and TransposeMatrix().
void Matrix::SwapRows | ( | unsigned | i, |
unsigned | j | ||
) |
Definition at line 122 of file Matrix.cpp.
References mRowVec.
Referenced by InvertMatrix().
|
private |
Definition at line 77 of file Matrix.h.
Referenced by Cols(), CopyFrom(), and Matrix().
|
private |
Definition at line 76 of file Matrix.h.
Referenced by CopyFrom(), Matrix(), and Rows().
Definition at line 78 of file Matrix.h.
Referenced by CopyFrom(), Matrix(), operator[](), and SwapRows().