You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(linalg): Make Matrix and PSDMatrix public (#673)
- Introduces a new public `torchjd.linalg` package exposing `Matrix` and
`PSDMatrix` (the rest of `_linalg` stays protected)
- Makes `MatrixWeighting` and `GramianWeighting` protected. These
classes are still used to specify the docstring of the `__call__`
methods of the aggregators, but the user only sees those aggregators as
`Weighting[Matrix]` and `Weighting[PSDMatrix]`, respectively. The
`MatrixWeighting` and `GramianWeighting` classes really just bring
updated docstrings, that's all.
- Makes the public type of the gramian_weighting of
GramianWeightedAggregator be Weighting[PSDMatrix] instead of
GramianWeighting, so that #669 can work. Similar with weighting of
WeightedAggregator being Weighting[Matrix].
- Expands docstrings on `Matrix` and `PSDMatrix` with Jacobian and
Gramian examples; adds Sphinx documentation under a new **linalg**
section in the API Reference
0 commit comments