You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now I can add two dynamic vectors/matrices of different shapes, which could lead to some unexpected results...
STD_LA::dyn_vector<double> vec1{1,2};
STD_LA::dyn_vector<double> vec2{1,2,3};
auto result = vec1 + vec2; // {2,4}
std::cout << result.size() << "\n"; // 2
I would personally expect an error (at most some broadcasting, e.g. result would have 3 elements, because under the hood vec1 would be interpreted as {1,2,0})
The text was updated successfully, but these errors were encountered:
Right now I can add two dynamic vectors/matrices of different shapes, which could lead to some unexpected results...
I would personally expect an error (at most some broadcasting, e.g. result would have 3 elements, because under the hood vec1 would be interpreted as {1,2,0})
The text was updated successfully, but these errors were encountered: