|
const Real * | const_data () const |
|
Real * | data () |
|
const Real * | data () const |
|
ReturnMatrix | ForReturn () const |
|
virtual void | GetCol (MatrixRowCol &)=0 |
|
virtual void | GetCol (MatrixColX &)=0 |
|
virtual void | GetRow (MatrixRowCol &)=0 |
|
void | Inject (const GeneralMatrix &GM) |
|
bool | IsZero () const |
|
int | Ncols () const |
|
int | ncols () const |
|
int | Nrows () const |
|
int | nrows () const |
|
void | operator-= (Real r) |
|
void | operator/= (Real r) |
|
void | operator<< (const BaseMatrix &X) |
|
MatrixInput | operator<< (int f) |
|
void | protect () |
|
void | Protect () |
|
void | Release () |
|
void | Release (int t) |
|
void | release () |
|
void | release (int t) |
|
void | release_and_delete () |
|
void | ReleaseAndDelete () |
|
virtual void | ReSize (const GeneralMatrix &A) |
|
virtual void | RestoreCol (MatrixRowCol &) |
|
virtual void | RestoreCol (MatrixColX &) |
|
virtual void | RestoreRow (MatrixRowCol &) |
|
virtual void | SetParameters (const GeneralMatrix *) |
|
int | size () const |
|
virtual void | Solver (MatrixColX &, const MatrixColX &) |
|
int | Storage () const |
|
Real * | Store () const |
|
int | tag () const |
|
int | Tag () const |
|
virtual MatrixType | type () const =0 |
|
MatrixType | Type () const |
|
|
virtual void | NextRow (MatrixRowCol &) |
|
virtual void | NextCol (MatrixRowCol &) |
|
virtual void | NextCol (MatrixColX &) |
|
|
Real | sum_square () const |
|
Real | sum_absolute_value () const |
|
Real | sum () const |
|
Real | maximum_absolute_value1 (int &i) const |
|
Real | minimum_absolute_value1 (int &i) const |
|
Real | maximum1 (int &i) const |
|
Real | minimum1 (int &i) const |
|
Real | maximum_absolute_value () const |
|
Real | maximum_absolute_value2 (int &i, int &j) const |
|
Real | minimum_absolute_value () const |
|
Real | minimum_absolute_value2 (int &i, int &j) const |
|
Real | maximum () const |
|
Real | maximum2 (int &i, int &j) const |
|
Real | minimum () const |
|
Real | minimum2 (int &i, int &j) const |
|
LogAndSign | log_determinant () const |
|
ColedMatrix | AsColumn () const |
|
DiagedMatrix | AsDiagonal () const |
|
MatedMatrix | AsMatrix (int m, int n) const |
|
RowedMatrix | AsRow () const |
|
Real | AsScalar () const |
|
virtual MatrixBandWidth | BandWidth () const |
|
void | CleanUp () |
|
GetSubMatrix | Column (int f) const |
|
GetSubMatrix | Columns (int f, int l) const |
|
Real | Determinant () const |
|
void | IEQND () const |
|
LogAndSign | LogDeterminant () const |
|
Real | Maximum () const |
|
Real | Maximum1 (int &i) const |
|
Real | Maximum2 (int &i, int &j) const |
|
Real | MaximumAbsoluteValue () const |
|
Real | MaximumAbsoluteValue1 (int &i) const |
|
Real | MaximumAbsoluteValue2 (int &i, int &j) const |
|
Real | Minimum () const |
|
Real | Minimum1 (int &i) const |
|
Real | Minimum2 (int &i, int &j) const |
|
Real | MinimumAbsoluteValue () const |
|
Real | MinimumAbsoluteValue1 (int &i) const |
|
Real | MinimumAbsoluteValue2 (int &i, int &j) const |
|
Real | Norm1 () const |
|
Real | norm_frobenius () const |
|
Real | NormFrobenius () const |
|
Real | NormInfinity () const |
|
ReversedMatrix | Reverse () const |
|
GetSubMatrix | Row (int f) const |
|
GetSubMatrix | Rows (int f, int l) const |
|
GetSubMatrix | SubMatrix (int fr, int lr, int fc, int lc) const |
|
virtual Real | Sum () const |
|
Real | SumAbsoluteValue () const |
|
Real | SumSquare () const |
|
GetSubMatrix | SymSubMatrix (int f, int l) const |
|
Real | Trace () const |
|
AddedMatrix | operator+ (const BaseMatrix &) const |
|
MultipliedMatrix | operator* (const BaseMatrix &) const |
|
SubtractedMatrix | operator- (const BaseMatrix &) const |
|
ConcatenatedMatrix | operator| (const BaseMatrix &) const |
|
StackedMatrix | operator& (const BaseMatrix &) const |
|
ShiftedMatrix | operator+ (Real) const |
|
ScaledMatrix | operator* (Real) const |
|
ScaledMatrix | operator/ (Real) const |
|
ShiftedMatrix | operator- (Real) const |
|
TransposedMatrix | t () const |
|
NegatedMatrix | operator- () const |
|
ReversedMatrix | reverse () const |
|
InvertedMatrix | i () const |
|
RowedMatrix | as_row () const |
|
ColedMatrix | as_column () const |
|
DiagedMatrix | as_diagonal () const |
|
MatedMatrix | as_matrix (int, int) const |
|
Real | as_scalar () const |
|
GetSubMatrix | submatrix (int, int, int, int) const |
|
GetSubMatrix | sym_submatrix (int, int) const |
|
GetSubMatrix | row (int) const |
|
GetSubMatrix | rows (int, int) const |
|
GetSubMatrix | column (int) const |
|
GetSubMatrix | columns (int, int) const |
|
Real | determinant () const |
|
Real | norm_Frobenius () const |
|
virtual Real | trace () const |
|
ReturnMatrix | sum_square_columns () const |
|
ReturnMatrix | sum_square_rows () const |
|
ReturnMatrix | sum_columns () const |
|
ReturnMatrix | sum_rows () const |
|
Real | norm1 () const |
|
Real | norm_infinity () const |
|
virtual MatrixBandWidth | bandwidth () const |
|
| Janitor () |
|
virtual | ~Janitor () |
|
|
class | AddedMatrix |
|
class | BandMatrix |
|
class | BaseMatrix |
|
class | ColedMatrix |
|
class | ColumnVector |
|
class | ConcatenatedMatrix |
|
class | CroutMatrix |
|
class | DiagedMatrix |
|
class | DiagonalMatrix |
|
class | GenericMatrix |
|
class | GetSubMatrix |
|
class | InvertedMatrix |
|
class | KPMatrix |
|
class | LinearEquationSolver |
|
class | LowerBandMatrix |
|
class | LowerTriangularMatrix |
|
class | MatedMatrix |
|
class | Matrix |
|
class | MultipliedMatrix |
|
class | NegatedMatrix |
|
class | NegShiftedMatrix |
|
class | nricMatrix |
|
class | ReturnMatrix |
|
class | ReversedMatrix |
|
class | RowedMatrix |
|
class | RowVector |
|
class | ScaledMatrix |
|
class | ShiftedMatrix |
|
class | SolvedMatrix |
|
class | SPMatrix |
|
class | SquareMatrix |
|
class | StackedMatrix |
|
class | SubtractedMatrix |
|
class | SymmetricBandMatrix |
|
class | SymmetricMatrix |
|
class | TransposedMatrix |
|
class | UpperBandMatrix |
|
class | UpperTriangularMatrix |
|
virtual GeneralMatrix * | Image () const |
|
| GeneralMatrix () |
|
| GeneralMatrix (ArrayLengthSpecifier) |
|
Real * | GetStore () |
|
GeneralMatrix * | BorrowStore (GeneralMatrix *, MatrixType) |
|
void | GetMatrix (const GeneralMatrix *) |
|
void | Eq (const BaseMatrix &, MatrixType) |
|
void | Eq (const GeneralMatrix &) |
|
void | Eq (const BaseMatrix &, MatrixType, bool) |
|
void | Eq2 (const BaseMatrix &, MatrixType) |
|
int | search (const BaseMatrix *) const |
|
void | resize (int, int, int) |
|
virtual short | SimpleAddOK (const GeneralMatrix *) |
|
void | swap (GeneralMatrix &gm) |
|
virtual | ~GeneralMatrix () |
|
void | tDelete () |
|
bool | reuse () |
|
void | inject (const GeneralMatrix &) |
|
void | CheckStore () const |
|
| operator ReturnMatrix () const |
|
ReturnMatrix | for_return () const |
|
virtual void | resize (const GeneralMatrix &A) |
|
void | cleanup () |
|
void | Add (GeneralMatrix *, Real) |
|
void | Add (Real) |
|
void | NegAdd (GeneralMatrix *, Real) |
|
void | NegAdd (Real) |
|
void | Multiply (GeneralMatrix *, Real) |
|
void | Multiply (Real) |
|
void | Negate (GeneralMatrix *) |
|
void | Negate () |
|
void | ReverseElements () |
|
void | ReverseElements (GeneralMatrix *) |
|
virtual GeneralMatrix * | Transpose (TransposedMatrix *, MatrixType) |
|
GeneralMatrix * | Evaluate (MatrixType mt=MatrixTypeUnSp) |
|
MatrixInput | operator<< (double) |
|
MatrixInput | operator<< (float) |
|
void | operator= (Real) |
|
void | operator<< (const double *) |
|
void | operator<< (const float *) |
|
void | operator<< (const int *) |
|
void | operator+= (const BaseMatrix &) |
|
void | operator-= (const BaseMatrix &) |
|
void | operator*= (const BaseMatrix &) |
|
void | operator|= (const BaseMatrix &) |
|
void | operator&= (const BaseMatrix &) |
|
void | operator+= (Real) |
|
void | operator*= (Real) |
|
void | PlusEqual (const GeneralMatrix &gm) |
|
void | MinusEqual (const GeneralMatrix &gm) |
|
bool | is_zero () const |
|
virtual GeneralMatrix * | MakeSolver () |
|
virtual bool | IsEqual (const GeneralMatrix &) const |
|
The classes for matrices that can contain data are derived from this.
Definition at line 447 of file newmat.h.
Can we add two matrices with simple vector add. SimpleAddOK shows when we can add two matrices by a simple vector add and when we can add one matrix into another
*gm must be the same type as *this
- return 0 if simple add is OK
- return 1 if we can add into *gm only
- return 2 if we can add into *this only
- return 3 if we can't add either way
Also applies to subtract; for SP this will still be valid if we swap 1 and 2
For types Matrix, DiagonalMatrix, UpperTriangularMatrix, LowerTriangularMatrix, SymmetricMatrix etc return 0. For band matrices we will need to check bandwidths.
Reimplemented in SymmetricBandMatrix, and BandMatrix.
Definition at line 480 of file newmat.h.