compress()#

BasisMulti.compress(states)[source]#

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

Parameters
states(n, …) ndarray

Matrix of n-dimensional state vectors, or a single state vector. The first full_variable_sizes[0] entries correspond to the first state variable, the next full_variable_sizes[1] entries correspond to the second state variable, and so on.

Returns
states_compressed(r, …) ndarray

Matrix of r-dimensional latent coordinate vectors, or a single coordinate vector. The first reduced_variable_sizes[0] entries correspond to the first reduced state variable, the next reduced_variable_sizes[1] entries correspond to the second reduced state variable, and so on.