-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
62 additions
and
20 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,12 @@ | ||
Don't understand yet how to do Ax matrix vector product when A and x are both pytrees. This is needed for LinearSystem | ||
|
||
When linearizing, one way could be to store not A = jacfwd(f, x), but A = jax.linearize(f, x). Then Ax is just A(x). | ||
|
||
Above is a problem for feedback linearization. There, we need to compute `c.dot(np.linalg.matrix_power(A, reldeg))` and the like. | ||
|
||
Could one just ravel all the pytrees in linearize? | ||
|
||
Could ine just ravel the outputs of vector_field, and unravel the inputs, thus allowing arbitrary pytrees as in and output, but keep all the other machieneary strictly with ndarrays? | ||
|
||
|
||
|
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