mirror of
https://github.com/dlang/phobos.git
synced 2025-04-29 22:50:38 +03:00
Manually fix Allman brace style
This commit is contained in:
parent
c47c950d84
commit
85ec5dead5
3 changed files with 28 additions and 14 deletions
|
@ -1296,11 +1296,13 @@ real betaDistPowerSeries(real a, real b, real x )
|
||||||
* values of a and x.
|
* values of a and x.
|
||||||
*/
|
*/
|
||||||
real gammaIncomplete(real a, real x )
|
real gammaIncomplete(real a, real x )
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
assert(x >= 0);
|
assert(x >= 0);
|
||||||
assert(a > 0);
|
assert(a > 0);
|
||||||
}
|
}
|
||||||
do {
|
do
|
||||||
|
{
|
||||||
/* left tail of incomplete gamma function:
|
/* left tail of incomplete gamma function:
|
||||||
*
|
*
|
||||||
* inf. k
|
* inf. k
|
||||||
|
@ -1340,11 +1342,13 @@ do {
|
||||||
|
|
||||||
/** ditto */
|
/** ditto */
|
||||||
real gammaIncompleteCompl(real a, real x )
|
real gammaIncompleteCompl(real a, real x )
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
assert(x >= 0);
|
assert(x >= 0);
|
||||||
assert(a > 0);
|
assert(a > 0);
|
||||||
}
|
}
|
||||||
do {
|
do
|
||||||
|
{
|
||||||
if (x == 0)
|
if (x == 0)
|
||||||
return 1.0L;
|
return 1.0L;
|
||||||
if ( (x < 1.0L) || (x < a) )
|
if ( (x < 1.0L) || (x < a) )
|
||||||
|
@ -1426,11 +1430,13 @@ do {
|
||||||
* root of incompleteGammaCompl(a,x) - p = 0.
|
* root of incompleteGammaCompl(a,x) - p = 0.
|
||||||
*/
|
*/
|
||||||
real gammaIncompleteComplInv(real a, real p)
|
real gammaIncompleteComplInv(real a, real p)
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
assert(p >= 0 && p <= 1);
|
assert(p >= 0 && p <= 1);
|
||||||
assert(a>0);
|
assert(a>0);
|
||||||
}
|
}
|
||||||
do {
|
do
|
||||||
|
{
|
||||||
if (p == 0) return real.infinity;
|
if (p == 0) return real.infinity;
|
||||||
|
|
||||||
real y0 = p;
|
real y0 = p;
|
||||||
|
|
|
@ -253,21 +253,25 @@ real betaIncompleteInverse(real a, real b, real y )
|
||||||
* values of a and x.
|
* values of a and x.
|
||||||
*/
|
*/
|
||||||
real gammaIncomplete(real a, real x )
|
real gammaIncomplete(real a, real x )
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
assert(x >= 0);
|
assert(x >= 0);
|
||||||
assert(a > 0);
|
assert(a > 0);
|
||||||
}
|
}
|
||||||
do {
|
do
|
||||||
|
{
|
||||||
return std.internal.math.gammafunction.gammaIncomplete(a, x);
|
return std.internal.math.gammafunction.gammaIncomplete(a, x);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** ditto */
|
/** ditto */
|
||||||
real gammaIncompleteCompl(real a, real x )
|
real gammaIncompleteCompl(real a, real x )
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
assert(x >= 0);
|
assert(x >= 0);
|
||||||
assert(a > 0);
|
assert(a > 0);
|
||||||
}
|
}
|
||||||
do {
|
do
|
||||||
|
{
|
||||||
return std.internal.math.gammafunction.gammaIncompleteCompl(a, x);
|
return std.internal.math.gammafunction.gammaIncompleteCompl(a, x);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -278,11 +282,13 @@ do {
|
||||||
* gammaIncompleteCompl( a, x ) = p.
|
* gammaIncompleteCompl( a, x ) = p.
|
||||||
*/
|
*/
|
||||||
real gammaIncompleteComplInverse(real a, real p)
|
real gammaIncompleteComplInverse(real a, real p)
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
assert(p >= 0 && p <= 1);
|
assert(p >= 0 && p <= 1);
|
||||||
assert(a > 0);
|
assert(a > 0);
|
||||||
}
|
}
|
||||||
do {
|
do
|
||||||
|
{
|
||||||
return std.internal.math.gammafunction.gammaIncompleteComplInv(a, p);
|
return std.internal.math.gammafunction.gammaIncompleteComplInv(a, p);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -352,7 +358,8 @@ real normalDistribution(real x)
|
||||||
* Note: This function is only implemented to 80 bit precision.
|
* Note: This function is only implemented to 80 bit precision.
|
||||||
*/
|
*/
|
||||||
real normalDistributionInverse(real p)
|
real normalDistributionInverse(real p)
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
assert(p >= 0.0L && p <= 1.0L, "Domain error");
|
assert(p >= 0.0L && p <= 1.0L, "Domain error");
|
||||||
}
|
}
|
||||||
do
|
do
|
||||||
|
|
|
@ -239,7 +239,8 @@ mixin template Signal(T1...)
|
||||||
*/
|
*/
|
||||||
final void unhook(Object o)
|
final void unhook(Object o)
|
||||||
in { assert( status == ST.idle ); }
|
in { assert( status == ST.idle ); }
|
||||||
do {
|
do
|
||||||
|
{
|
||||||
debug (signal) writefln("Signal.unhook(o = %s)", cast(void*) o);
|
debug (signal) writefln("Signal.unhook(o = %s)", cast(void*) o);
|
||||||
for (size_t i = 0; i < slots_idx; )
|
for (size_t i = 0; i < slots_idx; )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue