#include <Col_proto.hpp>
Public Types | |
typedef eT | elem_type |
the type of elements stored in the matrix | |
typedef get_pod_type < elem_type >::pod_type | pod_type |
if eT is std::complex, pod_type is the underlying type used by std::complex. < otherwise pod_type is the same as elem_type | |
Public Member Functions | |
Col () | |
construct an empty column vector | |
Col (const u32 n_elem) | |
construct a column vector with the specified number of n_elem | |
Col (const char *text) | |
construct a column vector from specified text | |
const Col & | operator= (const char *text) |
construct a column vector from specified text | |
Col (const Col &X) | |
construct a column vector from a given column vector | |
const Col & | operator= (const Col &X) |
construct a column vector from a given column vector | |
Col (const Mat< eT > &X) | |
construct a column vector from a given matrix; the matrix must have exactly one column | |
const Col & | operator= (const Mat< eT > &X) |
construct a column vector from a given matrix; the matrix must have exactly one column | |
const Col & | operator*= (const Mat< eT > &X) |
in-place matrix multiplication | |
Col (const eT *aux_mem, const u32 aux_length) | |
construct a column vector from a given auxillary array of eTs | |
template<typename T1 , typename T2 > | |
Col (const Base< pod_type, T1 > &A, const Base< pod_type, T2 > &B) | |
Col (const subview< eT > &X) | |
construct a column vector from given a submatrix; the submatrix must have exactly one column | |
const Col & | operator= (const subview< eT > &X) |
construct a column vector from given a submatrix; the submatrix must have exactly one column | |
const Col & | operator*= (const subview< eT > &X) |
in-place matrix mutiplication (using a submatrix on the right-hand-side) | |
Col (const diagview< eT > &X) | |
construct a column vector from given a diagview | |
const Col & | operator= (const diagview< eT > &X) |
construct a column vector from given a diagview | |
const Col & | operator*= (const diagview< eT > &X) |
template<typename T1 , typename op_type > | |
Col (const Op< T1, op_type > &X) | |
construct a column vector from Op, i.e. run the previously delayed operations; the result of the operations must have exactly one column | |
template<typename T1 , typename op_type > | |
const Col & | operator= (const Op< T1, op_type > &X) |
construct a column vector from Op, i.e. run the previously delayed operations; the result of the operations must have exactly one column | |
template<typename T1 , typename op_type > | |
const Col & | operator*= (const Op< T1, op_type > &X) |
in-place matrix multiplication, with the right-hand-side operand having delayed operations | |
template<typename T1 , typename T2 , typename glue_type > | |
Col (const Glue< T1, T2, glue_type > &X) | |
construct a column vector from Glue, i.e. run the previously delayed operations; the result of the operations must have exactly one column | |
template<typename T1 , typename T2 , typename glue_type > | |
const Col & | operator= (const Glue< T1, T2, glue_type > &X) |
construct a column vector from Glue, i.e. run the previously delayed operations; the result of the operations must have exactly one column | |
template<typename T1 , typename T2 , typename glue_type > | |
const Col & | operator*= (const Glue< T1, T2, glue_type > &X) |
in-place matrix multiplications, with the right-hand-side operands having delayed operations | |
void | set_size (const u32 n_elem) |
change the number of n_rows | |
void | set_size (const u32 n_rows, const u32 n_cols) |
change the number of n_rows (this function re-implements mat::set_size() in order to check the number of columns) | |
void | zeros () |
void | zeros (const u32 n_elem) |
void | zeros (const u32 n_rows, const u32 n_cols) |
void | load (const std::string name, const file_type type=auto_detect) |
load a matrix from a file | |
template<typename T1 , typename T2 > | |
Col (const Base< typename Col< eT >::pod_type, T1 > &A, const Base< typename Col< eT >::pod_type, T2 > &B) |
Definition at line 22 of file Col_proto.hpp.
the type of elements stored in the matrix
Reimplemented from Mat< eT >.
Definition at line 26 of file Col_proto.hpp.
typedef get_pod_type<elem_type>::pod_type Col< eT >::pod_type |
if eT is std::complex, pod_type is the underlying type used by std::complex. < otherwise pod_type is the same as elem_type
Reimplemented from Mat< eT >.
Definition at line 27 of file Col_proto.hpp.
Col< eT >::Col | ( | const Base< pod_type, T1 > & | A, | |
const Base< pod_type, T2 > & | B | |||
) | [inline, explicit] |