NumCpp
1.0
A C++ implementation of the Python Numpy library
sort.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<dtype>
sort
(
const
NdArray<dtype>
& inArray,
Axis
inAxis =
Axis::NONE
)
49
{
50
NdArray<dtype>
returnArray(inArray);
51
returnArray.
sort
(inAxis);
52
return
returnArray;
53
}
54
}
nc::Axis::NONE
@ NONE
nc::NdArray::sort
NdArray< dtype > & sort(Axis inAxis=Axis::NONE)
Definition:
NdArrayCore.hpp:4326
nc::NdArray< dtype >
NdArray.hpp
nc::Axis
Axis
Enum To describe an axis.
Definition:
Types.hpp:47
nc
Definition:
Coordinate.hpp:45
Types.hpp
nc::sort
NdArray< dtype > sort(const NdArray< dtype > &inArray, Axis inAxis=Axis::NONE)
Definition:
sort.hpp:48
include
NumCpp
Functions
sort.hpp
Generated by
1.8.17