$search

Eglue_core

Classes

struct  eglue_core< eglue_type >
class  eglue_div
class  eglue_minus
class  eglue_plus
class  eglue_schur

Defines

#define arma_applier_1(operatorA, operatorB)
#define arma_applier_2(operatorA, operatorB)
#define arma_applier_3(operatorA, operatorB)

Functions

template<typename T1 , typename T2 >
static arma_hot void eglue_core::apply (Cube< typename T1::elem_type > &out, const eGlueCube< T1, T2, eglue_type > &x)
template<typename T1 , typename T2 >
static arma_hot void eglue_core::apply (Mat< typename T1::elem_type > &out, const eGlue< T1, T2, eglue_type > &x)
template<typename T1 , typename T2 >
static arma_hot void eglue_core::apply_inplace_div (Cube< typename T1::elem_type > &out, const eGlueCube< T1, T2, eglue_type > &x)
template<typename T1 , typename T2 >
static arma_hot void eglue_core::apply_inplace_div (Mat< typename T1::elem_type > &out, const eGlue< T1, T2, eglue_type > &x)
template<typename T1 , typename T2 >
static arma_hot void eglue_core::apply_inplace_minus (Cube< typename T1::elem_type > &out, const eGlueCube< T1, T2, eglue_type > &x)
template<typename T1 , typename T2 >
static arma_hot void eglue_core::apply_inplace_minus (Mat< typename T1::elem_type > &out, const eGlue< T1, T2, eglue_type > &x)
template<typename T1 , typename T2 >
static arma_hot void eglue_core::apply_inplace_plus (Cube< typename T1::elem_type > &out, const eGlueCube< T1, T2, eglue_type > &x)
template<typename T1 , typename T2 >
static arma_hot void eglue_core::apply_inplace_plus (Mat< typename T1::elem_type > &out, const eGlue< T1, T2, eglue_type > &x)
template<typename T1 , typename T2 >
static arma_hot void eglue_core::apply_inplace_schur (Cube< typename T1::elem_type > &out, const eGlueCube< T1, T2, eglue_type > &x)
template<typename T1 , typename T2 >
static arma_hot void eglue_core::apply_inplace_schur (Mat< typename T1::elem_type > &out, const eGlue< T1, T2, eglue_type > &x)

Define Documentation

#define arma_applier_1 ( operatorA,
operatorB   ) 
Value:
{\
  uword i,j;\
  \
  for(i=0, j=1; j<n_elem; i+=2, j+=2)\
    {\
    eT tmp_i = P1[i];\
    eT tmp_j = P1[j];\
    \
    tmp_i operatorB##= P2[i];\
    tmp_j operatorB##= P2[j];\
    \
    out_mem[i] operatorA tmp_i;\
    out_mem[j] operatorA tmp_j;\
    }\
  \
  if(i < n_elem)\
    {\
    out_mem[i] operatorA P1[i] operatorB P2[i];\
    }\
  }

Definition at line 61 of file eglue_core_meat.hpp.

#define arma_applier_2 ( operatorA,
operatorB   ) 
Value:
{\
  uword count = 0;\
  \
  for(uword col=0; col<n_cols; ++col)\
    {\
    uword i,j;\
    \
    for(i=0, j=1; j<n_rows; i+=2, j+=2, count+=2)\
      {\
      eT tmp_i = P1.at(i,col);\
      eT tmp_j = P1.at(j,col);\
      \
      tmp_i operatorB##= P2.at(i,col);\
      tmp_j operatorB##= P2.at(j,col);\
      \
      out_mem[count  ] operatorA tmp_i;\
      out_mem[count+1] operatorA tmp_j;\
      }\
    \
    if(i < n_rows)\
      {\
      out_mem[count] operatorA P1.at(i,col) operatorB P2.at(i,col);\
      ++count;\
      }\
    }\
  }

Definition at line 85 of file eglue_core_meat.hpp.

