Public Member Functions | Public Attributes | List of all members
BandMatrix Class Reference

Band matrix. More...

#include <newmat.h>

Inheritance diagram for BandMatrix:
Inheritance graph
[legend]

Public Member Functions

 BandMatrix ()
 
 BandMatrix (int n, int lb, int ub)
 
 BandMatrix (const BandMatrix &gm)
 
Real maximum () const
 
Real maximum_absolute_value () const
 
Real minimum () const
 
Real minimum_absolute_value () const
 
MatrixInput operator<< (int f)
 
void operator<< (const BaseMatrix &X)
 
void operator= (Real f)
 
void operator= (const BandMatrix &m)
 
virtual void ReSize (int m, int n, int b)
 
void ReSize (const GeneralMatrix &A)
 
void RestoreCol (MatrixColX &c)
 
Real sum () const
 
Real sum_absolute_value () const
 
Real sum_square () const
 
 ~BandMatrix ()
 
MatrixType type () const
 
MatrixBandWidth bandwidth () const
 
void swap (BandMatrix &gm)
 
Realoperator() (int, int)
 
Realelement (int, int)
 
Real operator() (int, int) const
 
Real element (int, int) const
 
Real trace () const
 
void GetRow (MatrixRowCol &)
 
void GetCol (MatrixRowCol &)
 
void GetCol (MatrixColX &)
 
void RestoreCol (MatrixRowCol &)
 
void NextRow (MatrixRowCol &)
 
MatrixInput operator<< (double)
 
MatrixInput operator<< (float)
 
void operator<< (const double *r)
 
void operator<< (const float *r)
 
void operator<< (const int *r)
 
- Public Member Functions inherited from GeneralMatrix
const Realconst_data () const
 
Realdata ()
 
const Realdata () const
 
ReturnMatrix ForReturn () const
 
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 RestoreRow (MatrixRowCol &)
 
int size () const
 
virtual void Solver (MatrixColX &, const MatrixColX &)
 
int Storage () const
 
RealStore () const
 
int tag () const
 
int Tag () const
 
MatrixType Type () const
 
virtual void NextCol (MatrixRowCol &)
 
virtual void NextCol (MatrixColX &)
 
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_value2 (int &i, int &j) const
 
Real minimum_absolute_value2 (int &i, int &j) const
 
Real maximum2 (int &i, int &j) const
 
Real minimum2 (int &i, int &j) const
 
virtual ~GeneralMatrix ()
 
void tDelete ()
 
bool reuse ()
 
void inject (const GeneralMatrix &)
 
void CheckStore () const
 
 operator ReturnMatrix () const
 
ReturnMatrix for_return () const
 
void cleanup ()
 
GeneralMatrixEvaluate (MatrixType mt=MatrixTypeUnSp)
 
MatrixInput operator<< (double)
 
MatrixInput operator<< (float)
 
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)
 
bool is_zero () const
 
virtual bool IsEqual (const GeneralMatrix &) const
 
- Public Member Functions inherited from BaseMatrix
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
 
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
 
- Public Member Functions inherited from Janitor
 Janitor ()
 
virtual ~Janitor ()
 

Public Attributes

int lower_val
 
int upper_val
 
GeneralMatrixImage () const
 
void CornerClear () const
 set unused parts of BandMatrix to zero More...
 
short SimpleAddOK (const GeneralMatrix *gm)
 can we add two band matrices with simple vector add More...
 
 BandMatrix (const BaseMatrix &)
 
void operator= (const BaseMatrix &)
 assignment operator for BandMatrix More...
 
LogAndSign log_determinant () const
 
GeneralMatrixMakeSolver ()
 
virtual void resize (int, int, int)
 
void resize (const GeneralMatrix &A)
 resize BandMatrix More...
 
void SetParameters (const GeneralMatrix *)
 

Additional Inherited Members

- Protected Member Functions inherited from GeneralMatrix
void CheckConversion (const BaseMatrix &)
 
virtual void MiniCleanUp ()
 
void MinusEqual (Real f)
 
