GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
rec_permute_helper Class Reference
Collaboration diagram for rec_permute_helper:

Public Member Functions

 rec_permute_helper (const dim_vector &dv, const Array< octave_idx_type > &perm)
 rec_permute_helper (const rec_permute_helper &)=delete
 ~rec_permute_helper (void)
rec_permute_helperoperator= (const rec_permute_helper &)=delete
template<typename T >
void permute (const T *src, T *dest) const

Static Public Member Functions

template<typename T >
static T * blk_trans (const T *src, T *dest, octave_idx_type nr, octave_idx_type nc)

Private Member Functions

template<typename T >
T * do_permute (const T *src, T *dest, int lev) const

Private Attributes

int n
int top
bool use_blk

Detailed Description

Definition at line 289 of file

Constructor & Destructor Documentation

◆ rec_permute_helper() [1/2]

rec_permute_helper::rec_permute_helper ( const dim_vector dv,
const Array< octave_idx_type > &  perm 

Definition at line 301 of file

References dim, dv, i, k, n, Array< T >::numel(), OCTAVE_LOCAL_BUFFER, stride, top, and use_blk.

◆ rec_permute_helper() [2/2]

rec_permute_helper::rec_permute_helper ( const rec_permute_helper )

◆ ~rec_permute_helper()

rec_permute_helper::~rec_permute_helper ( void  )

Definition at line 345 of file

References dim.

Member Function Documentation

◆ blk_trans()

template<typename T >
static T* rec_permute_helper::blk_trans ( const T *  src,
T *  dest,
octave_idx_type  nr,
octave_idx_type  nc 

Definition at line 350 of file

References i, min(), and OCTAVE_LOCAL_BUFFER.

Referenced by do_permute(), and Array< octave_value >::transpose().

◆ do_permute()

template<typename T >
T* rec_permute_helper::do_permute ( const T *  src,
T *  dest,
int  lev 
) const

Definition at line 390 of file

References blk_trans(), dim, i, stride, and use_blk.

Referenced by permute().

◆ operator=()

rec_permute_helper& rec_permute_helper::operator= ( const rec_permute_helper )

◆ permute()

template<typename T >
void rec_permute_helper::permute ( const T *  src,
T *  dest 
) const

Definition at line 425 of file

References do_permute(), and top.

Referenced by Array< octave_value >::permute().

Member Data Documentation

◆ dim

octave_idx_type* rec_permute_helper::dim

Definition at line 296 of file

Referenced by do_permute(), rec_permute_helper(), and ~rec_permute_helper().

◆ n

int rec_permute_helper::n

Definition at line 294 of file

Referenced by rec_permute_helper().

◆ stride

octave_idx_type* rec_permute_helper::stride

Definition at line 297 of file

Referenced by do_permute(), and rec_permute_helper().

◆ top

int rec_permute_helper::top

Definition at line 295 of file

Referenced by permute(), and rec_permute_helper().

◆ use_blk

bool rec_permute_helper::use_blk

Definition at line 298 of file

Referenced by do_permute(), and rec_permute_helper().

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