NumCpp
2.4.0
A Templatized Header Only C++ Implementation of the Python NumPy Library
trace.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:
47
template
<
typename
dtype>
48
dtype
trace
(
const
NdArray<dtype>
& inArray,
int16
inOffset = 0,
Axis
inAxis =
Axis::ROW
) noexcept
49
{
50
return
inArray.trace(inOffset, inAxis);
51
}
52
}
// namespace nc
nc::Axis::ROW
@ ROW
nc::trace
dtype trace(const NdArray< dtype > &inArray, int16 inOffset=0, Axis inAxis=Axis::ROW) noexcept
Definition:
trace.hpp:48
nc::NdArray< dtype >
NdArray.hpp
nc::Axis
Axis
Enum To describe an axis.
Definition:
Types.hpp:46
nc::int16
std::int16_t int16
Definition:
Types.hpp:37
nc
Definition:
Coordinate.hpp:44
Types.hpp
include
NumCpp
Functions
trace.hpp
Generated by
1.8.17