Mat3D_DP and Mat3D_CPLX_DP


lidsky
09-24-2002, 06:17 AM
Hi,

I'm having trouble with Mat3D:
Mat3D_DP F;
...
F = Mat3D_DP(2,2,2);
...

This code causes an error. The Microsoft Visual C++ 6.0 debugger
localizes the error to the line
..
delete[] (v[0][0]);
...,
in the ~Mat3d destructor. It says something about ValidHeapPointer.

The 2d version works fine:
Mat_DP G;
...
G = Mat_DP(2,2);
...

Once I get this sorted out, I'd like to make, Mat3D_CPLX_DP, a complex version of Mat3D_DP.

I would appreciate any suggestions.

David