GNU Octave  6.2.0
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

octave_idx_typedim
 
int n
 
octave_idx_typestride
 
int top
 
bool use_blk
 

Detailed Description

Definition at line 290 of file Array.cc.

Constructor & Destructor Documentation

◆ rec_permute_helper() [1/2]

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

Definition at line 302 of file Array.cc.

References dim, 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 )
delete

◆ ~rec_permute_helper()

rec_permute_helper::~rec_permute_helper ( void  )
inline

Definition at line 346 of file Array.cc.

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 
)
inlinestatic

Definition at line 351 of file Array.cc.

References m, min(), and OCTAVE_LOCAL_BUFFER.

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

◆ do_permute()

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

Definition at line 391 of file Array.cc.

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

Referenced by permute().

◆ operator=()

rec_permute_helper& rec_permute_helper::operator= ( const rec_permute_helper )
delete

◆ permute()

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

Definition at line 426 of file Array.cc.

References do_permute(), and top.

Member Data Documentation

◆ dim

octave_idx_type* rec_permute_helper::dim
private

Definition at line 297 of file Array.cc.

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

◆ n

int rec_permute_helper::n
private

Definition at line 295 of file Array.cc.

Referenced by rec_permute_helper().

◆ stride

octave_idx_type* rec_permute_helper::stride
private

Definition at line 298 of file Array.cc.

Referenced by rec_permute_helper(), and do_permute().

◆ top

int rec_permute_helper::top
private

Definition at line 296 of file Array.cc.

Referenced by rec_permute_helper(), and permute().

◆ use_blk

bool rec_permute_helper::use_blk
private

Definition at line 299 of file Array.cc.

Referenced by rec_permute_helper(), and do_permute().


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