NumCpp  1.0
A C++ implementation of the Python Numpy library
trace.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:
48  template<typename dtype>
49  dtype trace(const NdArray<dtype>& inArray, int16 inOffset = 0, Axis inAxis = Axis::ROW) noexcept
50  {
51  return inArray.trace(inOffset, inAxis);
52  }
53 }
nc::Axis::ROW
@ ROW
nc::trace
dtype trace(const NdArray< dtype > &inArray, int16 inOffset=0, Axis inAxis=Axis::ROW) noexcept
Definition: trace.hpp:49
nc::NdArray< dtype >
NdArray.hpp
nc::Axis
Axis
Enum To describe an axis.
Definition: Types.hpp:47
nc::int16
std::int16_t int16
Definition: Types.hpp:38
nc
Definition: Coordinate.hpp:45
Types.hpp