MF_Cols_rotate
| MD_Cols_rotate |
ME_Cols_rotate |
MCF_Cols_rotate |
MCD_Cols_rotate |
MCE_Cols_rotate |
MI_Cols_rotate | MBI_Cols_rotate | MSI_Cols_rotate | MLI_Cols_rotate | MQI_Cols_rotate |
MU_Cols_rotate | MUB_Cols_rotate | MUS_Cols_rotate | MUL_Cols_rotate | MUQ_Cols_rotate |
|
Function | rotate all columns by a specified number of positions; thereby, whole rows are moved |
|
Syntax C/C++ | #include <MFstd.h>
void MF_Cols_rotate( fMatrix MA, ui ht, ui len, int pos ); |
C++ MatObj | #include <OptiVec.h>
void matrix<T>::Cols_rotate( const int pos ); |
Pascal/Delphi | uses MFstd;
procedure MF_Cols_rotate( MA:fMatrix; ht, len:UIntSize; pos:Integer ); |
|
CUDA function C/C++ | #include <cudaMFstd.h>
int cudaMF_Cols_rotate( fMatrix d_MA, ui ht, ui len, int pos );
void MFcu_Cols_rotate( fMatrix h_MA, ui ht, ui len, int pos );
|
CUDA function Pascal/Delphi | uses MFstd;
function cudaMF_Cols_rotate( d_MA:fMatrix; ht, len:UIntSize; pos:Integer ): IntBool;
procedure MFcu_Cols_rotate( h_MA:fMatrix; ht, len:UIntSize; pos:Integer );
|
|
Description | MAi,j = MAht-pos+i, j, i=0,..,pos-1
MAi,j = MAi-pos, j, i=pos,...,ht-1
This function is rather inefficient, as it needs to internally allocate and de-allocate work-space each time it is called. If your application contains frequent calls to this function, we recommend to allocate some matrix MBuf as buffer memory and replace the calls to MF_Cols_rotate by calls to MF_Cols_rotate_buf. |
|
|