Function uw12::linalg::head_cols

Function Documentation

inline Mat uw12::linalg::head_cols(const Mat &mat, const size_t n_col, const bool copy_data = false)

Get sub-matrix of the first n_col of input matrix

Parameters
  • mat – Input matrix

  • n_col – Number of columns in sub-matrix

  • copy_data – Whether to copy dat to make new matrix

Returns

Sub-matrix of first n_col of mat