get_var()#

BasisMulti.get_var(var, states)[source]#

Extract a single variable from the joint full or reduced state.

Parameters
varint or str

Index or name of the variable to extract.

states(n, …) or (r, …) ndarray

Joint full or reduced state vector / snapshot matrix.

Returns
state_variable(n_i, …) or (r_i, …) ndarray

One full or reduced state variable, extracted from states.