Row< eT > Class Template Reference
[Row]

Class for row vectors (matrices with only one row). More...

#include <Row_proto.hpp>

Inheritance diagram for Row< eT >:

Mat< eT > Base_vec< eT, Row< eT > > Base< eT, Mat< eT > >

List of all members.

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

 Row ()
 Row (const u32 N)
 Row (const char *text)
const Rowoperator= (const char *text)
 create the matrix from a textual description
 Row (const Row &X)
const Rowoperator= (const Row &X)
const Rowoperator*= (const Row &X)
 Row (const Mat< eT > &X)
const Rowoperator= (const Mat< eT > &X)
 construct a matrix from a given matrix
const Rowoperator*= (const Mat< eT > &X)
 in-place matrix multiplication
 Row (const eT *aux_mem, const u32 aux_length)
 construct a row vector from a given auxillary array
template<typename T1 , typename T2 >
 Row (const Base< pod_type, T1 > &A, const Base< pod_type, T2 > &B)
 Row (const subview< eT > &X)
const Rowoperator= (const subview< eT > &X)
 construct a matrix from subview (e.g. construct a matrix from a delayed submatrix operation)
const Rowoperator*= (const subview< eT > &X)
 in-place matrix mutiplication (using a submatrix on the right-hand-side)
 Row (const diagview< eT > &X)
 construct a row vector from given a diagview
const Rowoperator= (const diagview< eT > &X)
 construct a row vector from given a diagview
const Rowoperator*= (const diagview< eT > &X)
template<typename T1 , typename op_type >
 Row (const Op< T1, op_type > &X)
template<typename T1 , typename op_type >
const Rowoperator= (const Op< T1, op_type > &X)
 create a matrix from Op, i.e. run the previously delayed unary operations
template<typename T1 , typename op_type >
const Rowoperator*= (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 >
 Row (const Glue< T1, T2, glue_type > &X)
template<typename T1 , typename T2 , typename glue_type >
const Rowoperator= (const Glue< T1, T2, glue_type > &X)
 create a matrix from Glue, i.e. run the previously delayed binary operations
template<typename T1 , typename T2 , typename glue_type >
const Rowoperator*= (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)
void set_size (const u32 n_rows, const u32 n_cols)
 change the matrix to have user specified dimensions (data is not preserved)
void zeros ()
void zeros (const u32 N)
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 >
 Row (const Base< typename Row< eT >::pod_type, T1 > &A, const Base< typename Row< eT >::pod_type, T2 > &B)


Detailed Description

template<typename eT>
class Row< eT >

Class for row vectors (matrices with only one row).

Definition at line 22 of file Row_proto.hpp.


Member Typedef Documentation

template<typename eT >
typedef eT Row< eT >::elem_type

the type of elements stored in the matrix

Reimplemented from Mat< eT >.

Definition at line 26 of file Row_proto.hpp.

template<typename eT >
typedef get_pod_type<elem_type>::pod_type Row< 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 Row_proto.hpp.


Constructor & Destructor Documentation

template<typename eT >
template<typename T1 , typename T2 >
Row< eT >::Row ( const Base< pod_type, T1 > &  A,
const Base< pod_type, T2 > &  B 
) [inline, explicit]


Member Function Documentation

template<typename eT >
const Row& Row< eT >::operator*= ( const Row< eT > &  X  )  [inline]

Referenced by Row< eT >::operator*=().