Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add intersphinx mapping to SymPy matrix methods #123

Open
2 of 3 tasks
moorepants opened this issue Feb 7, 2023 · 7 comments
Open
2 of 3 tasks

Add intersphinx mapping to SymPy matrix methods #123

moorepants opened this issue Feb 7, 2023 · 7 comments

Comments

@moorepants
Copy link
Owner

moorepants commented Feb 7, 2023

  • hadamard_product
  • inv()
  • 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).

@tjstienstra
Copy link

location of LUsolve
For inv() I would guess this location. I could not find anything for hadamard_product.

@Peter230655
Copy link

Peter230655 commented Feb 9, 2023

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]])

@moorepants
Copy link
Owner Author

Oh yeah, maybe I should recommend that instead of the hadamard_product() function. I guess they are the same.

@moorepants
Copy link
Owner Author

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.

@moorepants
Copy link
Owner Author

The endpoint for hadamard_product will be in 1.12: sympy/sympy#23900

@moorepants
Copy link
Owner Author

Helpful command I just learned:

python -m sphinx.ext.intersphinx 'https://docs.sympy.org/latest/objects.inv' > sympy-inter.txt

@moorepants
Copy link
Owner Author

Fixed LUsolve and inv in 5f9a1d0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants