Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Private Member Functions | Friends
subview< eT > Class Template Reference

#include <subview_bones.hpp>

Inheritance diagram for subview< eT >:
Inheritance graph
[legend]

List of all members.

Public Types

typedef eT elem_type
typedef get_pod_type
< elem_type >::result 
pod_type

Public Member Functions

eT & at (const uword in_row, const uword in_col)
eT at (const uword in_row, const uword in_col) const
bool check_overlap (const subview &x) const
subview_col< eT > col (const uword col_num)
 creation of subview (column vector)
const subview_col< eT > col (const uword col_num) const
 creation of subview (column vector)
arma_inline eT * colptr (const uword in_col)
arma_inline const eT * colptr (const uword in_col) const
subview< eT > cols (const uword in_col1, const uword in_col2)
 creation of subview (submatrix comprised of specified column vectors)
const subview< eT > cols (const uword in_col1, const uword in_col2) const
 creation of subview (submatrix comprised of specified column vectors)
diagview< eT > diag (const sword in_id=0)
 creation of diagview (diagonal)
const diagview< eT > diag (const sword in_id=0) const
 creation of diagview (diagonal)
void eye ()
void fill (const eT val)
bool is_vec () const
void ones ()
template<typename T1 >
void operator%= (const Base< eT, T1 > &x)
void operator%= (const subview &x)
eT & operator() (const uword i)
eT operator() (const uword i) const
eT & operator() (const uword in_row, const uword in_col)
eT operator() (const uword in_row, const uword in_col) const
subview_row< eT > operator() (const uword row_num, const span &col_span)
const subview_row< eT > operator() (const uword row_num, const span &col_span) const
subview_col< eT > operator() (const span &row_span, const uword col_num)
const subview_col< eT > operator() (const span &row_span, const uword col_num) const
subview< eT > operator() (const span &row_span, const span &col_span)
const subview< eT > operator() (const span &row_span, const span &col_span) const
void operator*= (const eT val)
void operator+= (const eT val)
template<typename T1 >
void operator+= (const Base< eT, T1 > &x)
void operator+= (const subview &x)
void operator-= (const eT val)
template<typename T1 >
void operator-= (const Base< eT, T1 > &x)
void operator-= (const subview &x)
void operator/= (const eT val)
template<typename T1 >
void operator/= (const Base< eT, T1 > &x)
void operator/= (const subview &x)
template<typename T1 >
void operator= (const Base< eT, T1 > &x)
void operator= (const subview &x)
 x.submat(...) = y.submat(...)
eT & operator[] (const uword i)
eT operator[] (const uword i) const
subview_row< eT > row (const uword row_num)
 creation of subview (row vector)
const subview_row< eT > row (const uword row_num) const
 creation of subview (row vector)
subview< eT > rows (const uword in_row1, const uword in_row2)
 creation of subview (submatrix comprised of specified row vectors)
const subview< eT > rows (const uword in_row1, const uword in_row2) const
 creation of subview (submatrix comprised of specified row vectors)
subview< eT > submat (const uword in_row1, const uword in_col1, const uword in_row2, const uword in_col2)
 creation of subview (submatrix)
const subview< eT > submat (const uword in_row1, const uword in_col1, const uword in_row2, const uword in_col2) const
 creation of subview (generic submatrix)
subview< eT > submat (const span &row_span, const span &col_span)
 creation of subview (submatrix)
const subview< eT > submat (const span &row_span, const span &col_span) const
 creation of subview (generic submatrix)
void swap_cols (const uword in_col1, const uword in_col2)
void swap_rows (const uword in_row1, const uword in_row2)
Col< eT > unsafe_col (const uword col_num)
const Col< eT > unsafe_col (const uword col_num) const
void zeros ()
 ~subview ()

Static Public Member Functions

static void div_inplace (Mat< eT > &out, const subview &in)
 X /= Y.submat(...)
static void extract (Mat< eT > &out, const subview &in)
 X = Y.submat(...)
static void minus_inplace (Mat< eT > &out, const subview &in)
 X -= Y.submat(...)
static void plus_inplace (Mat< eT > &out, const subview &in)
 X += Y.submat(...)
static void schur_inplace (Mat< eT > &out, const subview &in)
 X %= Y.submat(...)

Public Attributes

const uword aux_col1
const uword aux_row1
arma_aligned const Mat< eT > & m
const uword n_cols
const uword n_elem
const uword n_rows

Protected Member Functions

arma_inline subview (const Mat< eT > &in_m, const uword in_row1, const uword in_col1, const uword in_n_rows, const uword in_n_cols)
arma_inline subview (Mat< eT > &in_m, const uword in_row1, const uword in_col1, const uword in_n_rows, const uword in_n_cols)

Protected Attributes

arma_aligned Mat< eT > * m_ptr

Private Member Functions

 subview ()

Friends

class Mat< eT >

Detailed Description

template<typename eT>
class subview< eT >

Class for storing data required to construct or apply operations to a submatrix (i.e. where the submatrix starts and ends as well as a reference/pointer to the original matrix),

Definition at line 22 of file subview_bones.hpp.


Member Typedef Documentation

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

Reimplemented in subview_row< eT >, and subview_col< eT >.

Definition at line 29 of file subview_bones.hpp.

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

Reimplemented in subview_row< eT >, and subview_col< eT >.

Definition at line 30 of file subview_bones.hpp.


Constructor & Destructor Documentation

template<typename eT>
subview< eT >::subview ( ) [private]

Friends And Related Function Documentation

template<typename eT>
friend class Mat< eT > [friend]

Reimplemented in subview_row< eT >, and subview_col< eT >.

Definition at line 166 of file subview_bones.hpp.


Member Data Documentation

template<typename eT>
const uword subview< eT >::aux_col1

Definition at line 33 of file subview_bones.hpp.

template<typename eT>
const uword subview< eT >::aux_row1

Definition at line 32 of file subview_bones.hpp.

template<typename eT>
arma_aligned const Mat<eT>& subview< eT >::m

Definition at line 24 of file subview_bones.hpp.

template<typename eT>
arma_aligned Mat<eT>* subview< eT >::m_ptr [protected]

Definition at line 25 of file subview_bones.hpp.

template<typename eT>
const uword subview< eT >::n_cols

Definition at line 36 of file subview_bones.hpp.

template<typename eT>
const uword subview< eT >::n_elem

Definition at line 37 of file subview_bones.hpp.

template<typename eT>
const uword subview< eT >::n_rows

Definition at line 35 of file subview_bones.hpp.


The documentation for this class was generated from the following files:


armadillo_matrix
Author(s): Conrad Sanderson - NICTA (www.nicta.com.au), (Wrapper by Sjoerd van den Dries)
autogenerated on Tue Jan 7 2014 11:42:08