 |
NumCpp
2.1.0
A C++ implementation of the Python Numpy library
|
Go to the documentation of this file.
53 template<
typename dtype>
64 if (inArray.
size() < 2)
71 [](dtype inValue1, dtype inValue2) noexcept -> dtype
73 return inValue2 - inValue1;
86 for (
uint32 row = 0; row < inShape.
rows; ++row)
89 [](dtype inValue1, dtype inValue2) noexcept -> dtype
91 return inValue2 - inValue1;
107 for (
uint32 row = 0; row < transShape.
rows; ++row)
110 [](dtype inValue1, dtype inValue2) noexcept -> dtype
112 return inValue2 - inValue1;
Shape shape() const noexcept
Definition: NdArrayCore.hpp:4312
#define STATIC_ASSERT_ARITHMETIC_OR_COMPLEX(dtype)
Definition: StaticAsserts.hpp:51
NdArray< dtype > transpose() const
Definition: NdArrayCore.hpp:4608
OutputIt transform(InputIt first, InputIt last, OutputIt destination, UnaryOperation unaryFunction)
Definition: StlAlgorithms.hpp:703
std::uint32_t uint32
Definition: Types.hpp:41
A Shape Class for NdArrays.
Definition: Core/Shape.hpp:41
NdArray< dtype > diff(const NdArray< dtype > &inArray, Axis inAxis=Axis::NONE)
Definition: diff.hpp:54
size_type size() const noexcept
Definition: NdArrayCore.hpp:4326
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
Definition: Coordinate.hpp:45
uint32 rows
Definition: Core/Shape.hpp:45
#define THROW_INVALID_ARGUMENT_ERROR(msg)
Definition: Error.hpp:37
const_iterator cbegin() const noexcept
Definition: NdArrayCore.hpp:1147
iterator begin() noexcept
Definition: NdArrayCore.hpp:1091