Function uw12::linalg::each_col
Defined in File linalg.hpp
Function Documentation
-
inline Mat uw12::linalg::each_col(const Mat &mat, const Vec &vec)
Multiply each column in a matrix by a column vector element-wise
For each column in matrix
matmultiply element-wise by vectorvec- Parameters
mat – Matrix of size
n_row * n_colvec – Vector of length
n_row
- Returns
Matrix of size
n_row * n_col