The classes for matrices that can contain data are derived from this. More...
#include <newmat.h>
Inherits BaseMatrix.
Inherited by BandLUMatrix, BandMatrix, CroutMatrix, DiagonalMatrix, IdentityMatrix, LowerTriangularMatrix, Matrix, SymmetricBandMatrix, SymmetricMatrix, and UpperTriangularMatrix.
Friends | |
class | Matrix |
class | SquareMatrix |
class | nricMatrix |
class | SymmetricMatrix |
class | UpperTriangularMatrix |
class | LowerTriangularMatrix |
class | DiagonalMatrix |
class | CroutMatrix |
class | RowVector |
class | ColumnVector |
class | BandMatrix |
class | LowerBandMatrix |
class | UpperBandMatrix |
class | SymmetricBandMatrix |
class | BaseMatrix |
class | AddedMatrix |
class | MultipliedMatrix |
class | SubtractedMatrix |
class | SPMatrix |
class | KPMatrix |
class | ConcatenatedMatrix |
class | StackedMatrix |
class | SolvedMatrix |
class | ShiftedMatrix |
class | NegShiftedMatrix |
class | ScaledMatrix |
class | TransposedMatrix |
class | ReversedMatrix |
class | NegatedMatrix |
class | InvertedMatrix |
class | RowedMatrix |
class | ColedMatrix |
class | DiagedMatrix |
class | MatedMatrix |
class | GetSubMatrix |
class | ReturnMatrix |
class | LinearEquationSolver |
class | GenericMatrix |
| |
virtual short | SimpleAddOK (const GeneralMatrix *) |
The classes for matrices that can contain data are derived from this.
Definition at line 447 of file newmat.h.
GeneralMatrix::SimpleAddOK | ( | const GeneralMatrix * | gm | ) | [inline, protected, virtual] |
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
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.