Add empty submodules to std.math.

This commit is contained in:
berni44 2021-03-28 21:20:46 +02:00 committed by The Dlang Bot
parent d0d4460f96
commit 7031340f5f
14 changed files with 212 additions and 3 deletions

View file

@ -234,7 +234,8 @@ PACKAGE_std_experimental_allocator_building_blocks = \
kernighan_ritchie null_allocator package quantizer \
region scoped_allocator segregator stats_collector
PACKAGE_std_format = package read spec write $(addprefix internal/, floats read write)
PACKAGE_std_math = package
PACKAGE_std_math = algebraic constants exponential floats hardware \
integral package remainder rounding traits trigonometry
PACKAGE_std_net = curl isemail
PACKAGE_std_range = interfaces package primitives
PACKAGE_std_regex = package $(addprefix internal/,generator ir parser \

16
std/math/algebraic.d Normal file
View file

@ -0,0 +1,16 @@
// Written in the D programming language.
/**
This package is currently in a nascent state and may be subject to
change. Please do not use it yet, but stick to $(MREF std, math).
Copyright: Copyright The D Language Foundation 2000 - 2011.
License: $(HTTP www.boost.org/LICENSE_1_0.txt, Boost License 1.0).
Authors: $(HTTP digitalmars.com, Walter Bright), Don Clugston,
Conversion of CEPHES math library to D by Iain Buclaw and David Nadlinger
Source: $(PHOBOSSRC std/math/algebraic.d)
*/
module std.math.algebraic;
// Will contain functions like abs, sqrt, hypot, poly and nextPow2

16
std/math/constants.d Normal file
View file

@ -0,0 +1,16 @@
// Written in the D programming language.
/**
This package is currently in a nascent state and may be subject to
change. Please do not use it yet, but stick to $(MREF std, math).
Copyright: Copyright The D Language Foundation 2000 - 2011.
License: $(HTTP www.boost.org/LICENSE_1_0.txt, Boost License 1.0).
Authors: $(HTTP digitalmars.com, Walter Bright), Don Clugston,
Conversion of CEPHES math library to D by Iain Buclaw and David Nadlinger
Source: $(PHOBOSSRC std/math/constants.d)
*/
module std.math.constants;
// Will contain constants, like E, PI and so on.

23
std/math/exponential.d Normal file
View file

@ -0,0 +1,23 @@
// Written in the D programming language.
/**
This package is currently in a nascent state and may be subject to
change. Please do not use it yet, but stick to $(MREF std, math).
Copyright: Copyright The D Language Foundation 2000 - 2011.
D implementations of exp, expm1, exp2, log, log10, log1p, and log2
functions are based on the CEPHES math library, which is Copyright
(C) 2001 Stephen L. Moshier $(LT)steve@moshier.net$(GT) and are
incorporated herein by permission of the author. The author reserves
the right to distribute this material elsewhere under different
copying permissions. These modifications are distributed here under
the following terms:
License: $(HTTP www.boost.org/LICENSE_1_0.txt, Boost License 1.0).
Authors: $(HTTP digitalmars.com, Walter Bright), Don Clugston,
Conversion of CEPHES math library to D by Iain Buclaw and David Nadlinger
Source: $(PHOBOSSRC std/math/exponential.d)
*/
module std.math.exponential;
// Will contain functions like pow, exp, log2

16
std/math/floats.d Normal file
View file

@ -0,0 +1,16 @@
// Written in the D programming language.
/**
This package is currently in a nascent state and may be subject to
change. Please do not use it yet, but stick to $(MREF std, math).
Copyright: Copyright The D Language Foundation 2000 - 2011.
License: $(HTTP www.boost.org/LICENSE_1_0.txt, Boost License 1.0).
Authors: $(HTTP digitalmars.com, Walter Bright), Don Clugston,
Conversion of CEPHES math library to D by Iain Buclaw and David Nadlinger
Source: $(PHOBOSSRC std/math/floats.d)
*/
module std.math.floats;
// Will contain functions like feqrel, nextDown, isClose

16
std/math/hardware.d Normal file
View file

@ -0,0 +1,16 @@
// Written in the D programming language.
/**
This package is currently in a nascent state and may be subject to
change. Please do not use it yet, but stick to $(MREF std, math).
Copyright: Copyright The D Language Foundation 2000 - 2011.
License: $(HTTP www.boost.org/LICENSE_1_0.txt, Boost License 1.0).
Authors: $(HTTP digitalmars.com, Walter Bright), Don Clugston,
Conversion of CEPHES math library to D by Iain Buclaw and David Nadlinger
Source: $(PHOBOSSRC std/math/hardware.d)
*/
module std.math.hardware;
// Will contain IeeeFlags and FloatingPointControl

14
std/math/integral.d Normal file
View file

@ -0,0 +1,14 @@
// Written in the D programming language.
/**
This package is currently in a nascent state and may be subject to
change. Please do not use it yet, but stick to $(MREF std, math).
Copyright: Copyright The D Language Foundation 2021 - .
License: $(HTTP www.boost.org/LICENSE_1_0.txt, Boost License 1.0).
Source: $(PHOBOSSRC std/math/integral.d)
*/
module std.math.integral;
// Will contain functions like isqrt, ilog2, isPrime and maybe also gcd from std.numeric

View file

@ -121,6 +121,17 @@ $(TR $(TDNW Hardware Control) $(TD
*/
module std.math;
public import std.math.algebraic;
public import std.math.constants;
public import std.math.exponential;
public import std.math.floats;
public import std.math.hardware;
public import std.math.integral;
public import std.math.remainder;
public import std.math.rounding;
public import std.math.traits;
public import std.math.trigonometry;
static import core.math;
static import core.stdc.math;
static import core.stdc.fenv;

16
std/math/remainder.d Normal file
View file

@ -0,0 +1,16 @@
// Written in the D programming language.
/**
This package is currently in a nascent state and may be subject to
change. Please do not use it yet, but stick to $(MREF std, math).
Copyright: Copyright The D Language Foundation 2000 - 2011.
License: $(HTTP www.boost.org/LICENSE_1_0.txt, Boost License 1.0).
Authors: $(HTTP digitalmars.com, Walter Bright), Don Clugston,
Conversion of CEPHES math library to D by Iain Buclaw and David Nadlinger
Source: $(PHOBOSSRC std/math/remainder.d)
*/
module std.math.remainder;
// Will contain functions like fmod and remainder

22
std/math/rounding.d Normal file
View file

@ -0,0 +1,22 @@
// Written in the D programming language.
/**
This package is currently in a nascent state and may be subject to
change. Please do not use it yet, but stick to $(MREF std, math).
Copyright: Copyright The D Language Foundation 2000 - 2011.
D implementations of floor, ceil, and lrint functions are based on the
CEPHES math library, which is Copyright (C) 2001 Stephen L. Moshier
$(LT)steve@moshier.net$(GT) and are incorporated herein by permission
of the author. The author reserves the right to distribute this
material elsewhere under different copying permissions.
These modifications are distributed here under the following terms:
License: $(HTTP www.boost.org/LICENSE_1_0.txt, Boost License 1.0).
Authors: $(HTTP digitalmars.com, Walter Bright), Don Clugston,
Conversion of CEPHES math library to D by Iain Buclaw and David Nadlinger
Source: $(PHOBOSSRC std/math/rounding.d)
*/
module std.math.rounding;
// Will contain functions like ceil, floor, round, quantize

16
std/math/traits.d Normal file
View file

@ -0,0 +1,16 @@
// Written in the D programming language.
/**
This package is currently in a nascent state and may be subject to
change. Please do not use it yet, but stick to $(MREF std, math).
Copyright: Copyright The D Language Foundation 2000 - 2011.
License: $(HTTP www.boost.org/LICENSE_1_0.txt, Boost License 1.0).
Authors: $(HTTP digitalmars.com, Walter Bright), Don Clugston,
Conversion of CEPHES math library to D by Iain Buclaw and David Nadlinger
Source: $(PHOBOSSRC std/math/traits.d)
*/
module std.math.traits;
// Will contain functions like isFinite, isIdentical, ...

22
std/math/trigonometry.d Normal file
View file

@ -0,0 +1,22 @@
// Written in the D programming language.
/**
This package is currently in a nascent state and may be subject to
change. Please do not use it yet, but stick to $(MREF std, math).
Copyright: Copyright The D Language Foundation 2000 - 2011.
D implementations of tan, atan, and atan2 functions are based on the
CEPHES math library, which is Copyright (C) 2001 Stephen L. Moshier
$(LT)steve@moshier.net$(GT) and are incorporated herein by permission
of the author. The author reserves the right to distribute this
material elsewhere under different copying permissions.
These modifications are distributed here under the following terms:
License: $(HTTP www.boost.org/LICENSE_1_0.txt, Boost License 1.0).
Authors: $(HTTP digitalmars.com, Walter Bright), Don Clugston,
Conversion of CEPHES math library to D by Iain Buclaw and David Nadlinger
Source: $(PHOBOSSRC std/math/trigonometry.d)
*/
module std.math.trigonometry;
// Will contain functions like sin, cos and so on

View file

@ -214,7 +214,17 @@ SRC_STD_FORMAT= \
std\format\internal\write.d
SRC_STD_MATH= \
std\math\package.d
std\math\algebraic.d \
std\math\constants.d \
std\math\exponential.d \
std\math\floats.d \
std\math\hardware.d \
std\math\integral.d \
std\math\package.d \
std\math\remainder.d \
std\math\rounding.d \
std\math\traits.d \
std\math\trigonometry.d
SRC_STD_NET= \
std\net\isemail.d \

View file

@ -210,7 +210,17 @@ SRC_STD_FORMAT= \
std\format\internal\write.d
SRC_STD_MATH = \
std\math\package.d
std\math\algebraic.d \
std\math\constants.d \
std\math\exponential.d \
std\math\floats.d \
std\math\hardware.d \
std\math\integral.d \
std\math\package.d \
std\math\remainder.d \
std\math\rounding.d \
std\math\traits.d \
std\math\trigonometry.d
SRC_STD_CONTAINER= \
std\container\array.d \