OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
Public Member Functions | Private Member Functions | List of all members
DiagonalMatrix Class Reference

#include <newmat.h>

Inheritance diagram for DiagonalMatrix:
GeneralMatrix BaseMatrix

Public Member Functions

 DiagonalMatrix ()
 
 ~DiagonalMatrix ()
 
 DiagonalMatrix (ArrayLengthSpecifier)
 
 DiagonalMatrix (const BaseMatrix &)
 
 DiagonalMatrix (const DiagonalMatrix &gm)
 
void operator= (const BaseMatrix &)
 
void operator= (Real f)
 
void operator= (const DiagonalMatrix &m)
 
Real & operator() (int, int)
 
Real & operator() (int)
 
Real operator() (int, int) const
 
Real operator() (int) const
 
Real & element (int, int)
 
Real & element (int)
 
Real element (int, int) const
 
Real element (int) const
 
MatrixType Type () const
 
LogAndSign LogDeterminant () const
 
Real Trace () const
 
void GetRow (MatrixRowCol &)
 
void GetCol (MatrixRowCol &)
 
void GetCol (MatrixColX &)
 
void NextRow (MatrixRowCol &)
 
void NextCol (MatrixRowCol &)
 
void NextCol (MatrixColX &)
 
GeneralMatrixMakeSolver ()
 
void Solver (MatrixColX &, const MatrixColX &)
 
GeneralMatrixTranspose (TransposedMatrix *, MatrixType)
 
void ReSize (int)
 
void ReSize (const GeneralMatrix &A)
 
Realnric () const
 
MatrixBandWidth BandWidth () const
 
void operator+= (const DiagonalMatrix &M)
 
void operator-= (const DiagonalMatrix &M)
 
void operator+= (Real f)
 
void operator-= (Real f)
 
- Public Member Functions inherited from GeneralMatrix
GeneralMatrixEvaluate (MatrixType mt=MatrixTypeUnSp)
 
int Nrows () const
 
int Ncols () const
 
int Storage () const
 
RealStore () const
 
virtual ~GeneralMatrix ()
 
void tDelete ()
 
bool reuse ()
 
void Protect ()
 
int Tag () const
 
bool IsZero () const
 
void Release ()
 
void Release (int t)
 
void ReleaseAndDelete ()
 
void operator<< (const Real *)
 
void operator<< (const int *)
 
void operator<< (const BaseMatrix &X)
 
void Inject (const GeneralMatrix &)
 
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 r)
 
void operator*= (Real)
 
void operator/= (Real r)
 
virtual void RestoreRow (MatrixRowCol &)
 
virtual void RestoreCol (MatrixRowCol &)
 
virtual void RestoreCol (MatrixColX &)
 
Real SumSquare () const
 
Real SumAbsoluteValue () const
 
Real Sum () const
 
Real MaximumAbsoluteValue1 (int &i) const
 
Real MinimumAbsoluteValue1 (int &i) const
 
Real Maximum1 (int &i) const
 
Real Minimum1 (int &i) const
 
Real MaximumAbsoluteValue () const
 
Real MaximumAbsoluteValue2 (int &i, int &j) const
 
Real MinimumAbsoluteValue () const
 
Real MinimumAbsoluteValue2 (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 bool IsEqual (const GeneralMatrix &) const
 
void CheckStore () const
 
virtual void SetParameters (const GeneralMatrix *)
 
 operator ReturnMatrix () const
 
ReturnMatrix ForReturn () const
 
virtual bool SameStorageType (const GeneralMatrix &A) const
 
virtual void ReSizeForAdd (const GeneralMatrix &A, const GeneralMatrix &B)
 
virtual void ReSizeForSP (const GeneralMatrix &A, const GeneralMatrix &B)
 
MatrixInput operator<< (Real)
 
MatrixInput operator<< (int f)
 
void CleanUp ()
 
- Public Member Functions inherited from BaseMatrix
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 AsRow () const
 
ColedMatrix AsColumn () const
 
DiagedMatrix AsDiagonal () const
 
MatedMatrix AsMatrix (int, int) const
 
GetSubMatrix SubMatrix (int, int, int, int) const
 
GetSubMatrix SymSubMatrix (int, int) const
 
GetSubMatrix Row (int) const
 
GetSubMatrix Rows (int, int) const
 
GetSubMatrix Column (int) const
 
GetSubMatrix Columns (int, int) const
 
Real AsScalar () const
 
Real Determinant () const
 
Real NormFrobenius () const
 
Real Norm1 () const
 
Real NormInfinity () const
 
void IEQND () const
 

Private Member Functions

GeneralMatrixImage () const
 

Additional Inherited Members

- Protected Member Functions inherited from GeneralMatrix
 GeneralMatrix ()
 
 GeneralMatrix (ArrayLengthSpecifier)
 
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)
 
