 |
NumCpp
1.0
A C++ implementation of the Python Numpy library
|
Go to the documentation of this file.
50 template<
typename dtype>
68 for (
uint32 row = 0; row < inShape.
rows; ++row)
70 returnArray(0, row) = inShape.
cols -
79 Shape inShapeTransposed = inArrayTranspose.
shape();
81 for (
uint32 row = 0; row < inShapeTransposed.
rows; ++row)
83 returnArray(0, row) = inShapeTransposed.
cols -
Shape shape() const noexcept
Definition: NdArrayCore.hpp:4296
#define STATIC_ASSERT_ARITHMETIC_OR_COMPLEX(dtype)
Definition: StaticAsserts.hpp:51
NdArray< dtype > transpose() const
Definition: NdArrayCore.hpp:4591
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition: NdArrayCore.hpp:75
std::uint32_t uint32
Definition: Types.hpp:41
NdArray< uint32 > count_nonzero(const NdArray< dtype > &inArray, Axis inAxis=Axis::NONE)
Definition: count_nonzero.hpp:51
A Shape Class for NdArrays.
Definition: Core/Shape.hpp:41
size_type size() const noexcept
Definition: NdArrayCore.hpp:4310
uint32 cols
Definition: Core/Shape.hpp:46
const_iterator cend() const noexcept
Definition: NdArrayCore.hpp:1491
Axis
Enum To describe an axis.
Definition: Types.hpp:47
std::iterator_traits< InputIt >::difference_type count(InputIt first, InputIt last, const T &value) noexcept
Definition: StlAlgorithms.hpp:116
Definition: Coordinate.hpp:45
uint32 rows
Definition: Core/Shape.hpp:45
const_iterator cbegin() const noexcept
Definition: NdArrayCore.hpp:1147