Public Member Functions | List of all members
DiagonalMatrix Class Reference

Diagonal matrix. More...

#include <newmat.h>

Inheritance diagram for DiagonalMatrix:
Inheritance graph
[legend]

Public Member Functions

 DiagonalMatrix ()
 
 DiagonalMatrix (const DiagonalMatrix &gm)
 
GeneralMatrixMakeSolver ()
 
Realnric () const
 
void operator+= (const DiagonalMatrix &M)
 
void operator+= (Real f)
 
void operator-= (const DiagonalMatrix &M)
 
void operator-= (Real f)
 
void operator= (Real f)
 
void operator= (const DiagonalMatrix &m)
 
void ReSize (int m)
 
void ReSize (const GeneralMatrix &A)
 
void swap (DiagonalMatrix &gm)
 
 ~DiagonalMatrix ()
 
void operator= (const BaseMatrix &)
 
Realoperator() (int, int)
 
Realoperator() (int)
 
Real operator() (int, int) const
 
Real operator() (int) const
 
Realelement (int, int)
 
Realelement (int)
 
Real element (int, int) const
 
Real element (int) const
 
LogAndSign log_determinant () const
 
Real trace () const
 
void GetRow (MatrixRowCol &)
 
void GetCol (MatrixRowCol &)
 
void GetCol (MatrixColX &)
 
void NextRow (MatrixRowCol &)
 
void NextCol (MatrixRowCol &)
 
void NextCol (MatrixColX &)
 
void Solver (MatrixColX &, const MatrixColX &)
 
GeneralMatrixTranspose (TransposedMatrix *, MatrixType)
 
- 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 RestoreCol (MatrixRowCol &)
 
virtual void RestoreCol (MatrixColX &)
 
virtual void RestoreRow (MatrixRowCol &)
 
virtual void SetParameters (const GeneralMatrix *)
 
int size () const
 
int Storage () const
 
RealStore () const
 
int tag () const
 
int Tag () const
 
MatrixType Type () const
 
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
 
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 ()
 
GeneralMatrixImage () const
 
 DiagonalMatrix (ArrayLengthSpecifier)
 
 DiagonalMatrix (const BaseMatrix &)
 
MatrixType type () const
 
void resize (int)
 
void resize_keep (int)
 
void resize (const GeneralMatrix &A)
 
MatrixBandWidth bandwidth () const
 

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)
 
virtual short SimpleAddOK (const GeneralMatrix *)
 
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 *)
 
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

Diagonal matrix.

Definition at line 896 of file newmat.h.

Constructor & Destructor Documentation

DiagonalMatrix::DiagonalMatrix ( )
inline

Definition at line 900 of file newmat.h.

DiagonalMatrix::~DiagonalMatrix ( )
inline

Definition at line 901 of file newmat.h.

DiagonalMatrix::DiagonalMatrix ( ArrayLengthSpecifier  m)

Definition at line 74 of file newmat4.cpp.

DiagonalMatrix::DiagonalMatrix ( const BaseMatrix M)

Definition at line 152 of file newmat4.cpp.

DiagonalMatrix::DiagonalMatrix ( const DiagonalMatrix gm)
inline

Definition at line 904 of file newmat.h.

Member Function Documentation

MatrixBandWidth DiagonalMatrix::bandwidth ( ) const
virtual

Reimplemented from BaseMatrix.

Definition at line 672 of file newmat4.cpp.

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

Definition at line 748 of file newmat6.cpp.

Real & DiagonalMatrix::element ( int  m)

Definition at line 764 of file newmat6.cpp.

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

Definition at line 756 of file newmat6.cpp.

Real DiagonalMatrix::element ( int  m) const

Definition at line 771 of file newmat6.cpp.

void DiagonalMatrix::GetCol ( MatrixRowCol mrc)
virtual

Implements GeneralMatrix.

Definition at line 240 of file newmat3.cpp.

void DiagonalMatrix::GetCol ( MatrixColX mrc)
virtual

Implements GeneralMatrix.

