comp

Module for utility functions related to computational formulas.

Functions

int2bool(arr, size)

Converts an ndarray of integers to a boolean representation.

outer_integral(arr)

Computes the integral of the outer products of the array rows using the Monte-Carlo approximation, up to the volume factor.

timeout(func, *args[, timeout, default])

Sets a timeout on a function by using a ThreadPool with one thread.