PLearn 0.1
|
Go to the source code of this file.
Namespaces | |
namespace | PLearn |
< for swap | |
Functions | |
template<class T > | |
TVec< T > | PLearn::deepCopy (const TVec< T > &source) |
template<class T > | |
TVec< T > | PLearn::deepCopy (const TVec< T > &source, CopiesMap &copies) |
template<class T > | |
void | PLearn::deepCopyField (TVec< T > &field, CopiesMap &copies) |
template<class T > | |
void | PLearn::swap (TVec< T > &a, TVec< T > &b) |
template<class T > | |
void | PLearn::operator<< (const TVec< T > &m1, const TVec< T > &m2) |
copy TVec << TVec | |
template<class T , class U > | |
void | PLearn::operator<< (const TVec< T > &m1, const TVec< U > &m2) |
copy TVec << TVec (different types) | |
template<class T , class U > | |
void | PLearn::operator>> (const TVec< T > &m1, const TVec< U > &m2) |
copy TVec >> TVec | |
template<class T > | |
void | PLearn::savePVec (const string &filename, const TVec< T > &vec) |
void | PLearn::loadPVec (const string &filename, TVec< float > &vec) |
template<class T > | |
PStream & | PLearn::operator<< (PStream &out, const TVec< T > &v) |
Read and Write from C++ stream: write saves length and read resizes accordingly (the raw modes don't write any size information) | |
template<class T > | |
PStream & | PLearn::operator>> (PStream &in, TVec< T > &v) |
template<class T > | |
void | PLearn::binwrite (ostream &out, const TVec< T > &v) |
template<class T > | |
void | PLearn::binread (istream &in, TVec< T > &v) |
template<class T > | |
void | PLearn::binwrite_double (ostream &out, const TVec< T > &v) |
template<class T > | |
void | PLearn::binread_double (istream &in, TVec< T > &v) |
template<class T > | |
ostream & | PLearn::operator<< (ostream &out, const TVec< T > &v) |
template<class T > | |
istream & | PLearn::operator>> (istream &in, const TVec< T > &v) |
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::concat (const TVec< T > &v1, const TVec< T > &v2) |
Returns a TVec which is a concatenation of v1 and v2. | |
template<class T > | |
TVec< T > | PLearn::concat (const TVec< T > &v1, const TVec< T > &v2, const TVec< T > &v3) |
Returns a TVec which is a concatenation of v1,v2,v3. | |
template<class T > | |
TVec< T > | PLearn::concat (const TVec< T > &v1, const TVec< T > &v2, const TVec< T > &v3, const TVec< T > &v4) |
Returns a TVec which is a concatenation of v1,v2,v3,v4. | |
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 > | |
bool | PLearn::operator<= (const TVec< T > &left, const TVec< T > &right) |
A simple family of relational operators for TVec. | |
template<class T > | |
bool | PLearn::operator>= (const TVec< T > &left, const TVec< T > &right) |
template<class T > | |
bool | PLearn::operator< (const TVec< T > &left, const TVec< T > &right) |
template<class T > | |
bool | PLearn::operator> (const TVec< T > &left, const TVec< T > &right) |