Header source
0001 0002 /* typedef long double DOUBLE; comment� par YP 18/04/2007*/ 0003 0004 typedef double DOUBLE; 0005 typedef int INT; 0006 struct Tensor { 0007 int ndims; 0008 int * sizedim; 0009 int size; 0010 DOUBLE * vals; 0011 }; 0012 0013 struct SparseMatrix{ 0014 int m; /*nb of rows*/ 0015 int n; /*nb of columns*/ 0016 int nnz; /*nb of non zeros elements*/ 0017 int *jc; /**/ 0018 int *ir; /* row indices of non zeros*/ 0019 DOUBLE *vals; /*actual values*/ 0020 }; 0021 0022 struct IntTensor { 0023 int ndims; 0024 int * sizedim; 0025 int size; 0026 INT * vals; 0027 };