NumCpp  2.14.0
A Templatized Header Only C++ Implementation of the Python NumPy Library
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
around.hpp
Go to the documentation of this file.
1
28#pragma once
29
30#include "NumCpp/NdArray.hpp"
31
32namespace nc
33{
34 //============================================================================
35 // Method Description:
44 template<typename dtype>
46 {
47 NdArray<dtype> value = { inValue };
48 return value.round(inNumDecimals).item();
49 }
50
51 //============================================================================
52 // Method Description:
61 template<typename dtype>
66} // namespace nc
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition NdArrayCore.hpp:139
self_type round(uint8 inNumDecimals=0) const
Definition NdArrayCore.hpp:4533
value_type item() const
Definition NdArrayCore.hpp:3098
Definition Cartesian.hpp:40
dtype around(dtype inValue, uint8 inNumDecimals=0)
Definition around.hpp:45
NdArray< dtype > arange(dtype inStart, dtype inStop, dtype inStep=1)
Definition arange.hpp:59
std::uint8_t uint8
Definition Types.hpp:42