Function uw12::linalg::head

Function Documentation

inline Vec uw12::linalg::head(const Vec &vec, const size_t n_row)

Get first n_row of vector vec

Parameters
  • vec – Input vector

  • n_row – Number of rows in sub-vector

Returns

Sub-vector of first n_row of input vector