LU decomposition: Difference between revisions
Content added Content deleted
(→{{header|C}}: macros gone wild) |
m (Wrong sizeof()) |
||
Line 392: | Line 392: | ||
mat mat_new(_dim) |
mat mat_new(_dim) |
||
{ |
{ |
||
mat x = malloc(sizeof(double) * n); |
mat x = malloc(sizeof(double*) * n); |
||
x[0] = malloc(sizeof(double) * n * n); |
x[0] = malloc(sizeof(double) * n * n); |
||