Skip to content
Snippets Groups Projects
Commit 2086136e authored by Jonathan Lambrechts's avatar Jonathan Lambrechts
Browse files

dgDofContainer : remove pointers

parent 091b59ab
No related branches found
No related tags found
No related merge requests found
...@@ -276,6 +276,15 @@ class fullMatrix ...@@ -276,6 +276,15 @@ class fullMatrix
_own_data = false; _own_data = false;
_data = original._data + c_start * _r; _data = original._data + c_start * _r;
} }
void setAsProxy(double *data, int r, int c)
{
if(_data && _own_data)
delete [] _data;
_c = c;
_r = r;
_own_data = false;
_data = data;
}
fullMatrix<scalar> & operator = (const fullMatrix<scalar> &other) fullMatrix<scalar> & operator = (const fullMatrix<scalar> &other)
{ {
copy(other); copy(other);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment