![]() |
fml
0.1-0
Fused Matrix Library
|
Row/column operations. More...
Functions | |
template<typename REAL > | |
void | rowsums (const cpumat< REAL > &x, cpuvec< REAL > &s) |
Compute the row sums. More... | |
template<typename REAL > | |
void | rowmeans (const cpumat< REAL > &x, cpuvec< REAL > &s) |
Compute the row means. More... | |
template<typename REAL > | |
void | colsums (const cpumat< REAL > &x, cpuvec< REAL > &s) |
Compute the column sums. More... | |
template<typename REAL > | |
void | colmeans (const cpumat< REAL > &x, cpuvec< REAL > &s) |
Compute the column means. More... | |
template<typename REAL > | |
void | scale (const bool rm_mean, const bool rm_sd, cpumat< REAL > &x) |
Remove the mean and/or the sd from a matrix. More... | |
template<typename REAL > | |
void | rowsums (const gpumat< REAL > &x, gpuvec< REAL > &s) |
Compute the row sums. More... | |
template<typename REAL > | |
void | rowmeans (const gpumat< REAL > &x, gpuvec< REAL > &s) |
Compute the row means. More... | |
template<typename REAL > | |
void | colsums (const gpumat< REAL > &x, gpuvec< REAL > &s) |
Compute the column sums. More... | |
template<typename REAL > | |
void | colmeans (const gpumat< REAL > &x, gpuvec< REAL > &s) |
Compute the column means. More... | |
template<typename REAL > | |
void | scale (const bool rm_mean, const bool rm_sd, gpumat< REAL > &x) |
Remove the mean and/or the sd from a matrix. More... | |
template<typename REAL > | |
void | rowsums (const mpimat< REAL > &x, cpuvec< REAL > &s) |
Compute the row sums. More... | |
template<typename REAL > | |
void | rowmeans (const mpimat< REAL > &x, cpuvec< REAL > &s) |
Compute the row means. More... | |
template<typename REAL > | |
void | colsums (const mpimat< REAL > &x, cpuvec< REAL > &s) |
Compute the column sums. More... | |
template<typename REAL > | |
void | colmeans (const mpimat< REAL > &x, cpuvec< REAL > &s) |
Compute the column means. More... | |
template<typename REAL > | |
void | scale (const bool rm_mean, const bool rm_sd, mpimat< REAL > &x) |
Remove the mean and/or the sd from a matrix. More... | |
Row/column operations.
Compute the column means.
[in] | x | Input data. |
[out] | s | Column means. |
REAL | should be 'float' or 'double'. |
Compute the column means.
[in] | x | Input data. |
[out] | s | Column means. |
REAL | should be 'float' or 'double'. |
Compute the column means.
[in] | x | Input data. |
[out] | s | Column means. |
REAL | should be 'float' or 'double'. |
Compute the column sums.
[in] | x | Input data. |
[out] | s | Column sums. |
REAL | should be 'float' or 'double'. |
Compute the column sums.
[in] | x | Input data. |
[out] | s | Column sums. |
REAL | should be 'float' or 'double'. |
Compute the column sums.
[in] | x | Input data. |
[out] | s | Column sums. |
REAL | should be 'float' or 'double'. |
Compute the row means.
[in] | x | Input data. |
[out] | s | Row means. |
REAL | should be 'float' or 'double'. |
Compute the row means.
[in] | x | Input data. |
[out] | s | Row means. |
REAL | should be 'float' or 'double'. |
Compute the row means.
[in] | x | Input data. |
[out] | s | Row means. |
REAL | should be 'float' or 'double'. |
Compute the row sums.
[in] | x | Input data. |
[out] | s | Row sums. |
REAL | should be 'float' or 'double'. |
Compute the row sums.
[in] | x | Input data. |
[out] | s | Row sums. |
REAL | should be 'float' or 'double'. |
Compute the row sums.
[in] | x | Input data. |
[out] | s | Row sums. |
REAL | should be 'float' or 'double'. |
void dimops::scale | ( | const bool | rm_mean, |
const bool | rm_sd, | ||
cpumat< REAL > & | x | ||
) |
Remove the mean and/or the sd from a matrix.
[in] | rm_mean | Remove the column means? |
[in] | rm_sd | Remove the column sds? |
[in,out] | x | Data to center/scale. |
REAL | should be 'float' or 'double'. |
void dimops::scale | ( | const bool | rm_mean, |
const bool | rm_sd, | ||
gpumat< REAL > & | x | ||
) |
Remove the mean and/or the sd from a matrix.
[in] | rm_mean | Remove the column means? |
[in] | rm_sd | Remove the column sds? |
[in,out] | x | Data to center/scale. |
REAL | should be 'float' or 'double'. |
void dimops::scale | ( | const bool | rm_mean, |
const bool | rm_sd, | ||
mpimat< REAL > & | x | ||
) |
Remove the mean and/or the sd from a matrix.
[in] | rm_mean | Remove the column means? |
[in] | rm_sd | Remove the column sds? |
[in,out] | x | Data to center/scale. |
REAL | should be 'float' or 'double'. |