47 template<
typename dtype, std::enable_if_t<std::is_
integral_v<dtype> || std::is_same_v<dtype,
bool>,
int> = 0>
67 value = value == 0 ? 0 : 1;
78 value = value == 0 ? 0 : 1;
125 template<
typename dtype, std::enable_if_t<std::is_
integral_v<dtype> || std::is_same_v<dtype,
bool>,
int> = 0>
145 value = value == 0 ? 0 : 1;
156 value = value == 0 ? 0 : 1;
#define THROW_INVALID_ARGUMENT_ERROR(msg)
Definition Error.hpp:37
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition NdArrayCore.hpp:139
size_type size() const noexcept
Definition NdArrayCore.hpp:4600
self_type transpose() const
Definition NdArrayCore.hpp:4958
const Shape & shape() const noexcept
Definition NdArrayCore.hpp:4587
uint32 size_type
Definition NdArrayCore.hpp:156
Slice cSlice(index_type inStartIdx=0, size_type inStepSize=1) const
Definition NdArrayCore.hpp:1008
uint32 cols
Definition Core/shape.hpp:45
Definition Cartesian.hpp:40
NdArray< uint8 > packbitsBigEndian(const NdArray< dtype > &a, Axis axis=Axis::NONE)
Definition packbits.hpp:126
Axis
Enum To describe an axis.
Definition Enums.hpp:36
NdArray< uint8 > packbitsLittleEndian(const NdArray< dtype > &a, Axis axis=Axis::NONE)
Definition packbits.hpp:48
NdArray< dtype > arange(dtype inStart, dtype inStop, dtype inStep=1)
Definition arange.hpp:59
std::uint8_t uint8
Definition Types.hpp:42