NumCpp
2.4.0
A Templatized Header Only C++ Implementation of the Python NumPy Library
standardNormal.hpp
Go to the documentation of this file.
1
#pragma once
29
30
#include "
NumCpp/Core/Internal/StaticAsserts.hpp
"
31
#include "
NumCpp/Core/Shape.hpp
"
32
#include "
NumCpp/NdArray.hpp
"
33
#include "
NumCpp/Random/normal.hpp
"
34
35
namespace
nc
36
{
37
namespace
random
38
{
39
//============================================================================
40
// Method Description:
49
template
<
typename
dtype>
50
dtype
standardNormal
()
51
{
52
STATIC_ASSERT_ARITHMETIC
(dtype);
53
54
return
normal<dtype>(0, 1);
55
}
56
57
//============================================================================
58
// Method Description:
70
template
<
typename
dtype>
71
NdArray<dtype>
standardNormal
(
const
Shape
& inShape)
72
{
73
STATIC_ASSERT_ARITHMETIC
(dtype);
74
75
return
normal<dtype>(inShape, 0, 1);
76
}
77
}
// namespace random
78
}
// namespace nc
StaticAsserts.hpp
normal.hpp
STATIC_ASSERT_ARITHMETIC
#define STATIC_ASSERT_ARITHMETIC(dtype)
Definition:
StaticAsserts.hpp:37
nc::NdArray< dtype >
nc::random::standardNormal
dtype standardNormal()
Definition:
standardNormal.hpp:50
NdArray.hpp
nc::Shape
A Shape Class for NdArrays.
Definition:
Core/Shape.hpp:40
Shape.hpp
nc
Definition:
Coordinate.hpp:44
include
NumCpp
Random
standardNormal.hpp
Generated by
1.8.17