June 2018 Update
This commit is contained in:
parent
ba8067c3b7
commit
22f33d4004
5278 changed files with 84726 additions and 14379 deletions
|
|
@ -10,7 +10,7 @@ typedef struct {
|
|||
mat matrix_new(int m, int n)
|
||||
{
|
||||
mat x = malloc(sizeof(mat_t));
|
||||
x->v = malloc(sizeof(double) * m);
|
||||
x->v = malloc(sizeof(double*) * m);
|
||||
x->v[0] = calloc(sizeof(double), m * n);
|
||||
for (int i = 0; i < m; i++)
|
||||
x->v[i] = x->v[0] + n * i;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue