Hello! I am trying to exploit some existing C code but the documentation I
found for the external C code invocation does not solve some doubts I have.
Here is the library I would like to use
http://math.nist.gov/MatrixMarket/mmio-c.html#mm_read_mtx_crd_size; as you can
see from the following function signatures I have to deal also with int* and
int[]
int mm_write_mtx_crd(char fname[], int M, int N, int nz, int I[], int J[],
double val[], MM_typecode matcode);
int mm_read_mtx_crd_data(FILE *f, int M, int N, int nz, int I[], int J[],
double val[], MM_typecode matcode);
int mm_read_mtx_crd_entry(FILE *f, int *I, int *J, double *real, double *img,
MM_typecode matcode);
int mm_read_unsymmetric_sparse(const char *fname, int *M_, int *N_, int *nz_,
double **val_, int **I_, int **J_);
I was wondering what should I pass to this functions within X10 in order to
make them work? Are X10 Rail[Int] interoperable with int[]?
I know the library is not that big or complex and I could rewrite it in X10,
but I would like to save time and to experiment the interoperability with
existing C/C++ code.
Thanks,
Luca Salucci
------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works.
Faster operations. Version large binaries. Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users