mathlib: More C++ fixes

This commit is contained in:
Lorenz Meier 2014-07-15 07:37:17 +02:00
parent 1744bf6e12
commit 6128645136
2 changed files with 10 additions and 4 deletions

View File

@ -77,6 +77,8 @@ public:
{
}
virtual ~MatrixBase() {};
/**
* copyt ctor
*/

View File

@ -78,19 +78,23 @@ public:
}
virtual ~VectorBase() {};
/**
* copy ctor
*/
VectorBase(const VectorBase<N> &v) {
arm_col = {N, 1, &data[0]};
VectorBase(const VectorBase<N> &v) :
arm_col{N, 1, &data[0]}
{
memcpy(data, v.data, sizeof(data));
}
/**
* setting ctor
*/
VectorBase(const float d[N]) {
arm_col = {N, 1, &data[0]};
VectorBase(const float d[N]) :
arm_col{N, 1, &data[0]}
{
memcpy(data, d, sizeof(data));
}