Skip to content

Commit 6236660

Browse files
committed
handle lack of matrix syntax on julia v1.6
1 parent 1c16d87 commit 6236660

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/systems/abstractsystem.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,6 +1096,9 @@ See also [`linearization_function`](@ref) which provides a lower-level interface
10961096
10971097
See extended help for an example.
10981098
1099+
The implementation and notation follows that of
1100+
["Linear Analysis Approach for Modelica Models", Allain et al. 2009](https://ep.liu.se/ecp/043/075/ecp09430097.pdf)
1101+
10991102
# Extended help
11001103
This example builds the following feedback interconnection and linearizes it from the input of `F` to the output of `P`.
11011104
```

test/linearize.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ desired_order = [f.x, p.x]
7373
lsys = ModelingToolkit.reorder_states(lsys, states(ssys), desired_order)
7474

7575
@test lsys.A == [-2 0; 1 -2]
76-
@test lsys.B == [1; 0;;]
76+
@test lsys.B == reshape([1; 0;;], 2, 1) # reshape required when testing on Julia v1.6
7777
@test lsys.C == [0 1]
7878
@test lsys.D[] == 0
7979

0 commit comments

Comments
 (0)