MyraMath
Classes
tril.h File Reference

Returns the lower triangle of a dense Matrix. More...

#include <myramath/MYRAMATH_EXPORT.h>
#include <myramath/utility/Number.h>
Include dependency graph for tril.h:

Go to the source code of this file.

Classes

class  myra::Matrix< Number >
 Tabulates an IxJ matrix. Allows random access, has column major layout to be compatible with BLAS/LAPACK. More...
 
class  myra::MatrixRange< Number >
 Represents a mutable MatrixRange. More...
 
class  myra::CMatrixRange< Number >
 Represents a const MatrixRange. More...
 

Functions

Matrix< NumberS > myra::tril (const CMatrixRange< NumberS > &A)
 Returns the lower triangle of a dense CMatrixRange.
 
Matrix< NumberD > myra::tril (const CMatrixRange< NumberD > &A)
 Returns the lower triangle of a dense CMatrixRange.
 
Matrix< NumberC > myra::tril (const CMatrixRange< NumberC > &A)
 Returns the lower triangle of a dense CMatrixRange.
 
Matrix< NumberZ > myra::tril (const CMatrixRange< NumberZ > &A)
 Returns the lower triangle of a dense CMatrixRange.
 

Detailed Description

Returns the lower triangle of a dense Matrix.

Examples:

   [1 2 3]      [1 0 0]

tril ( [4 5 6] ) -> [4 5 0] [7 8 9] [7 8 9]

tril ( [1 2 3] ) -> [1 0] [4 5 6] [4 5]

    [1 2]       [1 0]

tril ( [3 4] ) -> [3 4] [5 6] [5 6]