
A2.5 Ox exported mathematics functions 71
void VecrCopyMat(VECTOR vDest_r, MATRIX mSrc, int cM, int cN);
void VeccCopyMat(VECTOR vDest_c, MATRIX mSrc, int cM, int cN);
vDest
r[cM*cN] in: allocated vector
out: vectorized m × n matrix (stored by row)
vDest
c[cM*cN] in: allocated vector
out: vectorized m × n matrix (stored by column)
mSrc[cM][cN] in: m × n source matrix
No return value.
VecDup
VECTOR VecDup(VECTOR vSrc, int cM);
vSrc[cM] in: m vector to duplicate
Return value
Return a pointer to the newly allocated destination vector, which holds a copy of
the source vector. A return value of NULL indicates allocation failure.
VecDiscretize
VECTOR VecDiscretize(VECTOR vY, int cY, double dMin, double dMax,
VECTOR vDisc, int cM, VECTOR vT, int iOption);
vY[cY] in: T vector to discretize
dMin in: first point
dMax in: last point, if dMin == dMax, the data minimum
and maximum will be used
vDisc[cM] in: m vector
out: discretized data
vT[cY] in: NULL or T vector
out: if !NULL: points (x-axis)
Return value
Return a pointer to vDisc, which holds the discretized data.
VecTranspose
VECTOR VecTranspose(VECTOR vA, int cM, int cN);
vA[cM * cN] in: M × N matrix stored as vector
out: N × M transposed matrix.
Return value
Returns a pointer to vA.
Description
VecTranspose transposes a matrix which is stored as a column.
Komentarze do niniejszej Instrukcji