diff --git a/Numeric/fullMatrix.h b/Numeric/fullMatrix.h index 0a4c8d0c3f463c24f6ee8258213402e573b9dad4..8c66888870b9fbebc88b0be3996b7c2660d5f38f 100644 --- a/Numeric/fullMatrix.h +++ b/Numeric/fullMatrix.h @@ -31,6 +31,13 @@ class fullVector _data = new scalar[_r]; setAll(scalar(0.)); } + + fullVector(scalar *original, int r) + { + _r = r; + _own_data = false; + _data = original; + } fullVector(const fullVector<scalar> &other) : _r(other._r),_own_data(1) { _data = new scalar[_r];