NumCpp  2.6.2
A Templatized Header Only C++ Implementation of the Python NumPy Library
put.hpp
Go to the documentation of this file.
1 
28 #pragma once
29 
30 #include "NumCpp/Core/Types.hpp"
31 #include "NumCpp/NdArray.hpp"
32 
33 namespace nc
34 {
35  //============================================================================
36  // Method Description:
48  template<typename dtype>
49  NdArray<dtype>& put(NdArray<dtype>& inArray, const NdArray<uint32>& inIndices, dtype inValue)
50  {
51  inArray.put(inIndices, inValue);
52  return inArray;
53  }
54 
55  //============================================================================
56  // Method Description:
68  template<typename dtype>
69  NdArray<dtype>& put(NdArray<dtype>& inArray, const NdArray<uint32>& inIndices, const NdArray<dtype>& inValues)
70  {
71  inArray.put(inIndices, inValues);
72  return inArray;
73  }
74 } // namespace nc
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition: NdArrayCore.hpp:72
NdArray< dtype > & put(int32 inIndex, value_type inValue)
Definition: NdArrayCore.hpp:3856
Definition: Coordinate.hpp:45
NdArray< dtype > & put(NdArray< dtype > &inArray, const NdArray< uint32 > &inIndices, dtype inValue)
Definition: put.hpp:49