54 template<
typename dtype>
75 static_cast<double>(
inArray(-1, col)) -
static_cast<double>(
inArray(-2, col));
84 (
static_cast<double>(
inArray(row + 1, col)) -
static_cast<double>(
inArray(row - 1, col))) /
105 static_cast<double>(
inArray(row, -1)) -
static_cast<double>(
inArray(row, -2));
114 (
static_cast<double>(
inArray(row, col + 1)) -
static_cast<double>(
inArray(row, col - 1))) /
138 { return (static_cast<double>(value1) - static_cast<double>(value2)) / 2.; });
156 template<
typename dtype>
240 [](
const std::complex<dtype>&
value1,
const std::complex<dtype>&
value2) -> std::complex<double>
241 { return (complex_cast<double>(value1) - complex_cast<double>(value2)) / 2.; });
#define THROW_INVALID_ARGUMENT_ERROR(msg)
Definition Error.hpp:37
#define STATIC_ASSERT_ARITHMETIC(dtype)
Definition StaticAsserts.hpp:39
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition NdArrayCore.hpp:139
OutputIt transform(InputIt first, InputIt last, OutputIt destination, UnaryOperation unaryFunction)
Definition StlAlgorithms.hpp:775
Definition Cartesian.hpp:40
Axis
Enum To describe an axis.
Definition Enums.hpp:36
NdArray< dtype > arange(dtype inStart, dtype inStop, dtype inStep=1)
Definition arange.hpp:59
NdArray< double > gradient(const NdArray< dtype > &inArray, Axis inAxis=Axis::ROW)
Definition gradient.hpp:55
std::uint32_t uint32
Definition Types.hpp:40