samedi 15 juillet 2017

C++11 std::array slice

I have a matrix like this:

array<array<double, DISMAX>, DISMAX> Md;

and a vector like this:

array<double, DISMAX> matrixLine;

DISMAX is a constant. My question: How can I copy that vector to one line of the matrix without using a for loop? Is it possible?

Aucun commentaire:

Enregistrer un commentaire