NRMat class


tll
12-10-2002, 05:08 AM
I am developing an application, where I need the invert of a matrix. So I am using gauss subroutine. I can see from the driver program, that the input are matrices of type NRMat_DP.

Now my problem is very simple, how do I acces the asignment functions. The obvious:

NRMat_DP a[3][3];

a[0][0] = 1.2;

Does not work, or at least the debugger cannot see anything ?

Similary, how do I get the data out

tmp = a[0][0]; ?

Please help with this simple problem, I have ordered the book, but it has not arrived yet.

Regards

Theis

tll
12-10-2002, 06:47 AM
I just needed the

NRMat_DP a(3)(3);

instead of

NRMat_DP a[3][3];

in the declaration.

These thing take too much time


Theis