From 44768fad35354c4be996c05f34d14274ac45ebfc Mon Sep 17 00:00:00 2001 From: jgoppert Date: Thu, 5 Nov 2015 19:32:28 -0500 Subject: [PATCH] Added vector data ctor. --- matrix/Vector.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/matrix/Vector.hpp b/matrix/Vector.hpp index db42f6bdbf..a65b5dfff0 100644 --- a/matrix/Vector.hpp +++ b/matrix/Vector.hpp @@ -35,6 +35,11 @@ public: { } + Vector(const Type *data_) : + Matrix(data_) + { + } + inline Type operator()(size_t i) const { const Matrix &v = *this;