 |
NumCpp
2.1.0
A C++ implementation of the Python Numpy library
|
Go to the documentation of this file.
50 template<
typename dtype>
55 const uint32 outSize = inImage.
size() + inBoundarySize * 2;
58 outArray.
put(
Slice(inBoundarySize, inBoundarySize + inImage.
size()), inImage);
64 outArray.
put(
Slice(inImage.
size() + inBoundarySize, outSize), inImage.
back());
#define STATIC_ASSERT_ARITHMETIC(dtype)
Definition: StaticAsserts.hpp:38
value_type front() const noexcept
Definition: NdArrayCore.hpp:2789
value_type back() const noexcept
Definition: NdArrayCore.hpp:2221
std::uint32_t uint32
Definition: Types.hpp:41
NdArray< dtype > nearest1d(const NdArray< dtype > &inImage, uint32 inBoundarySize)
Definition: nearest1d.hpp:51
NdArray< dtype > & put(int32 inIndex, value_type inValue)
Definition: NdArrayCore.hpp:3685
size_type size() const noexcept
Definition: NdArrayCore.hpp:4326
Definition: Coordinate.hpp:45
A Class for slicing into NdArrays.
Definition: Slice.hpp:44