compress()#
- PODBasis.compress(state: ndarray) ndarray #
Map high-dimensional states to low-dimensional latent coordinates.
\[\q \mapsto \qhat = \Vr\trp\q.\]If a weight matrix \(\W\) is present, the compression is
\[\q \mapsto \qhat = \Vr\trp\W\q.\]- Parameters:
- states(n, …) ndarray
Matrix of n-dimensional state vectors, or a single state vector.
- Returns:
- states_compressed(r, …) ndarray
Matrix of r-dimensional latent coordinate vectors, or a single coordinate vector.