48 for(uint32_t i = 0; i < num_elements; ++i)
54 dst[dst_index] = src[i];
DataType data_type() const override
Data type of the tensor.
TensorShape shape() const override
Shape of the tensor.
SimpleTensor< float > src
Copyright (c) 2017-2021 Arm Limited.
int coord2index(const TensorShape &shape, const Coordinates &coord)
Linearise the given coordinate.
T x() const
Alias to access the size of the first dimension.
Coordinates index2coord(const TensorShape &shape, int index)
Convert a linear index into n-dimensional coordinates.
Simple tensor object that stores elements in a consecutive chunk of memory.
int num_elements() const override
Number of elements of the tensor.
SimpleTensor< T > transpose(const SimpleTensor< T > &src)
T y() const
Alias to access the size of the second dimension.