Real * GetStore ()
 
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 CheckConversion (const BaseMatrix &)
 
void ReSize (int, int, int)
 
virtual short SimpleAddOK (const GeneralMatrix *)
 
virtual void MiniCleanUp ()
 
void PlusEqual (const GeneralMatrix &gm)
 
void MinusEqual (const GeneralMatrix &gm)
 
void PlusEqual (Real f)
 
void MinusEqual (Real f)
 
- Protected Attributes inherited from GeneralMatrix
int tag
 
int nrows
 
int ncols
 
int storage
 
Realstore
 

Detailed Description

Definition at line 772 of file newmat.h.

Constructor & Destructor Documentation

◆ DiagonalMatrix() [1/4]

DiagonalMatrix::DiagonalMatrix ( )
inline

Definition at line 776 of file newmat.h.

Referenced by Image().

776 :GeneralMatrix() {}

◆ ~DiagonalMatrix()

DiagonalMatrix::~DiagonalMatrix ( )
inline

Definition at line 777 of file newmat.h.

777 {}

◆ DiagonalMatrix() [2/4]

DiagonalMatrix::DiagonalMatrix ( ArrayLengthSpecifier  m)

Definition at line 67 of file newmat4.cpp.

References GeneralMatrix::ncols, GeneralMatrix::nrows, REPORT, and ArrayLengthSpecifier::Value().

67  : GeneralMatrix(m)
68 { REPORT nrows=m.Value(); ncols=m.Value(); }
#define REPORT
Definition: newmat4.cpp:19
int Value() const
Definition: newmat.h:219

◆ DiagonalMatrix() [3/4]

DiagonalMatrix::DiagonalMatrix ( const BaseMatrix M)

Definition at line 145 of file newmat4.cpp.

References MatrixType::Dg, GeneralMatrix::Evaluate(), GeneralMatrix::GetMatrix(), and REPORT.

146 {
147  REPORT //CheckConversion(M);
148  // MatrixConversionCheck mcc;
150  GetMatrix(gmx);
151 }
GeneralMatrix * Evaluate(MatrixType mt=MatrixTypeUnSp)
Definition: newmat5.cpp:79
#define REPORT
Definition: newmat4.cpp:19
void GetMatrix(const GeneralMatrix *)
Definition: newmat4.cpp:610

◆ DiagonalMatrix() [4/4]

DiagonalMatrix::DiagonalMatrix ( const DiagonalMatrix gm)
inline

Definition at line 780 of file newmat.h.

780 :GeneralMatrix(gm) { GetMatrix(&gm); }
void GetMatrix(const GeneralMatrix *)
Definition: newmat4.cpp:610

Member Function Documentation

◆ BandWidth()

MatrixBandWidth DiagonalMatrix::BandWidth ( ) const
virtual

Reimplemented from BaseMatrix.

Definition at line 432 of file newmat4.cpp.

References REPORT.

432 { REPORT return 0; }
#define REPORT
Definition: newmat4.cpp:19

◆ element() [1/4]

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

Definition at line 725 of file newmat6.cpp.

References n, and REPORT.

Referenced by SVD().

726 {
727  REPORT
728  if (n<0 || m!=n || m>=nrows || n>=ncols)
729  Throw(IndexException(m,n,*this,true));
730  return store[n];
731 }
os2<< "> n<< " > nendobj n
#define REPORT
Definition: newmat6.cpp:19
Real * store
Definition: newmat.h:393

◆ element() [2/4]

Real & DiagonalMatrix::element ( int  m)

Definition at line 741 of file newmat6.cpp.

References REPORT.

742 {
743  REPORT
744  if (m<0 || m>=nrows) Throw(IndexException(m,*this,true));
745  return store[m];
746 }
#define REPORT
Definition: newmat6.cpp:19
Real * store
Definition: newmat.h:393

◆ element() [3/4]

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

Definition at line 733 of file newmat6.cpp.

References n, and REPORT.

734 {
735  REPORT
736  if (n<0 || m!=n || m>=nrows || n>=ncols)
737  Throw(IndexException(m,n,*this,true));
738  return store[n];
739 }
os2<< "> n<< " > nendobj n
#define REPORT
Definition: newmat6.cpp:19
Real * store
Definition: newmat.h:393

◆ element() [4/4]

Real DiagonalMatrix::element ( int  m) const

Definition at line 748 of file newmat6.cpp.

References REPORT.

749 {
750  REPORT
751  if (m<0 || m>=nrows) Throw(IndexException(m,*this,true));
752  return store[m];
753 }
#define REPORT
Definition: newmat6.cpp:19
Real * store
Definition: newmat.h:393

◆ GetCol() [1/2]

void DiagonalMatrix::GetCol ( MatrixRowCol mrc)
virtual

Implements GeneralMatrix.

Definition at line 235 of file newmat3.cpp.

References MatrixRowCol::cw, MatrixRowCol::data, MatrixRowCol::length, REPORT, MatrixRowCol::rowcol, MatrixRowCol::skip, MatrixRowCol::storage, and StoreHere.

236 {
237  REPORT
238  mrc.skip=mrc.rowcol; mrc.storage=1; mrc.length=nrows;
239  if (+(mrc.cw*StoreHere)) // should not happen
240  Throw(InternalException("DiagonalMatrix::GetCol(MatrixRowCol&)"));
241  else { REPORT mrc.data=store+mrc.skip; }
242  // not accessed
243 }
#define REPORT
Definition: newmat3.cpp:20
Real * data
Definition: newmatrc.h:43
int storage
Definition: newmatrc.h:40
LoadAndStoreFlag cw
Definition: newmatrc.h:44
Real * store
Definition: newmat.h:393
int rowcol
Definition: newmatrc.h:41
int length
Definition: newmatrc.h:38

◆ GetCol() [2/2]

void DiagonalMatrix::GetCol ( MatrixColX mrc)
virtual

Implements GeneralMatrix.

Definition at line 245 of file newmat3.cpp.

References MatrixRowCol::data, MatrixRowCol::length, REPORT, MatrixRowCol::rowcol, MatrixRowCol::skip, MatrixRowCol::storage, and MatrixColX::store.

246 {
247  REPORT
248  mrc.skip=mrc.rowcol; mrc.storage=1; mrc.length=nrows;
249  mrc.data = mrc.store+mrc.skip;
250  *(mrc.data)=*(store+mrc.skip);
251 }
#define REPORT
Definition: newmat3.cpp:20
Real * data
Definition: newmatrc.h:43
int storage
Definition: newmatrc.h:40
Real * store
Definition: newmatrc.h:139
Real * store
Definition: newmat.h:393
int rowcol
Definition: newmatrc.h:41
int length
Definition: newmatrc.h:38

◆ GetRow()

void DiagonalMatrix::GetRow ( MatrixRowCol mrc)
virtual

Implements GeneralMatrix.

Definition at line 228 of file newmat3.cpp.

References MatrixRowCol::data, MatrixRowCol::length, REPORT, MatrixRowCol::rowcol, MatrixRowCol::skip, and MatrixRowCol::storage.

229 {
230  REPORT
231  mrc.skip=mrc.rowcol; mrc.storage=1;
232  mrc.data=store+mrc.skip; mrc.length=ncols;
233 }
#define REPORT
Definition: newmat3.cpp:20
Real * data
Definition: newmatrc.h:43
int storage
Definition: newmatrc.h:40
Real * store
Definition: newmat.h:393
int rowcol
Definition: newmatrc.h:41
int length
Definition: newmatrc.h:38

◆ Image()

GeneralMatrix * DiagonalMatrix::Image ( ) const
privatevirtual

Reimplemented from GeneralMatrix.

Definition at line 775 of file newmat4.cpp.

References DiagonalMatrix(), MatrixErrorNoSpace(), and REPORT.

776 {
777  REPORT
778  GeneralMatrix* gm = new DiagonalMatrix(*this); MatrixErrorNoSpace(gm);
779  return gm;
780 }
void MatrixErrorNoSpace(const void *)
Definition: newmatex.cpp:292
#define REPORT
Definition: newmat4.cpp:19
DiagonalMatrix()
Definition: newmat.h:776

◆ LogDeterminant()

LogAndSign DiagonalMatrix::LogDeterminant ( ) const
virtual

Reimplemented from GeneralMatrix.

Definition at line 649 of file newmat8.cpp.

References REPORT.

650 {
651  REPORT
652  int i = nrows; LogAndSign sum; Real* s = store;
653  while (i--) sum *= *s++;
654  ((GeneralMatrix&)*this).tDelete(); return sum;
655 }
double Real
Definition: include.h:57
InvertedMatrix i() const
Definition: newmat6.cpp:325
#define REPORT
Definition: newmat8.cpp:21
Real * store
Definition: newmat.h:393

◆ MakeSolver()

GeneralMatrix* DiagonalMatrix::MakeSolver ( )
inlinevirtual

Reimplemented from GeneralMatrix.

Definition at line 806 of file newmat.h.

