Replies: 6 comments
-
Until today, I did not know about several matrix-related macro files. My bad for not looking previously. But there are these:
For some of what these offer, I wonder if they should just be in |
Beta Was this translation helpful? Give feedback.
-
Here is a list of what those macros offer:
In addition to what's been mentioned so far, one more thing I would like is to specify m, n for an mxn matrix, and specify p for a number of pivots. And then generate a random rref matrix under those conditions, with free entries constrained in some range. I would like that matrix math object to have a property that tells me where the pivot positions are. In the vectors arena, I'd like a simple test for if some vector b is in the span of a given list of vectors. Given matrices A (mxn) and B (mxk) I'd like to be able to augment A with B, and get [A|B]. And related, I'd like for a matrix It seems that the only utility for solving Ax=b that we have requires A to be square. (Am I wrong about that?) I'd like to be able to provide an A and a b, and get back an appropriate thing. No solutions => I guess technically a MathObject Matrix can be 1D or 3D, 4D, etc, and I'm just thinking 2D. I don't know if that messes with many of the things I am thinking about getting. |
Beta Was this translation helpful? Give feedback.
-
Note, if you are in the process of adding more functionality to the Value::Matrix class, augmented matrices would be useful too. I have my own context for this that you are welcome to use as a base. It works (but needs some clean up and has a few minor issues with working with normal matrices). https://github.com/somiaj/pgMacros/blob/main/contextAugmentedMatrix.pl |
Beta Was this translation helpful? Give feedback.
-
I also have a macro for augmented matrices. It is similar to @somiaj's macro. It probably has similar issues that he noted for his macro, and is not developed to the point of being ready to submit to PG, but works for my purposes. It is attached. |
Beta Was this translation helpful? Give feedback.
-
Note that my version is a bit more limited than @somiaj's in that it assumes there is only one column in the augmentation part of the matrix (because that is all I needed!). |
Beta Was this translation helpful? Give feedback.
-
Just for the record - the current basis_checker algorithms in I write new ones, but as way back when I did not find someone to help me testing and verifying that they are "better" they are stuck as code in my problem directories. The attached ZIP file has the current version of the basis checkers I use, as well as macros for partial credit for matrices with some correct entries. These are probably somewhat updated compared to the files in #409. |
Beta Was this translation helpful? Give feedback.
-
I've been writing/rewriting a bunch of linear algebra problems lately and have a few things that I'd like to add to the Matrix math object.
There was discussion at some point to add other things to the Matrix, for example some of the routines from MatrixReduce.pl for row operations.
Thoughts? I have started this, but wondered if the row operations should be added to this or keep a slim PR.
Beta Was this translation helpful? Give feedback.
All reactions