Add intersphinx mapping to SymPy matrix methods
- [ ] hadamard_product
- [x] inv()
- [x] LUsolve
There are probably a couple more on that page. I had trouble finding the node in SymPy's docs (may not exist in some cases).
location of LUsolve
For inv() I would guess this location. I could not find anything for hadamard_product.
I found this in the sympy documentation
multiply_elementwise(other)[source] Return the Hadamard product (elementwise product) of A and B
Examples
from sympy import Matrix A = Matrix([[0, 1, 2], [3, 4, 5]]) B = Matrix([[1, 10, 100], [100, 10, 1]]) A.multiply_elementwise(B) Matrix([ [ 0, 10, 200], [300, 40, 5]])
Oh yeah, maybe I should recommend that instead of the hadamard_product() function. I guess they are the same.
There is a top level function called sympy.hadamard_product() that isn't in the documentation (docstring). And multiply_elementwise() is a method for Matrices. I think I showed hadamard because it was a function not a method.
The endpoint for hadamard_product will be in 1.12: https://github.com/sympy/sympy/pull/23900
Helpful command I just learned:
python -m sphinx.ext.intersphinx 'https://docs.sympy.org/latest/objects.inv' > sympy-inter.txt
Fixed LUsolve and inv in 5f9a1d0a3d1068634a85bc6b7a06e03e91c1e04c