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