NumCpp
1.0
A C++ implementation of the Python Numpy library
diagonal.hpp
Go to the documentation of this file.
1
#pragma once
30
31
#include "
NumCpp/NdArray.hpp
"
32
#include "
NumCpp/Core/Types.hpp
"
33
34
namespace
nc
35
{
36
//============================================================================
37
// Method Description:
48
template
<
typename
dtype>
49
NdArray<dtype>
diagonal
(
const
NdArray<dtype>
& inArray,
int32
inOffset = 0,
Axis
inAxis =
Axis::ROW
)
50
{
51
return
inArray.
diagonal
(inOffset, inAxis);
52
}
53
}
nc::int32
std::int32_t int32
Definition:
Types.hpp:37
nc::Axis::ROW
@ ROW
nc::NdArray::diagonal
NdArray< dtype > diagonal(int32 inOffset=0, Axis inAxis=Axis::ROW) const
Definition:
NdArrayCore.hpp:2566
nc::NdArray< dtype >
NdArray.hpp
nc::diagonal
NdArray< dtype > diagonal(const NdArray< dtype > &inArray, int32 inOffset=0, Axis inAxis=Axis::ROW)
Definition:
diagonal.hpp:49
nc::Axis
Axis
Enum To describe an axis.
Definition:
Types.hpp:47
nc
Definition:
Coordinate.hpp:45
Types.hpp
include
NumCpp
Functions
diagonal.hpp
Generated by
1.8.17