Util

namespace ndarray

Functions

std::string getVectorIntInString(const std::vector<int> &vec)

get comma seperated string from a vector int type data.

Example : vec{3,5,6,1,2} => out: "3,5,6,1,2"

Return

comma seperated string data of give vector.

Parameters
  • vec: int type vector data.

void printVec(const std::vector<int> &vec)