utils

Classes

CondensedSparseSummation(list_of_matrices)

Functions

build_bounds_mask(vector)

Creates masks for converting from the full vector of bounds that may contain -np.inf or np.inf to a vector of bounds that are finite only.

build_compression_mask_for_finite_values(vector)

Creates masks for converting from the full vector of values to the vector that contains only the finite values.

build_compression_matrix(compression_mask)

Return a sparse matrix CM of ones such that compressed_vector = CM*full_vector based on the compression mask

compressed_to_full(compressed_array, ...[, ...])

full_to_compressed(full_array, compression_mask)

make_lower_triangular_full(...)

This function takes a symmetric matrix that only has entries in the lower triangle and makes is a full matrix by duplicating the entries