NumCpp
1.0
A C++ implementation of the Python Numpy library
put.hpp
Go to the documentation of this file.
1
#pragma once
30
31
#include "
NumCpp/Core/Types.hpp
"
32
#include "
NumCpp/NdArray.hpp
"
33
34
namespace
nc
35
{
36
//============================================================================
37
// Method Description:
49
template
<
typename
dtype>
50
NdArray<dtype>
&
put
(
NdArray<dtype>
& inArray,
const
NdArray<uint32>
& inIndices, dtype inValue)
51
{
52
inArray.
put
(inIndices, inValue);
53
return
inArray;
54
}
55
56
//============================================================================
57
// Method Description:
69
template
<
typename
dtype>
70
NdArray<dtype>
&
put
(
NdArray<dtype>
& inArray,
const
NdArray<uint32>
& inIndices,
const
NdArray<dtype>
& inValues)
71
{
72
inArray.
put
(inIndices, inValues);
73
return
inArray;
74
}
75
}
nc::NdArray< dtype >
NdArray.hpp
nc::NdArray::put
NdArray< dtype > & put(int32 inIndex, value_type inValue)
Definition:
NdArrayCore.hpp:3667
nc::put
NdArray< dtype > & put(NdArray< dtype > &inArray, const NdArray< uint32 > &inIndices, dtype inValue)
Definition:
put.hpp:50
nc
Definition:
Coordinate.hpp:45
Types.hpp
include
NumCpp
Functions
put.hpp
Generated by
1.8.17