DMRITool
v0.1.1-139-g860d86b4
Diffusion MRI Tool
|
#include <linalg.h>
Matrix with shifts.
Public Member Functions | |
virtual void | copyRow (const int i, Vector< T > &x) const |
virtual void | copyTo (Matrix< T > ©) const |
virtual T | dot (const Matrix< T > &x) const |
int | m () const |
virtual void | mult (const SpVector< T > &x, Vector< T > &b, const T alpha=1.0, const T beta=0.0) const |
virtual void | mult (const Vector< T > &x, Vector< T > &b, const T alpha=1.0, const T beta=0.0) const |
virtual void | mult (const Matrix< T > &B, Matrix< T > &C, const bool transA=false, const bool transB=false, const T a=1.0, const T b=0.0) const |
virtual void | mult (const SpMatrix< T > &B, Matrix< T > &C, const bool transA=false, const bool transB=false, const T a=1.0, const T b=0.0) const |
virtual void | multSwitch (const Matrix< T > &B, Matrix< T > &C, const bool transA=false, const bool transB=false, const T a=1.0, const T b=0.0) const |
void | multTrans (const Vector< T > &x, Vector< T > &b, const T alpha=1.0, const T beta=0.0) const |
int | n () const |
virtual void | print (const string &name) const |
ShiftMatrix (const AbstractMatrixB< T > &inputmatrix, const int shifts, const bool center=false) | |
virtual void | XtX (Matrix< T > &XtX) const |
virtual | ~ShiftMatrix () |
Public Member Functions inherited from spams::AbstractMatrixB< T > | |
virtual | ~AbstractMatrixB () |
Private Member Functions | |
void | center () |
Private Attributes | |
bool | _centered |
const AbstractMatrixB< T > * | _inputmatrix |
int | _m |
Vector< T > | _means |
int | _n |
int | _shifts |
|
inline |
|
inlinevirtual |
|
inlineprivate |
Definition at line 5296 of file linalg.h.
References spams::Vector< T >::set().
|
virtual |
Implements spams::AbstractMatrixB< T >.
Definition at line 5406 of file linalg.h.
References spams::Vector< T >::rawX(), spams::Vector< T >::setData(), and spams::Vector< T >::sub().
|
virtual |
Implements spams::AbstractMatrixB< T >.
|
virtual |
Implements spams::AbstractMatrixB< T >.
|
inlinevirtual |
Implements spams::AbstractMatrixB< T >.
Definition at line 5256 of file linalg.h.
References spams::SpVector< T >::dot(), and spams::SpVector< T >::print().
|
virtual |
perform b = alpha*A*x + beta*b, when x is sparse
Implements spams::AbstractMatrixB< T >.
Definition at line 5332 of file linalg.h.
References spams::Vector< T >::add(), spams::Vector< T >::rawX(), spams::Vector< T >::resize(), spams::Vector< T >::scal(), spams::Vector< T >::setData(), spams::Vector< T >::setZeros(), spams::SpVector< T >::toFull(), and spams::Vector< T >::toSparse().
|
virtual |
perform b = alpha*A*x + beta*b, when x is sparse
Implements spams::AbstractMatrixB< T >.
Definition at line 5360 of file linalg.h.
References spams::Vector< T >::add(), spams::Vector< T >::rawX(), spams::Vector< T >::resize(), spams::Vector< T >::scal(), spams::Vector< T >::setData(), and spams::Vector< T >::setZeros().
|
virtual |
perform C = a*A*B + b*C, possibly transposing A or B.
Implements spams::AbstractMatrixB< T >.
|
virtual |
Implements spams::AbstractMatrixB< T >.
|
virtual |
perform C = a*B*A + b*C, possibly transposing A or B.
Implements spams::AbstractMatrixB< T >.
|
virtual |
b <- alpha A'x + beta b
Implements spams::AbstractMatrixB< T >.
Definition at line 5310 of file linalg.h.
References spams::Vector< T >::add(), spams::Vector< T >::copy(), spams::Vector< T >::n(), spams::Vector< T >::rawX(), spams::Vector< T >::resize(), spams::Vector< T >::setData(), spams::Vector< T >::setZeros(), and spams::Vector< T >::sum().
|
inlinevirtual |
Implements spams::AbstractMatrixB< T >.
|
virtual |
Implements spams::AbstractMatrixB< T >.
|
virtual |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |