PLearn 0.1
|
#include <GenMat.h>
Public Member Functions | |
SquaredSymmMatT (MatT &A) | |
int | length () const |
int | width () const |
void | product (const Vec &x, Vec &y) |
y = A * A * x | |
void | diag (Vec &d) |
void | diagonalOfSquare (Vec &d) |
Protected Attributes | |
MatT & | A_ |
Vec | Ax |
represents A*A procedurally, where A is a square matrix represented by any "standard" matrix type, i.e., which has the the following operations: void product(const Vec& x, Vec& y); < y = A * x void diagonalOfSquare(Vec& d); < d[i] = |A[i]|^2 where A[i] could either be i-th row or col int length(); int width(); This class also assumes that A is symmetric in its implementation of the diag method.
PLearn::SquaredSymmMatT< MatT >::SquaredSymmMatT | ( | MatT & | A | ) | [inline] |
void PLearn::SquaredSymmMatT< MatT >::diag | ( | Vec & | d | ) | [inline] |
Definition at line 91 of file GenMat.h.
References PLearn::diagonalOfSquare().
{ diagonalOfSquare(A_, d); }
void PLearn::SquaredSymmMatT< MatT >::diagonalOfSquare | ( | Vec & | d | ) | [inline] |
int PLearn::SquaredSymmMatT< MatT >::length | ( | ) | const [inline] |
void PLearn::SquaredSymmMatT< MatT >::product | ( | const Vec & | x, |
Vec & | y | ||
) | [inline] |
int PLearn::SquaredSymmMatT< MatT >::width | ( | ) | const [inline] |
MatT& PLearn::SquaredSymmMatT< MatT >::A_ [protected] |
Vec PLearn::SquaredSymmMatT< MatT >::Ax [protected] |