decompress()#

abstract BasisTemplate.decompress(states_compressed, locs=None)[source]#

Map low-dimensional latent coordinates to high-dimensional states.

Parameters
states_compressed(r, …) ndarray

Matrix of r-dimensional latent coordinate vectors, or a single coordinate vector.

locsslice or (p,) ndarray of integers or None

If given, return the decompressed state at only the p specified locations (indices) described by locs.

Returns
states_decompressed(n, …) or (p, …) ndarray

Matrix of n-dimensional decompressed state vectors, or the p entries of such at the entries specified by locs.