Module scid.util

Various useful utilities that don't really fit anywhere else.

Functions

Name Description
chop Replaces real numbers that are close to zero by exactly zero.
chop Replaces all numbers in the given array that are close to zero by exactly zero. To chop the array in-place, pass the same array as both x and buffer.
limitCalls Limit the number of times a function can be called.
matchDigits Check whether lhs and rhs are equal to within the specified number of significant digits. Both lhs and rhs can be floating-point numbers, complex numbers, or input ranges of floating-point or complex numbers.
scopeLimitCalls Limit the number of times a function can be called.
staticArray Create a static array literal without any heap allocation.
staticArrayOf Create a static array literal without any heap allocation.
steps Returns a range that iterates over n equally-spaced floating-point numbers in the inclusive interval [a,b].
tailConst Trivially convert const(T[]) to const(T)[].

Structs

Name Description
LimitCalls

Authors

Lars Tandle Kyllingstad

Copyright

Copyright (c) 2009-2010, Lars T. Kyllingstad. All rights reserved.

License

Boost License 1.0