 |
NumCpp
1.0
A C++ implementation of the Python Numpy library
|
Go to the documentation of this file.
55 template<
typename dtype>
67 for (
auto value : inArray)
85 for (
uint32 row = 0; row < inShape.
rows; ++row)
89 for (
uint32 col = 0; col < inShape.
cols; ++col)
96 sum +=
utils::sqr(
static_cast<double>(inArray(row, col)) - meanValue[row]);
108 const Shape inShape = transposedArray.
shape();
110 for (
uint32 row = 0; row < inShape.
rows; ++row)
114 for (
uint32 col = 0; col < inShape.
cols; ++col)
121 sum +=
utils::sqr(
static_cast<double>(transposedArray(row, col)) - meanValue[row]);
value_type item() const
Definition: NdArrayCore.hpp:2950
Shape shape() const noexcept
Definition: NdArrayCore.hpp:4296
auto sqrt(dtype inValue) noexcept
Definition: sqrt.hpp:51
NdArray< dtype > transpose() const
Definition: NdArrayCore.hpp:4591
NdArray< double > nanstdev(const NdArray< dtype > &inArray, Axis inAxis=Axis::NONE)
Definition: nanstdev.hpp:56
std::uint32_t uint32
Definition: Types.hpp:41
A Shape Class for NdArrays.
Definition: Core/Shape.hpp:41
#define STATIC_ASSERT_FLOAT(dtype)
Definition: StaticAsserts.hpp:44
uint32 cols
Definition: Core/Shape.hpp:46
NdArray< double > nanmean(const NdArray< dtype > &inArray, Axis inAxis=Axis::NONE)
Definition: nanmean.hpp:56
NdArray< dtype > sum(const NdArray< dtype > &inArray, Axis inAxis=Axis::NONE)
Definition: sum.hpp:48
Axis
Enum To describe an axis.
Definition: Types.hpp:47
Definition: Coordinate.hpp:45
uint32 rows
Definition: Core/Shape.hpp:45
constexpr dtype sqr(dtype inValue) noexcept
Definition: sqr.hpp:45
bool isnan(dtype inValue) noexcept
Definition: isnan.hpp:52