src.canns.analyzer.slow_points.fixed_points¶
FixedPoints data container class for storing fixed point analysis results.
Classes¶
Container for storing and manipulating fixed points. |
Module Contents¶
- class src.canns.analyzer.slow_points.fixed_points.FixedPoints(xstar=None, F_xstar=None, x_init=None, inputs=None, qstar=None, dq=None, n_iters=None, J_xstar=None, dFdu=None, eigval_J_xstar=None, eigvec_J_xstar=None, is_stable=None, cond_id=None, tol_unique=0.001, dtype=np.float32)[source]¶
Container for storing and manipulating fixed points.
This class stores fixed points found by the FixedPointFinder algorithm, along with associated metadata like Jacobians, eigenvalues, and stability.
- is_stable[source]¶
[n,] bool array indicating stability (max |eigenvalue| < 1).
Initialize a FixedPoints object.
- Parameters:
xstar (numpy.ndarray | None) – Fixed point states [n x n_states].
F_xstar (numpy.ndarray | None) – States after one RNN step [n x n_states].
x_init (numpy.ndarray | None) – Initial states [n x n_states].
inputs (numpy.ndarray | None) – Constant inputs [n x n_inputs].
qstar (numpy.ndarray | None) – Final q values [n,].
dq (numpy.ndarray | None) – Change in q at last step [n,].
n_iters (numpy.ndarray | None) – Iteration counts [n,].
J_xstar (numpy.ndarray | None) – Jacobians dF/dx [n x n_states x n_states].
dFdu (numpy.ndarray | None) – Jacobians dF/du [n x n_states x n_inputs].
eigval_J_xstar (numpy.ndarray | None) – Eigenvalues [n x n_states] (complex).
eigvec_J_xstar (numpy.ndarray | None) – Eigenvectors [n x n_states x n_states] (complex).
is_stable (numpy.ndarray | None) – Stability flags [n,].
cond_id (numpy.ndarray | None) – Condition IDs [n,].
tol_unique (float) – Tolerance for uniqueness detection.
dtype – NumPy data type for storage.
- __getitem__(idx)[source]¶
Index into the fixed points.
- Parameters:
idx – Integer index, slice, or array of indices.
- Returns:
A new FixedPoints object containing the indexed subset.
- decompose_jacobians(verbose=False)[source]¶
Compute eigendecomposition of Jacobians and determine stability.
Computes eigenvalues and eigenvectors for self.J_xstar and determines stability based on whether max |eigenvalue| < 1.
- Parameters:
verbose (bool) – Whether to print status messages.