ext/sparse.c
VALUE nm_sparse_get_dtype(VALUE self){
  sparse_nmatrix* spmat;
  Data_Get_Struct(self, sparse_nmatrix, spmat);

  return rb_str_new_cstr(DTYPE_NAMES[spmat->dtype]);
}
//return the dtype of given sparse matrix
return the dtype of given sparse matrix
return the dtype of given sparse matrix
VALUE nm_sparse_get_dtype(VALUE self){
  sparse_nmatrix* spmat;
  Data_Get_Struct(self, sparse_nmatrix, spmat);
  return rb_str_new_cstr(DTYPE_NAMES[spmat->dtype]);
}
VALUE nm_sparse_get_dtype ( VALUE self ) { sparse_nmatrix * spmat ; Data_Get_Struct ( self , sparse_nmatrix , spmat ) ; return rb_str_new_cstr ( DTYPE_NAMES [ spmat -> dtype ] ) ; }
return the dtype of given sparse matrix
return the dtype of given sparse matrix