Definition at line 250 of file newmat3.cpp.

void DiagonalMatrix::GetRow ( MatrixRowCol mrc)
virtual

Implements GeneralMatrix.

Definition at line 233 of file newmat3.cpp.

GeneralMatrix * DiagonalMatrix::Image ( ) const
privatevirtual

Reimplemented from GeneralMatrix.

Definition at line 1026 of file newmat4.cpp.

LogAndSign DiagonalMatrix::log_determinant ( ) const
virtual

Reimplemented from GeneralMatrix.

Definition at line 657 of file newmat8.cpp.

GeneralMatrix* DiagonalMatrix::MakeSolver ( )
inlinevirtual

Reimplemented from GeneralMatrix.

Definition at line 931 of file newmat.h.

void DiagonalMatrix::NextCol ( MatrixRowCol mrc)
virtual

Reimplemented from GeneralMatrix.

Definition at line 261 of file newmat3.cpp.

void DiagonalMatrix::NextCol ( MatrixColX mrc)
virtual

Reimplemented from GeneralMatrix.

Definition at line 264 of file newmat3.cpp.

void DiagonalMatrix::NextRow ( MatrixRowCol mrc)
virtual

Reimplemented from GeneralMatrix.

Definition at line 258 of file newmat3.cpp.

Real* DiagonalMatrix::nric ( ) const
inline

Definition at line 939 of file newmat.h.

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

Definition at line 67 of file newmat6.cpp.

Real & DiagonalMatrix::operator() ( int  m)

Definition at line 75 of file newmat6.cpp.

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

Definition at line 179 of file newmat6.cpp.

Real DiagonalMatrix::operator() ( int  m) const

Definition at line 187 of file newmat6.cpp.

void DiagonalMatrix::operator+= ( const DiagonalMatrix M)
inline

Definition at line 943 of file newmat.h.

void DiagonalMatrix::operator+= ( Real  f)
inline

Definition at line 945 of file newmat.h.

void DiagonalMatrix::operator-= ( const DiagonalMatrix M)
inline

Definition at line 944 of file newmat.h.

void DiagonalMatrix::operator-= ( Real  f)
inline

Definition at line 946 of file newmat.h.

void DiagonalMatrix::operator= ( const BaseMatrix X)

Definition at line 412 of file newmat6.cpp.

void DiagonalMatrix::operator= ( Real  f)
inline

Definition at line 907 of file newmat.h.

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

Definition at line 908 of file newmat.h.

void DiagonalMatrix::resize ( int  nr)

Definition at line 312 of file newmat4.cpp.

void DiagonalMatrix::ReSize ( int  m)
inline

Definition at line 935 of file newmat.h.

void DiagonalMatrix::resize ( const GeneralMatrix A)
virtual

Reimplemented from GeneralMatrix.

Definition at line 375 of file newmat4.cpp.

void DiagonalMatrix::ReSize ( const GeneralMatrix A)
inlinevirtual

Reimplemented from GeneralMatrix.

Definition at line 938 of file newmat.h.

void DiagonalMatrix::resize_keep ( int  nr)

Definition at line 542 of file newmat4.cpp.

void DiagonalMatrix::Solver ( MatrixColX mrc,
const MatrixColX mrc1 
)
virtual

Reimplemented from GeneralMatrix.

Definition at line 502 of file newmat2.cpp.

void DiagonalMatrix::swap ( DiagonalMatrix gm)
inline

Definition at line 947 of file newmat.h.

Real DiagonalMatrix::trace ( ) const
virtual

Reimplemented from BaseMatrix.

Definition at line 556 of file newmat8.cpp.

GeneralMatrix * DiagonalMatrix::Transpose ( TransposedMatrix ,
MatrixType  mt 
)
virtual

Reimplemented from GeneralMatrix.

Definition at line 63 of file newmat5.cpp.

MatrixType DiagonalMatrix::type ( ) const
virtual

Implements GeneralMatrix.

Definition at line 658 of file newmat4.cpp.


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