-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Improve the docs for sparse matrices #1769
Comments
Yeah, the documentation on the possibilities and limitations of SparseMatrix are a bit... sparse ;) Anyone interested in writing a bit more about SparseMatrices? Maybe the https://mathjs.org/docs/datatypes/matrices.html page is the best place, not sure. |
Could you provide a URL to the sparse code? |
@hsmyers there is not one place with the sparse code. You can find the code of the |
@josdejong Exactly what I meant. Mostly the first link so I could go over which 'sparse' you were using. I assumed that add.js was how you were handling the multiple variants for each function needed. Let me poke around a bit and give it some thought. |
May be it might help someone to know the internals of a SparseMatrix: Lets consider a matrix generated using the following code: A = math.sparse([[1,0,0],[4,0,0],[7,0,9]]); Note that A has a fully populated first column, and no elements in the second column, and a single element in the third column. This code results in an object
|
It is almost impossible to learn how to use SparseMatrix from the current documentation. The example code also isn't very useful. We need to improve the documentation and make it easier to grasp and include some real-world examples.
(Possibly related to #1166 and #1770?)
The text was updated successfully, but these errors were encountered: