Add ScalarVectorView
Add ScalarVectorView
which wraps a pointer to a number and makes it behave like a single entry vector. Using
auto&& xv = toVector(x);
will either forward the (const
) reference to x
or create a temporary ScalarVectorView
pointing to x
depending on wheter is satisfies IsNumber
.
Edited by Carsten Gräser