Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Private Member Functions | Friends | List of all members
subview_cube< eT > Class Template Reference

#include <forward_bones.hpp>

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

Public Types

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

Public Member Functions

arma_inline eT & at (const uword in_row, const uword in_col, const uword in_slice)
 
arma_inline eT at (const uword in_row, const uword in_col, const uword in_slice) const
 
bool check_overlap (const subview_cube &x) const
 
bool check_overlap (const Mat< eT > &x) const
 
void fill (const eT val)
 
void ones ()
 
template<typename T1 >
void operator%= (const BaseCube< eT, T1 > &x)
 
void operator%= (const subview_cube &x)
 
template<typename T1 >
void operator%= (const Base< eT, T1 > &x)
 
eT & operator() (const uword i)
 
eT operator() (const uword i) const
 
arma_inline eT & operator() (const uword in_row, const uword in_col, const uword in_slice)
 
arma_inline eT operator() (const uword in_row, const uword in_col, const uword in_slice) const
 
void operator*= (const eT val)
 
void operator+= (const eT val)
 
template<typename T1 >
void operator+= (const BaseCube< eT, T1 > &x)
 
void operator+= (const subview_cube &x)
 
template<typename T1 >
void operator+= (const Base< eT, T1 > &x)
 
void operator-= (const eT val)
 
template<typename T1 >
void operator-= (const BaseCube< eT, T1 > &x)
 
void operator-= (const subview_cube &x)
 
template<typename T1 >
void operator-= (const Base< eT, T1 > &x)
 
void operator/= (const eT val)
 
template<typename T1 >
void operator/= (const BaseCube< eT, T1 > &x)
 
void operator/= (const subview_cube &x)
 
template<typename T1 >
void operator/= (const Base< eT, T1 > &x)
 
template<typename T1 >
void operator= (const BaseCube< eT, T1 > &x)
 
void operator= (const subview_cube &x)
 x.subcube(...) = y.subcube(...) More...
 
template<typename T1 >
void operator= (const Base< eT, T1 > &x)
 
eT & operator[] (const uword i)
 
eT operator[] (const uword i) const
 
arma_inline eT * slice_colptr (const uword in_slice, const uword in_col)
 
arma_inline const eT * slice_colptr (const uword in_slice, const uword in_col) const
 
void zeros ()
 
 ~subview_cube ()
 
- Public Member Functions inherited from BaseCube< eT, subview_cube< eT > >
arma_inline const subview_cube< eT > & get_ref () const
 
void print (const std::string extra_text="") const
 
void print (std::ostream &user_stream, const std::string extra_text="") const
 
void raw_print (const std::string extra_text="") const
 
void raw_print (std::ostream &user_stream, const std::string extra_text="") const
 

Static Public Member Functions

static void div_inplace (Cube< eT > &out, const subview_cube &in)
 cube X /= Y.subcube(...) More...
 
static void div_inplace (Mat< eT > &out, const subview_cube &in)
 mat X /= Y.subcube(...) More...
 
static void extract (Cube< eT > &out, const subview_cube &in)
 cube X = Y.subcube(...) More...
 
static void extract (Mat< eT > &out, const subview_cube &in)
 mat X = Y.subcube(...) More...
 
static void minus_inplace (Cube< eT > &out, const subview_cube &in)
 cube X -= Y.subcube(...) More...
 
static void minus_inplace (Mat< eT > &out, const subview_cube &in)
 mat X -= Y.subcube(...) More...
 
static void plus_inplace (Cube< eT > &out, const subview_cube &in)
 cube X += Y.subcube(...) More...
 
static void plus_inplace (Mat< eT > &out, const subview_cube &in)
 mat X += Y.subcube(...) More...
 
static void schur_inplace (Cube< eT > &out, const subview_cube &in)
 cube X %= Y.subcube(...) More...
 
static void schur_inplace (Mat< eT > &out, const subview_cube &in)
 mat X %= Y.subcube(...) More...
 

Public Attributes

const uword aux_col1
 
const uword aux_row1
 
const uword aux_slice1
 
arma_aligned const Cube< eT > & m
 
const uword n_cols
 
const uword n_elem
 
const uword n_elem_slice
 
const uword n_rows
 
const uword n_slices
 

Protected Member Functions

arma_inline subview_cube (const Cube< eT > &in_m, const uword in_row1, const uword in_col1, const uword in_slice1, const uword in_n_rows, const uword in_n_cols, const uword in_n_slices)
 
arma_inline subview_cube (Cube< eT > &in_m, const uword in_row1, const uword in_col1, const uword in_slice1, const uword in_n_rows, const uword in_n_cols, const uword in_n_slices)
 

Protected Attributes

arma_aligned Cube< eT > * m_ptr
 

Private Member Functions

 subview_cube ()
 

Friends

class Cube< eT >
 
class Mat< eT >
 

Detailed Description

template<typename eT>
class subview_cube< eT >

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

Definition at line 28 of file forward_bones.hpp.

Member Typedef Documentation

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

Definition at line 28 of file subview_cube_bones.hpp.

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

Definition at line 29 of file subview_cube_bones.hpp.

Constructor & Destructor Documentation

template<typename eT>
subview_cube< eT >::subview_cube ( )
private

Friends And Related Function Documentation

template<typename eT>
friend class Cube< eT >
friend

Definition at line 114 of file subview_cube_bones.hpp.

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

Definition at line 113 of file subview_cube_bones.hpp.

Member Data Documentation

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

Definition at line 32 of file subview_cube_bones.hpp.

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

Definition at line 31 of file subview_cube_bones.hpp.

template<typename eT>
const uword subview_cube< eT >::aux_slice1

Definition at line 33 of file subview_cube_bones.hpp.

template<typename eT>
arma_aligned const Cube<eT>& subview_cube< eT >::m

Definition at line 23 of file subview_cube_bones.hpp.

template<typename eT>
arma_aligned Cube<eT>* subview_cube< eT >::m_ptr
protected

Definition at line 24 of file subview_cube_bones.hpp.

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

Definition at line 36 of file subview_cube_bones.hpp.

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

Definition at line 39 of file subview_cube_bones.hpp.

template<typename eT>
const uword subview_cube< eT >::n_elem_slice

Definition at line 37 of file subview_cube_bones.hpp.

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

Definition at line 35 of file subview_cube_bones.hpp.

template<typename eT>
const uword subview_cube< eT >::n_slices

Definition at line 38 of file subview_cube_bones.hpp.


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


armadillo_matrix
Author(s):
autogenerated on Fri Apr 16 2021 02:32:01