PAL 2D Arrays: Boolean and Integer Operations
Initialization, copying, reduction, extrema, and type conversion for two-dimensional Boolean and integer arrays.
|
|
|---|---|
KiratPalCopy2DBoolSignature
void KiratPalCopy2DBool( T_BOOL** ppbSource, T_BOOL** ppbDestination, T_INT iSizeDim1, T_INT iSizeDim2);Description
Copies the specified data or subrange to the destination. Mathematical operation
\(D_{\mathbf i}\leftarrow S_{\mathbf i}\) element-wise (with type conversion where indicated by the function name). Supported implementations
|
|
KiratPalCopy2DIntSignature
void KiratPalCopy2DInt( T_INT** ppiSource, T_INT** ppiDestination, T_INT iSizeDim1, T_INT iSizeDim2);Description
Copies the specified data or subrange to the destination. Mathematical operation
\(D_{\mathbf i}\leftarrow S_{\mathbf i}\) element-wise (with type conversion where indicated by the function name). Supported implementations
|
|
KiratPalCopy2DIntTo2DFloatSignature
void KiratPalCopy2DIntTo2DFloat( T_INT** ppiSource, T_FLOAT** ppfDestination, T_INT iSizeDim1, T_INT iSizeDim2);Description
Copies the specified data or subrange to the destination. Mathematical operation
\(y_{\mathbf i}=\operatorname{cast}(x_{\mathbf i})\) element-wise. Supported implementations
|
|
KiratPalGetMax2DIntSignature
T_INT KiratPalGetMax2DInt(T_INT** ppiVector, T_INT iSize1, T_INT iSize2);Description
Returns the largest value in the array. Mathematical operation
\(y=\max_{\mathbf i}x_{\mathbf i}\). Supported implementations
|
|
KiratPalGetMin2DIntSignature
T_INT KiratPalGetMin2DInt(T_INT** ppiVector, T_INT iSize1, T_INT iSize2);Description
Returns the smallest value in the array. Mathematical operation
\(y=\min_{\mathbf i}x_{\mathbf i}\). Supported implementations
|
|
KiratPalSet2DBoolToValueSignature
void KiratPalSet2DBoolToValue( T_BOOL** ppbDestination, T_INT iSizeDim1, T_INT iSizeDim2, T_BOOL bValue);Description
Sets all elements of the array to a constant value. Mathematical operation
\(d_{\mathbf i}\leftarrow c\) for every array index \(\mathbf i\). Supported implementations
|
|
KiratPalSet2DIntToValueSignature
void KiratPalSet2DIntToValue( T_INT** ppiDestination, T_INT iSizeDim1, T_INT iSizeDim2, T_INT iValue);Description
Sets all elements of the array to a constant value. Mathematical operation
\(d_{\mathbf i}\leftarrow c\) for every array index \(\mathbf i\). Supported implementations
|
|
KiratPalSet2DIntToZeroSignature
void KiratPalSet2DIntToZero(T_INT** ppiDestination, T_INT iSizeDim1, T_INT iSizeDim2);Description
Sets all elements of the array to zero. Mathematical operation
\(d_{\mathbf i}\leftarrow0\) for every array index \(\mathbf i\). Supported implementations
|
|
KiratPalSumUp2DBoolVectorToScalarSignature
T_INT KiratPalSumUp2DBoolVectorToScalar(const T_BOOL** ppbSource, T_INT iSizeDim1, T_INT iSizeDim2);Description
Sums array elements; variants sum values, magnitudes, powers, or Boolean true values. Mathematical operation
\(s=\sum_i\mathbf1[b_i=\mathrm{true}]\) (or the analogous sum over all matrix indices). Supported implementations
|