This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Are these two operations the same? (matrix.topRows(x0))

Tags: None
(comma "," separated)
goubermouche
Registered Member
Posts
2
Karma
0
Hey, are these to operations equivalent?
Code: Select all
Matrix<double, 32, 3> matrix;
matrix.topRows(4) /= 64.0;

Code: Select all
std::array<std::array<double, 3>, 32> matrix;
matrix[0][0] /= 64.0;
matrix[0][1] /= 64.0;
matrix[0][2] /= 64.0;
matrix[1][0] /= 64.0;
matrix[1][1] /= 64.0;
matrix[1][2] /= 64.0;
matrix[2][0] /= 64.0;
matrix[2][1] /= 64.0;
matrix[2][2] /= 64.0;
matrix[3][0] /= 64.0;
matrix[3][1] /= 64.0;
matrix[3][2] /= 64.0;

Note that both matrices are initialized.

Thanks in advance.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], kesang, Yahoo [Bot]