Skip to content
Snippets Groups Projects
Commit 1e7185ed authored by Éric Béchet's avatar Éric Béchet
Browse files

added new constructor for fullVector

parent 80e283bb
No related branches found
No related tags found
No related merge requests found
......@@ -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];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment