NumCpp
2.4.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:
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
nc::NdArray< dtype >
NdArray.hpp
nc::NdArray::put
NdArray< dtype > & put(int32 inIndex, value_type inValue)
Definition:
NdArrayCore.hpp:3729
nc::put
NdArray< dtype > & put(NdArray< dtype > &inArray, const NdArray< uint32 > &inIndices, dtype inValue)
Definition:
put.hpp:49
nc
Definition:
Coordinate.hpp:44
Types.hpp
include
NumCpp
Functions
put.hpp
Generated by
1.8.17