Class vector_view_matrix (o2scl)¶
-
template<class vec_t, class data_t = double>
class vector_view_matrix¶ View a vector as a matrix.
Public Functions
-
inline vector_view_matrix(vec_t &v, size_t sz, size_t rows)¶
Create a matrix view of a vector with size
sz
.
-
inline size_t size1() const¶
Return the number of rows.
-
inline size_t size2() const¶
Return the number of columns.
-
inline size_t array_index(size_t i, size_t j) const¶
Construct an array index from matrix indices.
-
inline void matrix_indices(size_t ii, size_t &i, size_t &j) const¶
Construct matrix indices from an array index.
-
inline vector_view_matrix(vec_t &v, size_t sz, size_t rows)¶