void PlusEqual (Real f)
 
 GeneralMatrix ()
 
 GeneralMatrix (ArrayLengthSpecifier)
 
RealGetStore ()
 
GeneralMatrixBorrowStore (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)
 
void swap (GeneralMatrix &gm)
 
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 GeneralMatrixTranspose (TransposedMatrix *, MatrixType)
 
void operator= (Real)
 
void PlusEqual (const GeneralMatrix &gm)
 
void MinusEqual (const GeneralMatrix &gm)
 
- Protected Attributes inherited from GeneralMatrix
int ncols_val
 
int nrows_val
 
int storage
 
Realstore
 
int tag_val
 

Detailed Description

Band matrix.

Definition at line 1096 of file newmat.h.

Constructor & Destructor Documentation

BandMatrix::BandMatrix ( )
inline

Definition at line 1104 of file newmat.h.

BandMatrix::~BandMatrix ( )
inline

Definition at line 1105 of file newmat.h.

BandMatrix::BandMatrix ( int  n,
int  lb,
int  ub 
)
inline

Definition at line 1106 of file newmat.h.

BandMatrix::BandMatrix ( const BaseMatrix M)

Definition at line 35 of file bandmat.cpp.

BandMatrix::BandMatrix ( const BandMatrix gm)
inline

Definition at line 1122 of file newmat.h.

Member Function Documentation

MatrixBandWidth BandMatrix::bandwidth ( ) const
virtual

Reimplemented from BaseMatrix.

Definition at line 681 of file newmat4.cpp.

void BandMatrix::CornerClear ( ) const
protected

set unused parts of BandMatrix to zero

Definition at line 180 of file bandmat.cpp.

Real & BandMatrix::element ( int  m,
int  n 
)

Definition at line 806 of file newmat6.cpp.

Real BandMatrix::element ( int  m,
int  n 
) const

Definition at line 815 of file newmat6.cpp.

void BandMatrix::GetCol ( MatrixRowCol mrc)
virtual

Implements GeneralMatrix.

Definition at line 593 of file newmat3.cpp.

void BandMatrix::GetCol ( MatrixColX mrc)
virtual

Implements GeneralMatrix.

Definition at line 621 of file newmat3.cpp.

void BandMatrix::GetRow ( MatrixRowCol mrc)
virtual

Implements GeneralMatrix.

Definition at line 572 of file newmat3.cpp.

GeneralMatrix * BandMatrix::Image ( ) const
privatevirtual

Reimplemented from GeneralMatrix.

Reimplemented in LowerBandMatrix, and UpperBandMatrix.

Definition at line 636 of file bandmat.cpp.

LogAndSign BandMatrix::log_determinant ( ) const
virtual

Reimplemented from GeneralMatrix.

Reimplemented in LowerBandMatrix, and UpperBandMatrix.

Definition at line 500 of file bandmat.cpp.

GeneralMatrix * BandMatrix::MakeSolver ( )
virtual

Reimplemented from GeneralMatrix.

Reimplemented in LowerBandMatrix, and UpperBandMatrix.

Definition at line 365 of file bandmat.cpp.

Real BandMatrix::maximum ( ) const
inlinevirtual

Reimplemented from GeneralMatrix.

Definition at line 1136 of file newmat.h.

Real BandMatrix::maximum_absolute_value ( ) const
inlinevirtual

Reimplemented from GeneralMatrix.

Definition at line 1132 of file newmat.h.

Real BandMatrix::minimum ( ) const
inlinevirtual

Reimplemented from GeneralMatrix.

Definition at line 1137 of file newmat.h.

Real BandMatrix::minimum_absolute_value ( ) const
inlinevirtual

Reimplemented from GeneralMatrix.

Definition at line 1134 of file newmat.h.

void BandMatrix::NextRow ( MatrixRowCol mrc)
virtual

Reimplemented from GeneralMatrix.

Definition at line 584 of file newmat3.cpp.

Real & BandMatrix::operator() ( int  m,
int  n 
)

Definition at line 96 of file newmat6.cpp.

