NumCpp
2.1.0
A C++ implementation of the Python Numpy library
partition.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:
53
template
<
typename
dtype>
54
NdArray<dtype>
partition
(
const
NdArray<dtype>
& inArray,
uint32
inKth,
Axis
inAxis =
Axis::NONE
)
55
{
56
NdArray<dtype>
returnArray(inArray);
57
returnArray.
partition
(inKth, inAxis);
58
return
returnArray;
59
}
60
}
// namespace nc
nc::Axis::NONE
@ NONE
nc::NdArray< dtype >
nc::uint32
std::uint32_t uint32
Definition:
Types.hpp:41
NdArray.hpp
nc::partition
NdArray< dtype > partition(const NdArray< dtype > &inArray, uint32 inKth, Axis inAxis=Axis::NONE)
Definition:
partition.hpp:54
nc::Axis
Axis
Enum To describe an axis.
Definition:
Types.hpp:47
nc
Definition:
Coordinate.hpp:45
Types.hpp
nc::NdArray::partition
NdArray< dtype > & partition(uint32 inKth, Axis inAxis=Axis::NONE)
Definition:
NdArrayCore.hpp:3489
include
NumCpp
Functions
partition.hpp
Generated by
1.8.17