42    bool donate_with_move = 
false) {
 
   52        if (donate_with_move) {
 
   67        if (donate_with_move) {
 
   82        if (donate_with_move) {
 
   87      } 
else if (b_donatable) {
 
   88        if (donate_with_move) {
 
  103        if (donate_with_move) {
 
  110        if (donate_with_move) {
 
 
const Flags & flags() const
Get the Flags bit-field.
Definition array.h:318
 
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
 
size_t size() const
The number of elements in the array.
Definition array.h:88
 
void copy_shared_buffer(const array &other, const Strides &strides, Flags flags, size_t data_size, size_t offset=0)
 
void move_shared_buffer(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:332
 
Buffer malloc_or_wait(size_t size)
 
BinaryOpType get_binary_op_type(const array &a, const array &b)
Definition binary.h:19
 
BinaryOpType
Definition binary.h:11
 
@ General
Definition binary.h:16
 
@ VectorVector
Definition binary.h:15
 
@ ScalarScalar
Definition binary.h:12
 
@ VectorScalar
Definition binary.h:14
 
@ ScalarVector
Definition binary.h:13
 
void set_binary_op_output_data(const array &a, const array &b, array &out, BinaryOpType bopt, bool donate_with_move=false)
Definition binary.h:37
 
bool is_donatable(const array &in, const array &out)
Definition utils.h:155
 
bool row_contiguous
Definition array.h:237
 
bool col_contiguous
Definition array.h:243
 
bool contiguous
Definition array.h:231