Is it possible to create a c_vector<int, 3>
with the values [12 398 -34]
(as an example), in a single line?
As far as I can see the only viable constructor is:
c_vector(vector_expression<AE> const&)
which takes a VectorExpression
, which seem to be all the other kind of vectors, like zero_vector
and scalar_vector
that are dynamically allocated.
Is there something like a std::initializer_list<T>
constructor that I can use? Or what VectorExpression
should I use for this simple task?