More features: longerThan, norm, copyTo and slice on a Slice (#97)

* Allow slices of slices, add longerThan to Vector/Slice
This commit is contained in:
Julian Kent
2019-10-03 13:47:36 +02:00
committed by GitHub
parent 740324cf1e
commit 92d1c8761e
7 changed files with 121 additions and 8 deletions
+2 -2
View File
@@ -90,12 +90,12 @@ public:
return (*this);
}
void copyTo(Type dst [M*N]) const
void copyTo(Type dst[M*N]) const
{
memcpy(dst, _data, sizeof(Type)*M*N);
}
void copyToColumnMajor(Type (&dst)[M*N]) const
void copyToColumnMajor(Type dst[M*N]) const
{
const Matrix<Type, M, N> &self = *this;