NumCpp  2.8.0
A Templatized Header Only C++ Implementation of the Python NumPy Library
put.hpp
Go to the documentation of this file.
1 #pragma once
29 
30 #include "NumCpp/Core/Types.hpp"
31 #include "NumCpp/NdArray.hpp"
32 
33 namespace nc
34 {
35  //============================================================================
36  // Method Description:
47  template<typename dtype>
48  NdArray<dtype>& put(NdArray<dtype>& inArray, const NdArray<uint32>& inIndices, dtype inValue)
49  {
50  inArray.put(inIndices, inValue);
51  return inArray;
52  }
53 
54  //============================================================================
55  // Method Description:
66  template<typename dtype>
67  NdArray<dtype>& put(NdArray<dtype>& inArray, const NdArray<uint32>& inIndices, const NdArray<dtype>& inValues)
68  {
69  inArray.put(inIndices, inValues);
70  return inArray;
71  }
72 } // 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:3663
Definition: Coordinate.hpp:45
NdArray< dtype > & put(NdArray< dtype > &inArray, const NdArray< uint32 > &inIndices, dtype inValue)
Definition: put.hpp:48