106 double**
const Data ()
const {
return data;}
145 void AllocateStorage ();
147 double DeterminantSwap (
double** mat,
148 unsigned short offset
151 double CalcDeterminent (
kkint32* rowMap,
156 double Pythag (
const double a,
166 void Tred2 (
double** a,
197 double*
Cols () {
return cells;}
Row & operator[](kkint32 rowIDX) const
kkint32 NumOfRows() const
Matrix & operator=(const Matrix &right)
VectorDouble GetCol(kkint32 col) const
Matrix operator-(double right)
Matrix operator+(double right)
Matrix(kkint32 _numOfRows, kkint32 _numOfCols)
Supports two dimensional matrices.
static MatrixPtr BuildFromArray(kkint32 numOfRows, kkint32 numOfCols, T **data)
Will create a new matrix using the 2dArray "data" for source.
Matrix(const Matrix &_matrix)
Matrix & operator=(const VectorDouble &right)
MatrixPtr Covariance() const
Returns a Covariance matrix.
kkint32 NumOfCols() const
double & operator[](kkint32 idx)
Matrix operator*(const Matrix &right)
double DeterminantSlow()
Recursive Implementation.
void EigenVectors(MatrixPtr &eigenVectors, VectorDouble *&eigenValues) const
Will derive the Eigen vectors and values of the matrix.
Matrix(const VectorDouble &_v)
void FindMaxValue(double &maxVal, kkint32 &row, kkint32 &col)
Locates the maximum value in a matrix along with the row and column that is located.
Matrix operator+(const Matrix &right)
Matrix & operator+=(const Matrix &right)
Row(kkint32 _numOfCols, double *_cells)
Matrix & operator*=(double right)
Matrix operator-(const Matrix &right)
friend std::ostream & operator<<(std::ostream &os, const Matrix &matrix)
void ReSize(kkint32 _numOfRows, kkint32 _numOfCols)
Matrix operator-(double left, const Matrix &right)
MatrixPtr CalcCoFactorMatrix()
void Define(kkint32 _numOfCols, double *_cells)
Matrix & operator+=(double right)
double **const Data() const
Matrix operator*(double right)
std::vector< double > VectorDouble
Vector of doubles.