From 11ee5eced6521155b07eb567b0d9f6dbec26a773 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Legat?= Date: Fri, 8 Nov 2024 09:50:09 +0100 Subject: [PATCH 1/2] Change :exact to ExactDiscretization in discretize --- src/discretize.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/discretize.jl b/src/discretize.jl index 87f7ac6..0240a54 100644 --- a/src/discretize.jl +++ b/src/discretize.jl @@ -194,7 +194,7 @@ function _discretize(::EulerDiscretization, ΔT::Real, end """ - _discretize(A::AbstractMatrix, ΔT::Real; algorithm=:exact) + _discretize(A::AbstractMatrix, ΔT::Real; algorithm=ExactDiscretization()) Discretize the state matrix `A` with sampling time `ΔT` and discretization method `algorithm`. @@ -203,7 +203,7 @@ Discretize the state matrix `A` with sampling time `ΔT` and discretization meth - `A` -- state matrix - `ΔT` -- sampling time -- `algorithm` -- (optional, default: `:exact`) discretization algorithm +- `algorithm` -- (optional, default: `ExactDiscretization()`) discretization algorithm ### Output From f766b577af3abe1d130d62ece3e31d08a278fabd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Legat?= Date: Fri, 8 Nov 2024 11:01:22 +0100 Subject: [PATCH 2/2] Fix --- src/discretize.jl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/discretize.jl b/src/discretize.jl index 0240a54..dc4f0fb 100644 --- a/src/discretize.jl +++ b/src/discretize.jl @@ -194,16 +194,17 @@ function _discretize(::EulerDiscretization, ΔT::Real, end """ - _discretize(A::AbstractMatrix, ΔT::Real; algorithm=ExactDiscretization()) + _discretize(algorithm::AbstractDiscretizationAlgorithm, ΔT::Real, + A::AbstractMatrix) Discretize the state matrix `A` with sampling time `ΔT` and discretization method `algorithm`. ### Input -- `A` -- state matrix +- `algorithm` -- discretization algorithm - `ΔT` -- sampling time -- `algorithm` -- (optional, default: `ExactDiscretization()`) discretization algorithm +- `A` -- state matrix ### Output