Real BandMatrix::operator() ( int  m,
int  n 
) const

Definition at line 208 of file newmat6.cpp.

MatrixInput BandMatrix::operator<< ( double  )

Definition at line 500 of file newmat5.cpp.

MatrixInput BandMatrix::operator<< ( float  )

Definition at line 509 of file newmat5.cpp.

void BandMatrix::operator<< ( const double *  r)

Definition at line 518 of file newmat5.cpp.

void BandMatrix::operator<< ( const float *  r)

Definition at line 521 of file newmat5.cpp.

void BandMatrix::operator<< ( const int *  r)

Definition at line 524 of file newmat5.cpp.

void BandMatrix::operator<< ( const BaseMatrix X)
inline

Definition at line 1161 of file newmat.h.

void BandMatrix::operator= ( const BaseMatrix X)

assignment operator for BandMatrix

Definition at line 172 of file bandmat.cpp.

void BandMatrix::operator= ( Real  f)
inline

Definition at line 1110 of file newmat.h.

void BandMatrix::operator= ( const BandMatrix m)
inline

Definition at line 1111 of file newmat.h.

void BandMatrix::resize ( int  n,
int  lb,
int  ub 
)
virtual

Reimplemented in LowerBandMatrix, and UpperBandMatrix.

Definition at line 50 of file bandmat.cpp.

virtual void BandMatrix::ReSize ( int  m,
int  n,
int  b 
)
inlinevirtual

Reimplemented in LowerBandMatrix, and UpperBandMatrix.

Definition at line 1145 of file newmat.h.

void BandMatrix::resize ( const GeneralMatrix A)
virtual

resize BandMatrix

Reimplemented from GeneralMatrix.

Reimplemented in LowerBandMatrix, and UpperBandMatrix.

Definition at line 123 of file bandmat.cpp.

void BandMatrix::ReSize ( const GeneralMatrix A)
inlinevirtual

Reimplemented from GeneralMatrix.

Reimplemented in LowerBandMatrix, and UpperBandMatrix.

Definition at line 1147 of file newmat.h.

void BandMatrix::RestoreCol ( MatrixRowCol mrc)
virtual

Reimplemented from GeneralMatrix.

Definition at line 640 of file newmat3.cpp.

void BandMatrix::RestoreCol ( MatrixColX c)
inlinevirtual

Reimplemented from GeneralMatrix.

Definition at line 1142 of file newmat.h.

void BandMatrix::SetParameters ( const GeneralMatrix gmx)
virtual

Reimplemented from GeneralMatrix.

Definition at line 43 of file bandmat.cpp.

short BandMatrix::SimpleAddOK ( const GeneralMatrix gm)
protectedvirtual

can we add two band matrices with simple vector add

For band matrices the bandwidths must agree

Reimplemented from GeneralMatrix.

Definition at line 74 of file bandmat.cpp.

Real BandMatrix::sum ( ) const
inlinevirtual

Reimplemented from GeneralMatrix.

Definition at line 1130 of file newmat.h.

Real BandMatrix::sum_absolute_value ( ) const
inlinevirtual

Reimplemented from GeneralMatrix.

Definition at line 1128 of file newmat.h.

Real BandMatrix::sum_square ( ) const
inlinevirtual

Reimplemented from GeneralMatrix.

Definition at line 1126 of file newmat.h.

void BandMatrix::swap ( BandMatrix gm)

Definition at line 1292 of file newmat4.cpp.

Real BandMatrix::trace ( ) const
virtual

Reimplemented from BaseMatrix.

Definition at line 590 of file newmat8.cpp.

MatrixType BandMatrix::type ( ) const
virtual

Implements GeneralMatrix.

Reimplemented in LowerBandMatrix, and UpperBandMatrix.

Definition at line 662 of file newmat4.cpp.

Member Data Documentation

int BandMatrix::lower_val

Definition at line 1103 of file newmat.h.

int BandMatrix::upper_val

Definition at line 1103 of file newmat.h.


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


kni
Author(s): Martin Günther
autogenerated on Fri Jun 7 2019 22:06:46