|
TRF Language Model
|
#include <wb-mat.h>
Public Member Functions | |
| VecShell () | |
| VecShell (T *p, int size) | |
| void | Fill (T v) |
| T * | GetBuf () const |
| int | GetSize () const |
| int | ByteSize () const |
| VecShell< T > | GetSub (int nPos, int nLen) |
| void | Reset (T *p, int size) |
| T & | operator[] (int i) |
| void | operator= (VecShell v) |
| void | operator+= (VecShell v) |
| void | operator-= (VecShell v) |
| void | operator*= (T n) |
| void | operator/= (T n) |
| bool | operator== (VecShell v) |
| T | Sum () |
Protected Attributes | |
| T * | m_pBuf |
| buf pointer More... | |
| int | m_nSize |
| buf size More... | |
Friends | |
| bool | VecEqual (VecShell< T > &v1, VecShell< T > &v2) |
| define the friend function More... | |
| void | VecAdd (VecShell< T > &res, VecShell< T > &v1, VecShell< T > &v2) |
| calculate V + V More... | |
| T | VecDot (VecShell< T > &v1, VecShell< T > &v2) |
| calculate V*V More... | |
| T | MatVec2 (MatShell< T > &m, VecShell< T > &v1, VecShell< T > &v2) |
| calculate V1*M*V2 More... | |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
|
protected |