HMLP: High-performance Machine Learning Primitives
|
#include <matrix.hpp>
Public Member Functions | |
Permutation (Long size) | |
Matrix< ValueType > | GetMatrix () const |
Long | Dim () const |
Permutation< ValueType > | Transpose () |
Permutation< ValueType > | operator* (const Permutation< ValueType > &P) const |
Matrix< ValueType > | operator* (const Matrix< ValueType > &M) const |
Static Public Member Functions | |
static Permutation< ValueType > | RandPerm (Long size) |
Public Attributes | |
Vector< Long > | perm |
Vector< ValueType > | scal |
/brief P=[e(p1)*s1 e(p2)*s2 ... e(pn)*sn], where e(k) is the kth unit vector, perm := [p1 p2 ... pn] is the permutation vector, scal := [s1 s2 ... sn] is the scaling vector.