806 { return this; } // for solving

◆ NextCol() [1/2]

void DiagonalMatrix::NextCol ( MatrixRowCol mrc)
virtual

Reimplemented from GeneralMatrix.

Definition at line 256 of file newmat3.cpp.

References MatrixRowCol::IncrDiag(), and REPORT.

256 { REPORT mrc.IncrDiag(); }
void IncrDiag()
Definition: newmatrc.h:46
#define REPORT
Definition: newmat3.cpp:20

◆ NextCol() [2/2]

void DiagonalMatrix::NextCol ( MatrixColX mrc)
virtual

Reimplemented from GeneralMatrix.

Definition at line 259 of file newmat3.cpp.

References MatrixRowCol::cw, MatrixRowCol::data, MatrixRowCol::IncrDiag(), LoadOnEntry, REPORT, MatrixRowCol::rowcol, and StoreOnExit.

260 {
261  REPORT
262  if (+(mrc.cw*StoreOnExit))
263  { REPORT *(store+mrc.rowcol)=*(mrc.data); }
264  mrc.IncrDiag();
265  int t1 = +(mrc.cw*LoadOnEntry);
266  if (t1 && mrc.rowcol < ncols)
267  { REPORT *(mrc.data)=*(store+mrc.rowcol); }
268 }
void IncrDiag()
Definition: newmatrc.h:46
#define REPORT
Definition: newmat3.cpp:20
Real * data
Definition: newmatrc.h:43
LoadAndStoreFlag cw
Definition: newmatrc.h:44
Real * store
Definition: newmat.h:393
int rowcol
Definition: newmatrc.h:41

◆ NextRow()

void DiagonalMatrix::NextRow ( MatrixRowCol mrc)
virtual

Reimplemented from GeneralMatrix.

Definition at line 253 of file newmat3.cpp.

References MatrixRowCol::IncrDiag(), and REPORT.

253 { REPORT mrc.IncrDiag(); }
void IncrDiag()
Definition: newmatrc.h:46
#define REPORT
Definition: newmat3.cpp:20

◆ nric()

Real* DiagonalMatrix::nric ( ) const
inline

Definition at line 811 of file newmat.h.

812  { CheckStore(); return store-1; } // for use by NRIC
void CheckStore() const
Definition: newmat4.cpp:864
Real * store
Definition: newmat.h:393

◆ operator()() [1/4]

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

Definition at line 63 of file newmat6.cpp.

References n, and REPORT.

64 {
65  REPORT
66  if (n<=0 || m!=n || m>nrows || n>ncols)
67  Throw(IndexException(m,n,*this));
68  return store[n-1];
69 }
os2<< "> n<< " > nendobj n
#define REPORT
Definition: newmat6.cpp:19
Real * store
Definition: newmat.h:393

◆ operator()() [2/4]

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

Definition at line 71 of file newmat6.cpp.

References REPORT.

72 {
73  REPORT
74  if (m<=0 || m>nrows) Throw(IndexException(m,*this));
75  return store[m-1];
76 }
#define REPORT
Definition: newmat6.cpp:19
Real * store
Definition: newmat.h:393

◆ operator()() [3/4]

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

Definition at line 175 of file newmat6.cpp.

References n, and REPORT.

176 {
177  REPORT
178  if (n<=0 || m!=n || m>nrows || n>ncols)
179  Throw(IndexException(m,n,*this));
180  return store[n-1];
181 }
os2<< "> n<< " > nendobj n
#define REPORT
Definition: newmat6.cpp:19
Real * store
Definition: newmat.h:393

◆ operator()() [4/4]

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

Definition at line 183 of file newmat6.cpp.

References REPORT.

184 {
185  REPORT
186  if (m<=0 || m>nrows) Throw(IndexException(m,*this));
187  return store[m-1];
188 }
#define REPORT
Definition: newmat6.cpp:19
Real * store
Definition: newmat.h:393

◆ operator+=() [1/2]

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

Definition at line 815 of file newmat.h.

815 { PlusEqual(M); }
void PlusEqual(const GeneralMatrix &gm)
Definition: newmat7.cpp:148

◆ operator+=() [2/2]

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

Definition at line 817 of file newmat.h.

References GeneralMatrix::operator+=().

void operator+=(const BaseMatrix &)
Definition: newmat6.cpp:469

◆ operator-=() [1/2]

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

Definition at line 816 of file newmat.h.

816 { MinusEqual(M); }
void MinusEqual(const GeneralMatrix &gm)
Definition: newmat7.cpp:178

◆ operator-=() [2/2]

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

Definition at line 818 of file newmat.h.

References GeneralMatrix::operator-=().

void operator-=(const BaseMatrix &)
Definition: newmat6.cpp:482

◆ operator=() [1/3]

void DiagonalMatrix::operator= ( const BaseMatrix X)

Definition at line 408 of file newmat6.cpp.

References MatrixType::Dg, and REPORT.

409 {
410  REPORT // CheckConversion(X);
411  // MatrixConversionCheck mcc;
412  Eq(X,MatrixType::Dg);
413 }
#define REPORT
Definition: newmat6.cpp:19
void Eq(const BaseMatrix &, MatrixType)
Definition: newmat4.cpp:637

◆ operator=() [2/3]

void DiagonalMatrix::operator= ( Real  f)
inline

Definition at line 782 of file newmat.h.

References GeneralMatrix::operator=().

void operator=(Real)
Definition: newmat6.cpp:342

◆ operator=() [3/3]

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

Definition at line 783 of file newmat.h.

783 { Eq(m); }
void Eq(const BaseMatrix &, MatrixType)
Definition: newmat4.cpp:637

◆ ReSize() [1/2]

void DiagonalMatrix::ReSize ( int  nr)

Definition at line 256 of file newmat4.cpp.

References REPORT, and GeneralMatrix::ReSize().

Referenced by NonLinearLeastSquares::GetHatDiagonal(), ReSize(), and SVD().

257 { REPORT GeneralMatrix::ReSize(nr,nr,nr); }
#define REPORT
Definition: newmat4.cpp:19
void ReSize(int, int, int)
Definition: newmat4.cpp:216

◆ ReSize() [2/2]

void DiagonalMatrix::ReSize ( const GeneralMatrix A)
virtual

Reimplemented from GeneralMatrix.

Definition at line 319 of file newmat4.cpp.

References A, n, REPORT, and ReSize().

320 {
321  REPORT
322  int n = A.Nrows();
323  if (n != A.Ncols())
324  {
325  Tracer tr("DiagonalMatrix::ReSize(GM)");
326  Throw(NotSquareException(*this));
327  }
328  ReSize(n);
329 }
#define A(r, c)
#define REPORT
Definition: newmat4.cpp:19
os2<< "> n<< " > nendobj n
void ReSize(int)
Definition: newmat4.cpp:256

◆ Solver()

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

Reimplemented from GeneralMatrix.

Definition at line 496 of file newmat2.cpp.

References MatrixRowCol::data, REPORT, MatrixRowCol::skip, and MatrixRowCol::storage.

497 {
498  // mrc = mrc / mrc1 (elementwise)
499  REPORT
500  int f = mrc1.skip; int f0 = mrc.skip;
501  int l = f + mrc1.storage; int lx = f0 + mrc.storage;
502  if (f < f0) { f = f0; if (l < f) l = f; }
503  if (l > lx) { l = lx; if (f > lx) f = lx; }
504 
505  Real* elx = mrc.data; Real* eld = store+f;
506 
507  int l1 = f-f0; while (l1--) *elx++ = 0.0;
508  l1 = l-f; while (l1--) *elx++ /= *eld++;
509  lx -= l; while (lx--) *elx++ = 0.0;
510  // Solver makes sure input and output point to same memory
511 }
double Real
Definition: include.h:57
#define REPORT
Definition: newmat2.cpp:21
Real * data
Definition: newmatrc.h:43
int storage
Definition: newmatrc.h:40
Real * store
Definition: newmat.h:393

◆ Trace()

Real DiagonalMatrix::Trace ( ) const
virtual

Reimplemented from BaseMatrix.

Definition at line 548 of file newmat8.cpp.

References REPORT.

549 {
550  REPORT
551  int i = nrows; Real sum = 0.0; Real* s = store;
552  while (i--) sum += *s++;
553  ((GeneralMatrix&)*this).tDelete(); return sum;
554 }
double Real
Definition: include.h:57
InvertedMatrix i() const
Definition: newmat6.cpp:325
#define REPORT
Definition: newmat8.cpp:21
Real * store
Definition: newmat.h:393

◆ Transpose()

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

Reimplemented from GeneralMatrix.

Definition at line 57 of file newmat5.cpp.

References REPORT.

58 { REPORT return Evaluate(mt); }
GeneralMatrix * Evaluate(MatrixType mt=MatrixTypeUnSp)
Definition: newmat5.cpp:79
#define REPORT
Definition: newmat5.cpp:20

◆ Type()

MatrixType DiagonalMatrix::Type ( ) const
virtual

Implements GeneralMatrix.

Definition at line 418 of file newmat4.cpp.

References MatrixType::Dg.

418 { return MatrixType::Dg; }

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