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 > BaseVec< 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 >::result 
pod_type
 if eT is non-complex, pod_type is same as eT. otherwise, pod_type is the underlying type used by std::complex
typedef eT * row_iterator
typedef const eT * const_row_iterator

Public Member Functions

 Row ()
 Row (const u32 N)
 Row (const u32 in_rows, const u32 in_cols)
 Row (const char *text)
const Rowoperator= (const char *text)
 create the matrix from a textual description
 Row (const std::string &text)
const Rowoperator= (const std::string &text)
 create the matrix from a textual description
 Row (const Row &X)
const Rowoperator= (const Row &X)
 construct a matrix from a given matrix
const Rowoperator*= (const Row &X)
 in-place matrix multiplication
 Row (const Mat< eT > &X)
const Rowoperator= (const Mat< eT > &X)
const Rowoperator*= (const Mat< eT > &X)
 Row (eT *aux_mem, const u32 aux_n_rows, const u32 aux_n_cols, const bool copy_aux_mem=true)
 construct a row vector from a given auxiliary array
 Row (const eT *aux_mem, const u32 aux_n_rows, const u32 aux_n_cols)
 construct a row vector from a given auxiliary array
 Row (eT *aux_mem, const u32 aux_length, const bool copy_aux_mem=true)
 construct a row vector from a given auxiliary array
 Row (const eT *aux_mem, const u32 aux_length)
 construct a row vector from a given auxiliary 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 subview_cube< eT > &X)
const Rowoperator= (const subview_cube< eT > &X)
 construct a matrix from a subview_cube instance
const Rowoperator*= (const subview_cube< eT > &X)
 in-place matrix mutiplication (using a single-slice subcube 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)
 in-place matrix mutiplication (using a diagview on the right-hand-side)
arma_inline eT & col (const u32 col_num)
 creation of subview (column vector)
arma_inline eT col (const u32 col_num) const
 creation of subview (column vector)
arma_inline subview_row< eT > cols (const u32 in_col1, const u32 in_col2)
 creation of subview (submatrix comprised of specified column vectors)
arma_inline const subview_row< eT > cols (const u32 in_col1, const u32 in_col2) const
 creation of subview (submatrix comprised of specified column vectors)
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 eop_type >
 Row (const eOp< T1, eop_type > &X)
template<typename T1 , typename eop_type >
const Rowoperator= (const eOp< T1, eop_type > &X)
 create a matrix from eOp, i.e. run the previously delayed unary operations
template<typename T1 , typename eop_type >
const Rowoperator*= (const eOp< T1, eop_type > &X)
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
template<typename T1 , typename T2 , typename eglue_type >
 Row (const eGlue< T1, T2, eglue_type > &X)
template<typename T1 , typename T2 , typename eglue_type >
const Rowoperator= (const eGlue< T1, T2, eglue_type > &X)
 create a matrix from eGlue, i.e. run the previously delayed binary operations
template<typename T1 , typename T2 , typename eglue_type >
const Rowoperator*= (const eGlue< T1, T2, eglue_type > &X)
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)
template<typename eT2 >
void copy_size (const Mat< eT2 > &m)
void zeros ()
void zeros (const u32 N)
void zeros (const u32 n_rows, const u32 n_cols)
void ones ()
void ones (const u32 N)
void ones (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
void load (std::istream &is, const file_type type=auto_detect)
 load a matrix from a stream
row_iterator begin_row (const u32 row_num)
const_row_iterator begin_row (const u32 row_num) const
row_iterator end_row (const u32 row_num)
const_row_iterator end_row (const u32 row_num) const

Detailed Description

template<typename eT>
class Row< eT >

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

Definition at line 23 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 27 of file Row_proto.hpp.

template<typename eT>
typedef get_pod_type<elem_type>::result Row< eT >::pod_type

if eT is non-complex, pod_type is same as eT. otherwise, pod_type is the underlying type used by std::complex

Reimplemented from Mat< eT >.

Definition at line 28 of file Row_proto.hpp.

template<typename eT>
typedef eT* Row< eT >::row_iterator

Definition at line 110 of file Row_proto.hpp.

template<typename eT>
typedef const eT* Row< eT >::const_row_iterator

Definition at line 111 of file Row_proto.hpp.


Member Function Documentation

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

in-place matrix multiplication

Reimplemented from Mat< eT >.

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