analogue for .push_back()?
Issue #452
new
hello, new to the blaze library, currently translating over some cfd code to utilize it.
is there an equivalent to the std::vector .push_back() / pop_back() operation? I understand that blaze::DynamicVector v[i] = elem is similar, but you need to specify the index. Is there an appending operation that does not need an index?
Hi Edward!
Thanks for creating this proposal. No, currently
blaze::DynamicVector
does not provide anything similar tostd::vector<T>::push_back()
orstd::vector<T>::insert()
. The rational behind that is thatblaze::DynamicVector
is not considered a container, but a numerical vector, which usually doesn’t grow element-wise. However, you can implement apush_back()
function yourself:I hope this helps,
Best regards,
Klaus!