 |
NumCpp
2.4.0
A Templatized Header Only C++ Implementation of the Python NumPy Library
|
Go to the documentation of this file.
52 template<
typename dtype>
63 if (inArray.
size() < 2)
70 [](dtype inValue1, dtype inValue2) noexcept -> dtype
72 return inValue2 - inValue1;
85 for (
uint32 row = 0; row < inShape.
rows; ++row)
88 [](dtype inValue1, dtype inValue2) noexcept -> dtype
90 return inValue2 - inValue1;
106 for (
uint32 row = 0; row < transShape.
rows; ++row)
109 [](dtype inValue1, dtype inValue2) noexcept -> dtype
111 return inValue2 - inValue1;
Shape shape() const noexcept
Definition: NdArrayCore.hpp:4356
#define STATIC_ASSERT_ARITHMETIC_OR_COMPLEX(dtype)
Definition: StaticAsserts.hpp:50
NdArray< dtype > transpose() const
Definition: NdArrayCore.hpp:4652
OutputIt transform(InputIt first, InputIt last, OutputIt destination, UnaryOperation unaryFunction)
Definition: StlAlgorithms.hpp:702
std::uint32_t uint32
Definition: Types.hpp:40
A Shape Class for NdArrays.
Definition: Core/Shape.hpp:40
NdArray< dtype > diff(const NdArray< dtype > &inArray, Axis inAxis=Axis::NONE)
Definition: diff.hpp:53
size_type size() const noexcept
Definition: NdArrayCore.hpp:4370
uint32 cols
Definition: Core/Shape.hpp:45
const_iterator cend() const noexcept
Definition: NdArrayCore.hpp:1487
Axis
Enum To describe an axis.
Definition: Types.hpp:46
Definition: Coordinate.hpp:44
uint32 rows
Definition: Core/Shape.hpp:44
#define THROW_INVALID_ARGUMENT_ERROR(msg)
Definition: Error.hpp:36
const_iterator cbegin() const noexcept
Definition: NdArrayCore.hpp:1143
iterator begin() noexcept
Definition: NdArrayCore.hpp:1087