Skip to content

Commit

Permalink
add note on StaticArrays in statespace
Browse files Browse the repository at this point in the history
  • Loading branch information
baggepinnen committed Nov 24, 2023
1 parent 78f40c3 commit ee66b95
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/src/man/numerical.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,7 @@ Linear systems with zero-order-hold inputs can be exactly simulated in discrete
For discrete-time systems, the function [`lsim!`](@ref) accepts a pre-allocated workspace objects that can be used to avoid allocations for repeated simulations.

### Numerical balancing
If you are only interested in the simulated outputs, not the state trajectories, you may consider applying balancing to the statespace model using [`balance_statespace`](@ref) before simulating, see the section on [State-space balancing](@ref) above. If the state trajectories are of interest, balancing can still be performed before simulation, and the inverse transformation applied to the state trajectories after simulation.
If you are only interested in the simulated outputs, not the state trajectories, you may consider applying balancing to the statespace model using [`balance_statespace`](@ref) before simulating, see the section on [State-space balancing](@ref) above. If the state trajectories are of interest, balancing can still be performed before simulation, and the inverse transformation applied to the state trajectories after simulation.

## Static arrays in StateSpace systems
The special statespace system type [HeteroStateSapce](@ref) can be used to store statespace models with static arrays rather than the default matrix type `Matrix`. See [State-Space Systems](@ref) for more details.

0 comments on commit ee66b95

Please sign in to comment.