Re: [sympy] about creating a pull request for some new functions for matrices

2012-03-27 Thread Matthew Rocklin
1. create a new method for testing the antisymmetry of a matrix: new is_anti_symmetric() method This sounds good to me. 2. create a new method for calculating the symbolic determinant using LU decomposition: new det_lu_decomposition() method This also sounds good to me. Is anyone

Re: [sympy] about creating a pull request for some new functions for matrices

2012-03-27 Thread Comer Duncan
Hi Matt, Yes I will take a more serious look at the workflow. I have not much used IRC except to chat with my sons (one soon to be a professor at Indiana University and one living in Temecula Ca). But clearly it can be much more efficient. I am just a bit hesitant in wasting others time. Am

Re: [sympy] about creating a pull request for some new functions for matrices

2012-03-27 Thread Tom Bachmann
Hi, I hope this is already clear, but I don't think you will be wasting anyone's time. The sympy community is very embracing and interested in all contributions. I would suggest you simply open a pull request (once you learn how to do so :-) ) and we discuss details of your code there. On

Re: [sympy] about creating a pull request for some new functions for matrices

2012-03-27 Thread Comer Duncan
I forgot to say something about the dual of a matrix. In my present context in the ipython notebooks I am using the following definition: Given a 4x4 antisymmetric matrix F (so F_{ab} = - F_{ba}) the dual to F is defined to be \sideset{^{*}}{^{ab}}{\mathbf{F}} =\frac{1}{2}

Re: [sympy] about creating a pull request for some new functions for matrices

2012-03-27 Thread Tom Bachmann
I wonder if any of the tensor and/or quantum algebra code would be helpful to use? (I have never used any of it myself but I would think this sort of object is fairly common.) On 27.03.2012 18:02, Comer Duncan wrote: I forgot to say something about the dual of a matrix. In my present context

Re: [sympy] about creating a pull request for some new functions for matrices

2012-03-27 Thread Comer Duncan
Hi Tom, Thanks for the reply. I have taken a cursory look at the quantum stuff and do not think at present that there is much overlap. My use of dual is in the context of cartesian coordinate components of the antisymmetric 2nd rank tensor. The tensor and its dual really live in different

Re: [sympy] about creating a pull request for some new functions for matrices

2012-03-27 Thread Tom Bachmann
Oh yes, I wasn't suggesting it is not a good thing, just that maybe you might find good stuff there that is useful to you. For example I would be surprised if there wasn't an implementation of the levi-civita symbol somewhere around there. On 27.03.2012 18:45, Comer Duncan wrote: Hi Tom,

Re: [sympy] about creating a pull request for some new functions for matrices

2012-03-27 Thread Matthew Rocklin
There has been some talk about creating a more dedicated tensor module. Perhaps this is the sort of thing that would be implemented there. Stefan Krastanov and I both seem interested in this topic. Stefan was thinking about turning this into a GSoC project. If this doesn't happen I'll probably

Re: [sympy] about creating a pull request for some new functions for matrices

2012-03-27 Thread Chris Smith
On Tue, Mar 27, 2012 at 11:42 PM, Tom Bachmann e_mc...@web.de wrote: Oh yes, I wasn't suggesting it is not a good thing, just that maybe you might find good stuff there that is useful to you. For example I would be surprised if there wasn't an implementation of the levi-civita symbol

Re: [sympy] about creating a pull request for some new functions for matrices

2012-03-27 Thread Comer Duncan
Hi Chris, Oh yes, I wasn't suggesting it is not a good thing, just that maybe you might find good stuff there that is useful to you. For example I would be surprised if there wasn't an implementation of the levi-civita symbol somewhere around there. from the docstring in

Re: [sympy] about creating a pull request for some new functions for matrices

2012-03-27 Thread Comer Duncan
Hi Matt, Actually a couple of years ago Alan Bromborsky made nontrivial progress at developing sympy tensor analysis. I talked to him a few times about his development and tried out some things myself. Alan is the developer of the GA module and made quite good progress. There were some needs for

Re: [sympy] about creating a pull request for some new functions for matrices

2012-03-27 Thread Chris Smith
On Wed, Mar 28, 2012 at 12:06 AM, Comer Duncan comer.dun...@gmail.comwrote: Hi Chris, I have used this in my little implementation of the dual. Actually, I first wrote my own Levi-Civita function only to discover later that it is already done and in the tensor_functions module. Thanks for

Re: [sympy] about creating a pull request for some new functions for matrices

2012-03-27 Thread Comer Duncan
Chris, Yes grep is a good thing. I have been using it since the 1980s when I first started using unix. I am now starting to confront getting knowledge of git... I have a github account, have been using the git master of sympy for several weeks and do a git pull every once in a while. For the

Re: [sympy] about creating a pull request for some new functions for matrices

2012-03-27 Thread Aaron Meurer
What you want to do is create a new branch, not a new fork. You can achieve this with the command git checkout -b new_branch_name Anything you do here will be done in the branch. You can switch back and forth between branches with git checkout branch_name The default branch is master, so to

Re: [sympy] about creating a pull request for some new functions for matrices

2012-03-27 Thread Comer Duncan
Hi Aaron,  You can achieve this with the command git checkout -b new_branch_name Yes, but do I do that from another directory than /Users/comerduncan/sympy where I have my current master cloned a while ago and used to do pulls? In a way it would be cleaner to have another unique branch

Re: [sympy] about creating a pull request for some new functions for matrices

2012-03-27 Thread Tom Bachmann
No you do all your work in the same directory. This took some getting used to for me, but most of the time it's actually quite neat. (In particular you can have several branches, which you can see with git branch, and switch between them with git checkout.) On 27.03.2012 20:10, Comer Duncan

Re: [sympy] about creating a pull request for some new functions for matrices

2012-03-27 Thread Aaron Meurer
Exactly. git checkout magically changes the files in the same directory to be whatever they are for the branch you are checking out. You might read at least the first part of http://www-cs-students.stanford.edu/~blynn/gitmagic/ (maybe there are better tutorials, but this is the one I used, and I

Re: [sympy] about creating a pull request for some new functions for matrices

2012-03-27 Thread Joachim Durchholz
Am 27.03.2012 20:45, schrieb Comer Duncan: I am now starting to confront getting knowledge of git... I have a github account, have been using the git master of sympy for several weeks and do a git pull every once in a while. For the making and baking of my 'new' functions/methods, can I

[sympy] about creating a pull request for some new functions for matrices

2012-03-26 Thread Comer
I have been working on an ipython notebook or two and have come up with several methods which might be good to include in matrices. I am writing to ask for permission to create a pull request for implementation of the new stuff. Here is a list, more details can be provided as needed: 1.