-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change the ordering of the state-space model (#305)
* Change the ordering of the state-space model: reorder the Kronecker * Fix the Kronecker vectrick to do the correct thing * Test the ldiv trick and fix it * Make Kronecker h/v/hvcattable and change SolProj object * Simplify and fix things that relied on the previous more complicated stuff * JuliaFormatter.jl * Check that ldiv actually works * Fix some issues with the prior tests * Fix more stuff in the diffusion * Make the kronecker.jl file diff smaller * Fix more kronecker vec trick issues * Rename BlockDiag into BlocksOfDiagonals, as that's what it is now * Make BlocksOfDiagonals work OK * Fix the update and smooth parts * Implement hcat and vcat. THIS FIXES 2nd ORDER ODES! * Add the DiagonalEK1 back into the tests! * Add the BlockArrays extension that replaces the BlockDiagonal one * Fix more tests * JuliaFormatter.jl * Reduce the prior diff again * Add DiagonalEK1 to second order ODE tests * Fix the second order ODE tests * Add a BlocksOfDiagonals docstring
- Loading branch information
1 parent
665fdf1
commit 9554581
Showing
30 changed files
with
675 additions
and
619 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
module BlockArraysExt | ||
|
||
import ProbNumDiffEq: BlocksOfDiagonals | ||
import BlockArrays: BlockArray, mortar | ||
import LinearAlgebra: Diagonal | ||
|
||
BlockArray(M::BlocksOfDiagonals) = begin | ||
d = length(M.blocks) | ||
a, b = size(M.blocks[1]) | ||
return mortar([Diagonal([M.blocks[k][i, j] for k in 1:d]) for i in 1:a, j in 1:b]) | ||
end | ||
|
||
end |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.