@@ -40,11 +40,11 @@ functions are defined as:
4040```
4141They can be implemented in two possible ways:
4242
43- - Non-mutating functions (out-of-place): defined them as `f(x, u, d) -> ẋ` and
44- `h(x, d) -> y`. This syntax is simple and intuitive but it allocates more memory.
45- - Mutating functions (in-place): defined them as `f!(ẋ, x, u, d) -> nothing` and
46- `h!(y, x, d) -> nothing`. This syntax reduces the allocations and potentially the
47- computational burden as well.
43+ 1. ** Non-mutating functions** (out-of-place): define them as `f(x, u, d) -> ẋ` and
44+ `h(x, d) -> y`. This syntax is simple and intuitive but it allocates more memory.
45+ 2. ** Mutating functions** (in-place): define them as `f!(ẋ, x, u, d) -> nothing` and
46+ `h!(y, x, d) -> nothing`. This syntax reduces the allocations and potentially the
47+ computational burden as well.
4848
4949`Ts` is the sampling time in second. `nu`, `nx`, `ny` and `nd` are the respective number of
5050manipulated inputs, states, outputs and measured disturbances.
@@ -99,9 +99,9 @@ NonLinModel with a sample time Ts = 2.0 s, empty solver and:
9999 ```
100100 with two possible implementations as well:
101101
102- - Non-mutating functions: defined them as `f(x, u, d) -> xnext` and `h(x, d) -> y`.
103- - Mutating functions: defined them as `f!(xnext, x, u, d) -> nothing` and
104- `h!(y, x, d) -> nothing`.
102+ 1. ** Non-mutating functions**: define them as `f(x, u, d) -> xnext` and `h(x, d) -> y`.
103+ 2. ** Mutating functions**: define them as `f!(xnext, x, u, d) -> nothing` and
104+ `h!(y, x, d) -> nothing`.
105105"""
106106function NonLinModel {NT} (
107107 f:: Function , h:: Function , Ts:: Real , nu:: Int , nx:: Int , ny:: Int , nd:: Int = 0 ;
0 commit comments