ext/nmatrix/storage/dense/dense.h in nmatrix-atlas-0.2.0 vs ext/nmatrix/storage/dense/dense.h in nmatrix-atlas-0.2.1
- old
+ new
@@ -30,11 +30,12 @@
/*
* Standard Includes
*/
-#include <stdlib.h>
+#include <ruby.h>
+#include <cstdlib>
/*
* Project Includes
*/
@@ -67,14 +68,14 @@
///////////////
// Lifecycle //
///////////////
-DENSE_STORAGE* nm_dense_storage_create(nm::dtype_t dtype, size_t* shape, size_t dim, void* elements, size_t elements_length);
-void nm_dense_storage_delete(STORAGE* s);
-void nm_dense_storage_delete_ref(STORAGE* s);
-void nm_dense_storage_mark(STORAGE*);
+DENSE_STORAGE* nm_dense_storage_create(nm::dtype_t dtype, size_t* shape, size_t dim, void* elements, size_t elements_length);
+void nm_dense_storage_delete(STORAGE* s);
+void nm_dense_storage_delete_ref(STORAGE* s);
+void nm_dense_storage_mark(STORAGE*);
void nm_dense_storage_register(const STORAGE* s);
void nm_dense_storage_unregister(const STORAGE* s);
///////////////
@@ -84,11 +85,11 @@
VALUE nm_dense_map_pair(VALUE self, VALUE right);
VALUE nm_dense_map(VALUE self);
VALUE nm_dense_each(VALUE nmatrix);
VALUE nm_dense_each_with_indices(VALUE nmatrix);
-void* nm_dense_storage_get(const STORAGE* s, SLICE* slice);
-void* nm_dense_storage_ref(const STORAGE* s, SLICE* slice);
+void* nm_dense_storage_get(const STORAGE* s, SLICE* slice);
+void* nm_dense_storage_ref(const STORAGE* s, SLICE* slice);
void nm_dense_storage_set(VALUE left, SLICE* slice, VALUE right);
///////////
// Tests //
///////////