PLearn 0.1
Namespaces | Functions
TMat_impl.h File Reference
#include "TMat_decl.h"
#include "TMatElementIterator_impl.h"
#include "TMatRowsIterator_impl.h"
#include "TMatRowsAsArraysIterator_impl.h"
#include "TMatColRowsIterator_impl.h"
Include dependency graph for TMat_impl.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  PLearn
 

< for swap


Functions

template<class T , class I >
void PLearn::selectElements (const TVec< T > &source, const TVec< I > &indices, TVec< T > &destination)
template<class T >
void PLearn::elementsEqualTo (const TVec< T > &source, const T &value, const TVec< T > &destination)
 put in destination 1's when (*this)[i]==value, 0 otherwise
template<class T >
TVec< T > PLearn::removeElement (const TVec< T > &v, int elemnum)
 if the element to remove is the first or the last one, then a submatrix (a view) of m will be returned (for efficiency) otherwise, it is a fresh copy with the element removed.
template<class T , class I >
void PLearn::selectRows (const TMat< T > &source, const TVec< I > &row_indices, TMat< T > &destination)
template<class T , class I >
void PLearn::selectColumns (const TMat< T > &source, const TVec< I > &column_indices, TMat< T > &destination)
template<class T , class I >
void PLearn::select (const TMat< T > &source, const TVec< I > &row_indices, const TVec< I > &column_indices, TMat< T > &destination)
template<class T >
TMat< T > PLearn::removeRow (const TMat< T > &m, int rownum)
 returns a new mat which is m with the given row removed if the row to remove is the first or the last one, then a submatrix (a view) of m will be returned (for efficiency) otherwise, it is a fresh copy with the row removed.
template<class T >
TMat< T > PLearn::removeColumn (const TMat< T > &m, int colnum)
 returns a new mat which is m with the given column removed if the column to remove is the first or the last one, then a submatrix (a view) of m will be returned (for efficiency) otherwise, it is a fresh copy with the column removed.
template<class T >
TMat< T > PLearn::diagonalmatrix (const TVec< T > &v)
template<class T >
TMat< T > PLearn::deepCopy (const TMat< T > source)
template<class T >
TMat< T > PLearn::deepCopy (const TMat< T > source, CopiesMap copies)
template<class T >
void PLearn::deepCopyField (TMat< T > &field, CopiesMap &copies)
template<class T >
void PLearn::clear (const TMat< T > &x)
template<class T >
void PLearn::swap (TMat< T > &a, TMat< T > &b)
template<class T >
void PLearn::operator<< (const TMat< T > &m1, const TMat< T > &m2)
 copy TMat << TMat
template<class T , class U >
void PLearn::operator<< (const TMat< T > &m1, const TMat< U > &m2)
 copy TMat << TMat (different types)
template<class T >
void PLearn::operator<< (const TMat< T > &m1, const TVec< T > &m2)
 copy TMat << Tvec
template<class T , class U >
void PLearn::operator<< (const TMat< T > &m1, const TVec< U > &m2)
 copy TMat << Tvec (different types)
template<class T >
void PLearn::operator<< (const TVec< T > &m1, const TMat< T > &m2)
 copy TVec << TMat
template<class T , class U >
void PLearn::operator<< (const TVec< T > &m1, const TMat< U > &m2)
 copy TVec << TMat (different types)
template<class T , class U >
void PLearn::operator>> (const TMat< T > &m1, const TMat< U > &m2)
 copy TMat >> TMat
template<class T , class U >
void PLearn::operator>> (const TVec< T > &m1, const TMat< U > &m2)
 copy TVec >> TMat
template<class T , class U >
void PLearn::operator>> (const TMat< T > &m1, const TVec< U > &m2)
 copy TMat >> Tvec
template<class T >
ostream & PLearn::operator<< (ostream &out, const TMat< T > &m)
 printing a TMat
template<class T >
istream & PLearn::operator>> (istream &in, const TMat< T > &m)
 inputing a TMat
template<class T >
TMat< T > PLearn::rowmatrix (const TVec< T > &v)
 returns a view of this vector as a single row matrix
template<class T >
TMat< T > PLearn::columnmatrix (const TVec< T > &v)
 returns a view of this vector as a single column matrix
template<class T >
void PLearn::select (const TMat< T > &source, const TVec< T > &row_indices, const TVec< T > &column_indices, TMat< T > &destination)
template<class T >
void PLearn::savePMat (const string &filename, const TMat< T > &mat)
void PLearn::loadPMat (const string &filename, TMat< float > &mat)
void PLearn::deepCopyField (Mat *&field, CopiesMap &copies)
template<class T >
PStream & PLearn::operator<< (PStream &out, const TMat< T > &m)
 Read and Write from C++ stream: write saves length() and width(), and read resizes accordingly.
template<class T >
PStream & PLearn::operator>> (PStream &in, TMat< T > &m)
string PLearn::join (const TVec< string > &s, const string &separator)

Detailed Description

Definition in file TMat_impl.h.


Variable Documentation

const TVec<T>& m_values

Definition at line 238 of file TMat_impl.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines