1.1.0
CCC
 
MatrixFactory Class Reference

#include <MatrixFactory.hpp>

Static Public Member Functions

static AMatrixprodMatMat (const AMatrix *x, const AMatrix *y, bool transposeX=false, bool transposeY=false)
 TODO : Use smartpointer. More...
 
template<typename T >
static TprodMatMat (const AMatrix *x, const AMatrix *y, bool transposeX=false, bool transposeY=false)
 
static AMatrixSquarecreateMatrixSquare (const AMatrixSquare *x, int nrow)
 
static AMatrixcreateReduce (const AMatrix *x, const VectorInt &validRows=VectorInt(), const VectorInt &validCols=VectorInt())
 

Member Function Documentation

AMatrixSquare * MatrixFactory::createMatrixSquare ( const AMatrixSquare x,
int  nrow 
)
static

Create a Matrix similar to the input one with a given row number

Returns
Pointer to the newly created AMatrix matrix
Parameters
[in]xFirst AMatrix matrix
[in]nrowNumber of rows

TODO : use typeinfo

AMatrix * MatrixFactory::createReduce ( const AMatrix x,
const VectorInt validRows = VectorInt(),
const VectorInt validCols = VectorInt() 
)
static

TODO : use typeinfo

AMatrix * MatrixFactory::prodMatMat ( const AMatrix x,
const AMatrix y,
bool  transposeX = false,
bool  transposeY = false 
)
static

TODO : Use smartpointer.

Performs the product of two matrices: X * Y

Returns
Pointer to the newly created AMatrix matrix
Parameters
[in]xFirst AMatrix matrix
[in]ySecond AMatrix matrix
[in]transposeXTrue if First matrix is transposed
[in]transposeYTrue if Second matrix is transposed
template<typename T >
T * MatrixFactory::prodMatMat ( const AMatrix x,
const AMatrix y,
bool  transposeX = false,
bool  transposeY = false 
)
static

Performs the product of two matrices: X * Y

Returns
Pointer to the newly created AMatrix matrix
Parameters
[in]xFirst AMatrix matrix
[in]ySecond AMatrix matrix
[in]transposeXTrue if First matrix is transposed
[in]transposeYTrue if Second matrix is transposed
Remarks
: To be called as follows: MatrixSparse* mat = MatrixFactory::prodMatMat<MatrixSparse>(x, y);

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