Matrix.setCol off by one bug fixed

The Column Vector you are copying from, only has one Column and it is indexed by 0 not 1.
I also completed the unit test stub that would have found this bug.
This commit is contained in:
MaEtUgR
2016-05-05 13:18:51 +02:00
parent 65679fbcbb
commit b2eb4d13d8
2 changed files with 9 additions and 3 deletions
+1 -1
View File
@@ -341,7 +341,7 @@ public:
{
Matrix<Type, M, N> &self = *this;
for (size_t i = 0; i < M; i++) {
self(i, j) = col(i, 1);
self(i, j) = col(i, 0);
}
}