TRF Language Model
wb::MatShell< T > Class Template Reference

#include <wb-mat.h>

Inheritance diagram for wb::MatShell< T >:
wb::Mat< T >

Public Member Functions

 MatShell ()
 
 MatShell (T *pbuf, int row, int col)
 
void Fill (T v)
 
T * GetBuf () const
 
T & Get (unsigned int i, unsigned int j)
 
int GetSize () const
 
int ByteSize () const
 
int GetRow () const
 
int GetCol () const
 
void Reset (T *pbuf, int row, int col)
 
void Read (File &file)
 
void Write (File &file)
 
VecShell< T > operator[] (int i)
 
 operator T* ()
 
bool operator== (MatShell &m)
 

Protected Attributes

T * m_pBuf
 buf pointer More...
 
int m_nRow
 
int m_nCol
 

Friends

MatVec2 (MatShell< T > &m, VecShell< T > &v1, VecShell< T > &v2)
 calculate V1*M*V2 More...
 

Detailed Description

template<class T>
class wb::MatShell< T >

Definition at line 28 of file wb-mat.h.

Constructor & Destructor Documentation

§ MatShell() [1/2]

template<class T>
wb::MatShell< T >::MatShell ( )
inline

Definition at line 121 of file wb-mat.h.

§ MatShell() [2/2]

template<class T>
wb::MatShell< T >::MatShell ( T *  pbuf,
int  row,
int  col 
)
inline

Definition at line 122 of file wb-mat.h.

Member Function Documentation

§ ByteSize()

template<class T>
int wb::MatShell< T >::ByteSize ( ) const
inline

Definition at line 127 of file wb-mat.h.

§ Get()

template<class T>
T& wb::MatShell< T >::Get ( unsigned int  i,
unsigned int  j 
)
inline

Definition at line 125 of file wb-mat.h.

§ GetBuf()

template<class T>
T* wb::MatShell< T >::GetBuf ( ) const
inline

Definition at line 124 of file wb-mat.h.

§ GetCol()

template<class T>
int wb::MatShell< T >::GetCol ( ) const
inline

Definition at line 129 of file wb-mat.h.

§ GetRow()

template<class T>
int wb::MatShell< T >::GetRow ( ) const
inline

Definition at line 128 of file wb-mat.h.

§ GetSize()

template<class T>
int wb::MatShell< T >::GetSize ( ) const
inline

Definition at line 126 of file wb-mat.h.

§ operator T*()

template<class T>
wb::MatShell< T >::operator T* ( )
inline

Definition at line 134 of file wb-mat.h.

§ operator[]()

template<class T>
VecShell<T> wb::MatShell< T >::operator[] ( int  i)
inline

Definition at line 133 of file wb-mat.h.

§ Reset()

template<class T>
void wb::MatShell< T >::Reset ( T *  pbuf,
int  row,
int  col 
)
inline

Definition at line 130 of file wb-mat.h.

Friends And Related Function Documentation

§ MatVec2

template<class T>
T MatVec2 ( MatShell< T > &  m,
VecShell< T > &  v1,
VecShell< T > &  v2 
)
friend

calculate V1*M*V2

Definition at line 251 of file wb-mat.h.

Member Data Documentation

§ m_nCol

template<class T>
int wb::MatShell< T >::m_nCol
protected

Definition at line 119 of file wb-mat.h.

§ m_nRow

template<class T>
int wb::MatShell< T >::m_nRow
protected

Definition at line 118 of file wb-mat.h.

§ m_pBuf

template<class T>
T* wb::MatShell< T >::m_pBuf
protected

buf pointer

Definition at line 117 of file wb-mat.h.


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