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 
PublicFacing API (result of import *):

greatest common divisor of x and y 

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. 


Return lowest common multiple. 

Rescales the given value or values so that they fall within the given output range. 

Rotates a sequence s such that it begins with element l[n] and wraps back around to l[n1]. 

Find the maximum _depth of any element in a nested sequence. 

A simple wrapper around 