Template Function opensn::MemCopyRow

Function Documentation

template<typename T>
void opensn::MemCopyRow(NDArray<T, 2> &dest, unsigned int row, const std::vector<T> &src)

Copy std::vector into the row of a 2-D NDArray.

Template Parameters:

Element – type

Parameters:
  • dest – 2-D NDArray to copy into

  • row – Row index into the dest

  • srcVector that will be copied