const Flags & flags() const
Get the Flags bit-field.
Definition array.h:313
const Strides & strides() const
The strides of the array.
Definition array.h:117
size_t nbytes() const
The number of bytes in the array.
Definition array.h:93
bool is_donatable() const
True indicates the arrays buffer is safe to reuse.
Definition array.h:278
void copy_shared_buffer(const array &other, const Strides &strides, Flags flags, size_t data_size, size_t offset=0)
size_t itemsize() const
The size of the array's datatype in bytes.
Definition array.h:83
void set_data(allocator::Buffer buffer, Deleter d=allocator::free)
size_t data_size() const
The size (in elements) of the underlying buffer the array points to.
Definition array.h:327
Buffer malloc_or_wait(size_t size)
bool set_copy_output_data(const array &in, array &out, CopyType ctype)
Definition copy.h:25
@ General
Definition binary.h:16
CopyType
Definition copy.h:9
@ Vector
Definition copy.h:15
@ GeneralGeneral
Definition copy.h:22
@ Scalar
Definition copy.h:11