ext/nmatrix/storage/list.h in nmatrix-0.0.5 vs ext/nmatrix/storage/list.h in nmatrix-0.0.6

- old
+ new

@@ -80,11 +80,11 @@ /////////////// // Accessors // /////////////// - VALUE nm_list_each_stored_with_indices(VALUE nmatrix); + VALUE nm_list_each_with_indices(VALUE nmatrix, bool stored); void* nm_list_storage_ref(STORAGE* s, SLICE* slice); void* nm_list_storage_get(STORAGE* s, SLICE* slice); void* nm_list_storage_insert(STORAGE* s, SLICE* slice, void* val); void* nm_list_storage_remove(STORAGE* s, SLICE* slice); @@ -96,11 +96,10 @@ ////////// // Math // ////////// - STORAGE* nm_list_storage_ew_op(nm::ewop_t op, const STORAGE* left, const STORAGE* right, VALUE scalar); STORAGE* nm_list_storage_matrix_multiply(const STORAGE_PAIR& casted_storage, size_t* resulting_shape, bool vector); ///////////// // Utility // @@ -120,11 +119,15 @@ // Copying and Casting // ///////////////////////// LIST_STORAGE* nm_list_storage_copy(const LIST_STORAGE* rhs); STORAGE* nm_list_storage_copy_transposed(const STORAGE* rhs_base); - STORAGE* nm_list_storage_cast_copy(const STORAGE* rhs, nm::dtype_t new_dtype); + STORAGE* nm_list_storage_cast_copy(const STORAGE* rhs, nm::dtype_t new_dtype, void*); VALUE nm_list_storage_to_hash(const LIST_STORAGE* s, const nm::dtype_t dtype); + // Exposed functions + VALUE nm_to_hash(VALUE self); + VALUE nm_list_map_merged_stored(VALUE left, VALUE right, VALUE init); + VALUE nm_list_default_value(VALUE self); } // end of extern "C" block #endif // LIST_H