NumCpp
2.1.0
A C++ implementation of the Python Numpy library
argmax.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:
47
template
<
typename
dtype>
48
NdArray<uint32>
argmax
(
const
NdArray<dtype>
& inArray,
Axis
inAxis =
Axis::NONE
)
49
{
50
return
inArray.
argmax
(inAxis);
51
}
52
}
// namespace nc
nc::Axis::NONE
@ NONE
nc::NdArray
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition:
NdArrayCore.hpp:75
NdArray.hpp
nc::Axis
Axis
Enum To describe an axis.
Definition:
Types.hpp:47
nc
Definition:
Coordinate.hpp:45
nc::NdArray::argmax
NdArray< uint32 > argmax(Axis inAxis=Axis::NONE) const
Definition:
NdArrayCore.hpp:1897
Types.hpp
nc::argmax
NdArray< uint32 > argmax(const NdArray< dtype > &inArray, Axis inAxis=Axis::NONE)
Definition:
argmax.hpp:48
include
NumCpp
Functions
argmax.hpp
Generated by
1.8.17