CPP Linear Algebra ToolBox  0.1.0
lowerTriangularMatrix.cpp File Reference
Include dependency graph for lowerTriangularMatrix.cpp:

Functions

LTMatrix operator* (const LTMatrix &lhs, const LTMatrix &rhs)
 Product of Lower Triangular Matrices. For \(L_1\) and \(L_2\) two lower triangular matrices of dimension \((n,n)\), we have. More...
 
Vector operator* (const LTMatrix &lhs, const Vector &rhs)
 
LTMatrix operator* (const double k, const LTMatrix &L)
 
LTMatrix operator* (const LTMatrix &L, const double k)
 
LTMatrix operator+ (const LTMatrix &lhs, const LTMatrix &rhs)
 
LTMatrix operator+ (const double k, const LTMatrix &L)
 
LTMatrix operator+ (const LTMatrix &L, const double k)
 
LTMatrix operator- (const LTMatrix &lhs, const LTMatrix &rhs)
 
LTMatrix operator- (const LTMatrix &L, const double k)
 
LTMatrix operator- (const double k, const LTMatrix &L)
 
LTMatrix operator/ (const LTMatrix &L, const double k)
 
std::ostream & operator<< (std::ostream &os, const LTMatrix &L)
 

Function Documentation

◆ operator*() [1/4]

LTMatrix operator* ( const double  k,
const LTMatrix L 
)

◆ operator*() [2/4]

LTMatrix operator* ( const LTMatrix L,
const double  k 
)

◆ operator*() [3/4]

LTMatrix operator* ( const LTMatrix lhs,
const LTMatrix rhs 
)

Product of Lower Triangular Matrices. For \(L_1\) and \(L_2\) two lower triangular matrices of dimension \((n,n)\), we have.

\[ (L_1L_2)_{i,j} = \sum_{k=j}^{i} (L_1)_{ik}(L_2)_{kj} ,\quad \forall\, j \leq i \]

Parameters
lhsLeft hand side, a lower triangular matrix of size : \((n, n)\)
rhsRight hand side, a lower triangular matrix of size : \((n, n)\)
Returns
LTMatrix Product lhs and rhs stored as a new lower triangular matrix object
Warning
lhs and rhs must be square (and thus of the same dimensions) lower triangular matrices in order for the product to make sense.

◆ operator*() [4/4]

Vector operator* ( const LTMatrix lhs,
const Vector rhs 
)

◆ operator+() [1/3]

LTMatrix operator+ ( const double  k,
const LTMatrix L 
)

◆ operator+() [2/3]

LTMatrix operator+ ( const LTMatrix L,
const double  k 
)

◆ operator+() [3/3]

LTMatrix operator+ ( const LTMatrix lhs,
const LTMatrix rhs 
)

◆ operator-() [1/3]

LTMatrix operator- ( const double  k,
const LTMatrix L 
)

◆ operator-() [2/3]

LTMatrix operator- ( const LTMatrix L,
const double  k 
)

◆ operator-() [3/3]

LTMatrix operator- ( const LTMatrix lhs,
const LTMatrix rhs 
)

◆ operator/()

LTMatrix operator/ ( const LTMatrix L,
const double  k 
)

◆ operator<<()

std::ostream& operator<< ( std::ostream &  os,
const LTMatrix L 
)