ext/sparse.c
VALUE nm_sparse_alloc(VALUE klass)
{
  csr_nmatrix* mat = ALLOC(csr_nmatrix);

  return Data_Wrap_Struct(klass, NULL, nm_free, mat);
}
//allocates memory to the given sparse matrix object
allocates memory to the given sparse matrix object
allocates memory to the given sparse matrix object
VALUE nm_sparse_alloc(VALUE klass)
{
  csr_nmatrix* mat = ALLOC(csr_nmatrix);
  return Data_Wrap_Struct(klass, NULL, nm_free, mat);
}
VALUE nm_sparse_alloc ( VALUE klass ) { csr_nmatrix * mat = ALLOC ( csr_nmatrix ) ; return Data_Wrap_Struct ( klass , NULL , nm_free , mat ) ; }
allocates memory to the given sparse matrix object
allocates memory to the given sparse matrix object