gstlearn  1.0.0
CCC
MatrixFactory Class Reference

#include <MatrixFactory.hpp>

Public Member Functions

 MatrixFactory ()
 
virtual ~MatrixFactory ()
 

Static Public Member Functions

static AMatrixmatProduct (const AMatrix *x, const AMatrix *y)
 TODO : Use smartpointer. More...
 
static AMatrixSquarematNorm (const AMatrixSquare *x, const AMatrix *y)
 
static AMatrixSquarecreateMatrixSquare (const AMatrixSquare *x, int nrow)
 
static AMatrixcreateReduce (const AMatrix *x, const VectorInt &validRows=VectorInt(), const VectorInt &validCols=VectorInt())
 

Constructor & Destructor Documentation

◆ MatrixFactory()

MatrixFactory::MatrixFactory ( )

◆ ~MatrixFactory()

MatrixFactory::~MatrixFactory ( )
virtual

Member Function Documentation

◆ createMatrixSquare()

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

◆ createReduce()

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

TODO : use typeinfo

◆ matNorm()

AMatrixSquare * MatrixFactory::matNorm ( const AMatrixSquare x,
const AMatrix y 
)
static

Performs the norm product of matrix V by matrix X: t(Y) * X * Y

Returns
Pointer to the newly created AMatrix matrix
Parameters
[in]xAMatrixSquare matrix
[in]ySecond AMatrix matrix

◆ matProduct()

AMatrix * MatrixFactory::matProduct ( const AMatrix x,
const AMatrix y 
)
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

TODO : use typeinfo


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