Verified Commit 61b2e8eb authored by Tim Gymnich's avatar Tim Gymnich
Browse files

patch

parent 68f025d9
......@@ -183,8 +183,9 @@ public:
/// @param columns number of columns
Matrix<T> reshape(int rows, int columns) const {
assert(rows > 0 && columns > 0);
// FIXME: Performance
Matrix<T> t = transpose();
return Matrix(t.vectors.front(), rows, columns);
return Matrix(t.vectors.front(), rows, columns).transpose();
};
vector<Matrix<T>> reshapeColumns(int height, int width) const {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment