Itasca C++ Interface
Loading...
Searching...
No Matches
Public Member Functions | Related Symbols | List of all members
DSymMatrix< SX > Class Template Reference

DSymMatrix is a SymMatrix that defaults to type double... More...

#include <matrix.h>

Inheritance diagram for DSymMatrix< SX >:
SymMatrix< double, SX >

Public Member Functions

 DSymMatrix ()
 Default constructor, no data initialization.
 
 DSymMatrix (const double &t)
 Explicit contructor, initializes all elements to t.
 
 DSymMatrix (const DSymMatrix< SX > &m)
 Copy constructor.
 
 DSymMatrix (const SymMatrix< double, SX > &m)
 Copy constructor, for SymMatrix.
 
const DSymMatrix< SX > & operator= (const DSymMatrix< SX > &m)
 Equality operator.
 
const DSymMatrix< SX > & operator= (const SymMatrix< double, SX > &m)
 Equality operator, for Matrix.
 
- Public Member Functions inherited from SymMatrix< double, SX >
 SymMatrix ()
 Default constructor, does nothing and no initialization.
 
 SymMatrix (const double &t)
 Explicit constructor, initializes all elements to value t.
 
 SymMatrix (const SymMatrix< double, SX > &m)
 Copy constructor.
 
const SymMatrix< double, SX > & operator= (const SymMatrix< double, SX > &m)
 Equality operator.
 
const double & get (unsigned x, unsigned y) const
 Retrieve value at row x column y. Bounds checking is done in a debug compile.
 
double & get (unsigned x, unsigned y)
 Retrieve value at row x column y. Bounds checking is done in a debug compile.
 
const Column operator[] (unsigned y) const
 Array access operator returns a Column helper class, which has it's own [] operator to access a column of the row.
 
Column operator[] (unsigned y)
 Array access operator returns a Column helper class, which has it's own [] operator to access a column of the row.
 
const double & operator() (unsigned x, unsigned y) const
 () operator access to get(x,y)
 
double & operator() (unsigned x, unsigned y)
 () operator access to get(x,y)
 
constexpr UVect2 size () const
 
const SymMatrix< double, SX > & operator+= (const SymMatrix< double, SX > &m)
 In-place matrix addition.
 
const SymMatrix< double, SX > & operator-= (const SymMatrix< double, SX > &m)
 In-place matrix subtraction.
 
const SymMatrix< double, SX > & operator*= (const double &t)
 In-place multiplication by a scalar.
 
const SymMatrix< double, SX > & operator/= (const double &t)
 In-place division by a scalar.
 
SymMatrix< double, SX > operator+ (const SymMatrix< double, SX > &m) const
 Binary addition operator for a symetric matris.
 
Matrix< double, SX, SX > operator+ (const Matrix< double, SX, SX > &m) const
 Binary addition operator.
 
SymMatrix< double, SX > operator- (const SymMatrix< double, SX > &m) const
 Binary subtraction operator for a symetric matrix.
 
Matrix< double, SX, SX > operator- (const Matrix< double, SX, SX > &m) const
 Binary subtraction operator.
 
SymMatrix< double, SX > operator* (const double &t) const
 Binary scalar multiplication operator for a symetric matrix.
 
Matrix< double, SX, SX > operator* (const SymMatrix< double, SX > &m) const
 Binary matrix multiplication operator – simplest naive approach.
 
Matrix< double, SX, SZ > operator* (const Matrix< double, SX, SZ > &m) const
 Binary matrix multiplication operator – simplest naive approach.
 
SymMatrix< double, SX > operator/ (const double &t) const
 Binary scalar division operator for a symetric matrix.
 
void addBlock (const Matrix< double, SX2, SY2 > &m, unsigned iSrc, unsigned jSrc, unsigned iDst, unsigned jDst)
 Adds a block to this matrix from matrix m using the block size (BX,BY), from block indices (iSrc,jSrc) to block indices (iDst,jDst)
 
void addBlock (const SymMatrix< double, SX2 > &m, unsigned iSrc, unsigned jSrc, unsigned iDst, unsigned jDst)
 Adds a block to this matrix from matrix m using the block size (BX,BY), from block indices (iSrc,jSrc) to block indices (iDst,jDst)
 
void addGenBlock (const Matrix< double, SX2, SY2 > &m, unsigned iSrc, unsigned jSrc, unsigned iDst, unsigned jDst)
 Adds a block to this matrix from matrix m using the block size (BX,BY), from normal not block indices (iSrc,jSrc) to (iDst,jDst)
 
void addGenBlock (const SymMatrix< double, SX2 > &m, unsigned iSrc, unsigned jSrc, unsigned iDst, unsigned jDst)
 Adds a block to this matrix from matrix m using the block size (BX,BY), from normal not block indices (iSrc,jSrc) to (iDst,jDst)
 
double maxNorm () const
 Returns the infinity norm of the matrix, or the maximum absolute magnitude of any element.
 
SymMatrix< double, SX > transpose () const
 Return the transpose of the matrix.
 
double trace () const
 Return the trace of the matrix or the sum of the diagonal components. Works also if the matrix is not square.
 
void set (const double &t=double())
 Sets all matrix elements to t.
 
constexpr double minEntry () const
 
constexpr double maxEntry () const
 
Matrix< double, SX, SX > toMatrix () const
 Returns its copy.
 

Related Symbols

(Note that these are not member symbols.)

SymTensor toSymTensor (const DSymMatrix< 3 > &m)
 

Additional Inherited Members

- Static Public Member Functions inherited from SymMatrix< double, SX >
static SymMatrix< double, SX > identity ()
 Returns an identity matrix (or as close as you can get if not diagonal).
 
static SymMatrix< double, SX > fromMatrix (const Matrix< double, SX, SX > &m)
 Assign from full matrix.
 
static constexpr unsigned index (unsigned x, unsigned y)
 
- Public Attributes inherited from SymMatrix< double, SX >
double t_ [len_]
 
- Static Public Attributes inherited from SymMatrix< double, SX >
static constexpr unsigned len_
 
static constexpr unsigned indexConst_
 

Detailed Description

template<unsigned SX>
class DSymMatrix< SX >

DSymMatrix is a SymMatrix that defaults to type double...


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