scamp_extensions.utilities package
Subpackage containing utility functions that do not fit into any of the other extension categories.
Modules:
Subpackage containing mathematical utility functions (many of which are imported from |
|
Subpackage containing utility functions for manipulating lists/sequences (some of which are imported from |
|
This module defines the |
Public-Facing API (result of import *):
|
Greatest Common Divisor. |
|
Returns the multiple of factor that is closest above x. |
|
Returns the integer power of y that is closest above x. |
|
Returns the multiple of factor that is closest below x. |
|
Returns the integer power of y that is closest below x. |
|
Checks if x is a multiple of y. |
|
Checks if a is a prime number. |
|
Checks if x is an integer (including negative) power of y |
|
Flattens a list, including ones containing multiple levels of nesting. |
|
Returns a list of the prime factors of n. |
|
Returns the multiple of factor that is closest to x (above or below). |
|
Returns the integer power of y that is closest to x (above or below). |
Sums up all of the values within a nested list. |
|
|
A warping function that uses an appropriately scaled arctan to warp values from the input range to the output range. |
|
Uses an appropriately scaled arctan function to warp values from the input range to the output range. |
|
Return lowest common multiple. |
|
Rescales the given value or values so that they fall within the given output range. |
|
Wraps the input x into the given range, either jumping back to the other side of the range at the boundaries, or if the mirror parameter is set, reflecting at the boundaries. |
|
Takes a slice that loops back to the beginning if end is before start |
|
Rotates a sequence s such that it begins with element l[n] and wraps back around to l[n-1]. |
|
Find the maximum _depth of any element in a nested sequence. |
|
A simple wrapper around |