49 template<
typename dtype>
52 const auto shapeMask = inMask.
shape();
53 const auto shapeA = inA.
shape();
54 if (shapeA != inB.
shape())
59 if (shapeMask != shapeA)
67 for (
auto maskValue : inMask)
71 outArray[idx] = inA[idx];
75 outArray[idx] = inB[idx];
96 template<
typename dtype>
99 const auto shapeMask = inMask.
shape();
100 const auto shapeA = inA.
shape();
101 if (shapeMask != shapeA)
109 for (
auto maskValue : inMask)
113 outArray[idx] = inA[idx];
138 template<
typename dtype>
141 const auto shapeMask = inMask.
shape();
142 const auto shapeB = inB.
shape();
143 if (shapeMask != shapeB)
151 for (
auto maskValue : inMask)
159 outArray[idx] = inB[idx];
180 template<
typename dtype>
186 for (
auto maskValue : inMask)
#define THROW_INVALID_ARGUMENT_ERROR(msg)
Definition Error.hpp:37
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition NdArrayCore.hpp:135
const Shape & shape() const noexcept
Definition NdArrayCore.hpp:4587
Definition Cartesian.hpp:39
NdArray< dtype > where(const NdArray< bool > &inMask, const NdArray< dtype > &inA, const NdArray< dtype > &inB)
Definition where.hpp:50
std::uint32_t uint32
Definition Types.hpp:40