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