NumCpp  2.1.0
A C++ implementation of the Python Numpy library
putmask.hpp
Go to the documentation of this file.
1 #pragma once
30 
31 #include "NumCpp/NdArray.hpp"
32 
33 namespace nc
34 {
35  //============================================================================
36  // Method Description:
51  template<typename dtype>
52  NdArray<dtype>& putmask(NdArray<dtype>& inArray, const NdArray<bool>& inMask, dtype inValue)
53  {
54  inArray.putMask(inMask, inValue);
55  return inArray;
56  }
57 
58  //============================================================================
59  // Method Description:
74  template<typename dtype>
75  NdArray<dtype>& putmask(NdArray<dtype>& inArray, const NdArray<bool>& inMask, const NdArray<dtype>& inValues)
76  {
77  inArray.putMask(inMask, inValues);
78  return inArray;
79  }
80 } // namespace nc
nc::putmask
NdArray< dtype > & putmask(NdArray< dtype > &inArray, const NdArray< bool > &inMask, dtype inValue)
Definition: putmask.hpp:52
nc::NdArray::putMask
NdArray< dtype > & putMask(const NdArray< bool > &inMask, value_type inValue)
Definition: NdArrayCore.hpp:3964
nc::NdArray< dtype >
NdArray.hpp
nc
Definition: Coordinate.hpp:45