6#ifndef DEEPLIMA_APPS_STD_MATRIX_H
7#define DEEPLIMA_APPS_STD_MATRIX_H
19 inline T
get(
size_t idx)
const
53 inline size_t get(
size_t time,
size_t feat)
const
55 assert(feat < std::numeric_limits<size_t>::max());
56 assert(time < std::numeric_limits<size_t>::max());
75 inline size_t dim()
const
size_t size() const
Return the number of elements in this matrix.
size_t dim() const
Return the dimension of this matrix's vectors (their size).
StdMatrix(const StdMatrix &m)
StdMatrix & operator=(const StdMatrix &m)
size_t get(size_t time, size_t feat) const
void copy(const StdMatrix< T > &m)
std::vector< T > & operator[](size_t index)
void resize(size_t new_size)
std::vector< std::vector< T > > m_tensor
StdMatrix(std::shared_ptr< std::vector< std::vector< T > > > input)
StdVector(const std::vector< T > &input)
const std::vector< T > & m_vector