GeneralMatrix Class Reference
[Newmat matrix manipulation library]

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.

Collaboration diagram for GeneralMatrix:
Collaboration graph
[legend]

List of all members.

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 *)

Detailed Description

The classes for matrices that can contain data are derived from this.

Definition at line 447 of file newmat.h.


Member Function Documentation

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

  • 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.

Definition at line 480 of file newmat.h.


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

Generated on Sun May 9 12:26:14 2010 for Realea by  doxygen 1.6.1