#define arma_applier_3 ( operatorA,
operatorB   ) 
Value:
{\
  uword count = 0;\
  \
  for(uword slice=0; slice<n_slices; ++slice)\
    {\
    for(uword col=0; col<n_cols; ++col)\
      {\
      uword i,j;\
      \
      for(i=0, j=1; j<n_rows; i+=2, j+=2, count+=2)\
        {\
        eT tmp_i = P1.at(i,col,slice);\
        eT tmp_j = P1.at(j,col,slice);\
        \
        tmp_i operatorB##= P2.at(i,col,slice);\
        tmp_j operatorB##= P2.at(j,col,slice);\
        \
        out_mem[count  ] operatorA tmp_i;\
        out_mem[count+1] operatorA tmp_j;\
        }\
      \
      if(i < n_rows)\
        {\
        out_mem[count] operatorA P1.at(i,col,slice) operatorB P2.at(i,col,slice);\
        ++count;\
        }\
      }\
    }\
  }

Definition at line 115 of file eglue_core_meat.hpp.


Function Documentation

template<typename eglue_type>
template<typename T1 , typename T2 >
arma_hot void eglue_core< eglue_type >::apply ( Cube< typename T1::elem_type > &  out,
const eGlueCube< T1, T2, eglue_type > &  x 
) [inline, static, inherited]

Definition at line 394 of file eglue_core_meat.hpp.

template<typename eglue_type>
template<typename T1 , typename T2 >
arma_hot void eglue_core< eglue_type >::apply ( Mat< typename T1::elem_type > &  out,
const eGlue< T1, T2, eglue_type > &  x 
) [inline, static, inherited]

Definition at line 158 of file eglue_core_meat.hpp.

template<typename eglue_type>
template<typename T1 , typename T2 >
arma_hot void eglue_core< eglue_type >::apply_inplace_div ( Cube< typename T1::elem_type > &  out,
const eGlueCube< T1, T2, eglue_type > &  x 
) [inline, static, inherited]

Definition at line 584 of file eglue_core_meat.hpp.

template<typename eglue_type>
template<typename T1 , typename T2 >
arma_hot void eglue_core< eglue_type >::apply_inplace_div ( Mat< typename T1::elem_type > &  out,
const eGlue< T1, T2, eglue_type > &  x 
) [inline, static, inherited]

Definition at line 343 of file eglue_core_meat.hpp.

template<typename eglue_type>
template<typename T1 , typename T2 >
arma_hot void eglue_core< eglue_type >::apply_inplace_minus ( Cube< typename T1::elem_type > &  out,
const eGlueCube< T1, T2, eglue_type > &  x 
) [inline, static, inherited]

Definition at line 490 of file eglue_core_meat.hpp.

template<typename eglue_type>
template<typename T1 , typename T2 >
arma_hot void eglue_core< eglue_type >::apply_inplace_minus ( Mat< typename T1::elem_type > &  out,
const eGlue< T1, T2, eglue_type > &  x 
) [inline, static, inherited]

Definition at line 251 of file eglue_core_meat.hpp.

template<typename eglue_type>
template<typename T1 , typename T2 >
arma_hot void eglue_core< eglue_type >::apply_inplace_plus ( Cube< typename T1::elem_type > &  out,
const eGlueCube< T1, T2, eglue_type > &  x 
) [inline, static, inherited]

Definition at line 443 of file eglue_core_meat.hpp.

template<typename eglue_type>
template<typename T1 , typename T2 >
arma_hot void eglue_core< eglue_type >::apply_inplace_plus ( Mat< typename T1::elem_type > &  out,
const eGlue< T1, T2, eglue_type > &  x 
) [inline, static, inherited]

Definition at line 205 of file eglue_core_meat.hpp.

template<typename eglue_type>
template<typename T1 , typename T2 >
arma_hot void eglue_core< eglue_type >::apply_inplace_schur ( Cube< typename T1::elem_type > &  out,
const eGlueCube< T1, T2, eglue_type > &  x 
) [inline, static, inherited]

Definition at line 537 of file eglue_core_meat.hpp.

template<typename eglue_type>
template<typename T1 , typename T2 >
arma_hot void eglue_core< eglue_type >::apply_inplace_schur ( Mat< typename T1::elem_type > &  out,
const eGlue< T1, T2, eglue_type > &  x 
) [inline, static, inherited]

Definition at line 297 of file eglue_core_meat.hpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


armadillo_matrix
Author(s): Conrad Sanderson - NICTA (www.nicta.com.au), (Wrapper by Sjoerd van den Dries)
autogenerated on Tue Mar 5 12:27:51 2013