ext/nmatrix/storage/yale.h in nmatrix-0.0.6 vs ext/nmatrix/storage/yale.h in nmatrix-0.0.7

- old
+ new

@@ -88,10 +88,11 @@ YALE_STORAGE* nm_yale_storage_create(nm::dtype_t dtype, size_t* shape, size_t dim, size_t init_capacity, nm::itype_t itype); YALE_STORAGE* nm_yale_storage_create_from_old_yale(nm::dtype_t dtype, size_t* shape, void* ia, void* ja, void* a, nm::dtype_t from_dtype); YALE_STORAGE* nm_yale_storage_create_merged(const YALE_STORAGE* merge_template, const YALE_STORAGE* other); void nm_yale_storage_delete(STORAGE* s); + void nm_yale_storage_delete_ref(STORAGE* s); void nm_yale_storage_init(YALE_STORAGE* s, void* default_val); void nm_yale_storage_mark(void*); /////////////// // Accessors // @@ -219,8 +220,11 @@ template <typename DType, typename IType> void init(YALE_STORAGE* s, void* init_val); template <typename IType> size_t get_size(const YALE_STORAGE* storage); + + template <typename IType> + IType binary_search_left_boundary(const YALE_STORAGE* s, IType left, IType right, IType bound); }} // end of namespace nm::yale_storage #endif // YALE_H