Re: [sage-combinat-devel] core and quotient...
Hi All! What is the status on a class for cores? Does that exist by now? I would like to have some new methods in Partitions such as is_core and from_core_to_k_bounded which goes from k+1 cores to k-bounded partitions. Currently one can do sage: la = Partition([4,3,3,3,2,2,1]) sage: kappa = la.k_skew(4); kappa [[12, 8, 5, 5, 2, 2, 1], [8, 5, 2, 2]] sage: kappa.row_lengths() [4, 3, 3, 3, 2, 2, 1] but as far as I can see there is no inverse yet for k_skew if only kappa[0] is specified. Best, Anne On 4/9/11 11:11 AM, Florent Hivert wrote: Hi there, Currently the methods core and quotient returns respectively a list and a list of list. Does anyone object on having them return a partition and a tuple of partition ? sage: Partition([7,7,5,3,3,3,1]).core(3) [1, 1] sage: type(Partition([7,7,5,3,3,3,1]).core(3)) type 'list' sage: sage: Partition([7,7,5,3,3,3,1]).quotient(3) [[2], [1], [2, 2, 2]] sage: type(Partition([7,7,5,3,3,3,1]).quotient(3)[0]) type 'list' In the long term, there could be a particular class for cores (there is already a prototype in the k-tableaux patch). But on the contrary of what is in this patch, I've rather have this class inherits from partitions. Any comments ? Cheers, Florent -- You received this message because you are subscribed to the Google Groups sage-combinat-devel group. To post to this group, send email to sage-combinat-devel@googlegroups.com. To unsubscribe from this group, send email to sage-combinat-devel+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sage-combinat-devel?hl=en.
[sage-devel] Re: Femhub
I guess by modular I meant that the different components can be installed separately, which is not really the case with Sage (except with the extra spkgs). I like the all-in-one approach better anyways but, like you said, there is also an advantage in the specific-use approach, like Sympy, NumPy, etc. On Jul 22, 9:01 pm, William Stein wst...@gmail.com wrote: On Fri, Jul 22, 2011 at 8:57 PM, Eviatar eviatarb...@gmail.com wrote: Oh, I see. It would be nice if Sage was more modular. Good luck with Qsnake! And things like Qsnake are possible... because Python is very modular. -- William On Jul 22, 7:51 pm, Ondřej Čertík ondrej.cer...@gmail.com wrote: On Fri, Jul 22, 2011 at 6:19 PM, William Stein wst...@gmail.com wrote: On Fri, Jul 22, 2011 at 5:56 PM, Eviatar eviatarb...@gmail.com wrote: Just out of curiosity: why are you forking a separate project instead of developing Sage? I think the main issue is that Sage contains a lot of dependencies and code that are not needed for people doing Finite Element Method (say) work. But nonetheless, there are useful ideas in how Sage is constructed, which Ondrej's project also benefits from. Also so that we can quickly release a new version, update a package and so on. Also, what I did in Qsnake is that I wrote a completely new build system (in pure Python, as one simple file) and also I have added a lot of new packages, not in standard Sage. By doing it separately, I can simply create a version, that just works. Plus I wanted to use git and github etc., as these tools make me a lot more productive (subjective reason). In any case, I have strictly stayed with the SPKG packages, so that any improvements (let's say after my new packages mature) can be incorporated in standard Sage, eventually. So I view it as simply organizing the work, rather than a competing fork. As a related example, shortly after I started Sage (in 2005), Ondrej started Sympy (in 2006), which does symbolic calculus. At least for a while, much of what Sympy did, one could do more quickly in Sage. That said, I just went to the app store recently and downloaded a program called PythonMath, which I find handy on occasion: it turns out PythonMath is basically Python + Sympy, which is _vastly_ easier to port to the iPhone than Sage. Yes. For the kind of math that I do, in daily research (electronic structure calculations and other quantum mechanics stuff), sympy always worked great, and having no other depenencies than Python, it was exactly what I always needed. For the kind of math that William does, Sage has always worked much better. Also, sympy is just a symbolic library (and that's it, so one has to use other libraries for plotting, numerics, notebook...), while Sage is everything. And thus the motivation for Qsnake --- to have a program, that contains everything and just works. I would put Qsnake on the same level as psage:http://purple.sagemath.org/, if I understand the motivation of psage correctly, it's aim is also to eventually integrate the useful packages (once they mature from research to production) into Sage. Looking here: http://purple.sagemath.org/goals.html That's pretty much the same motivation for Qsnake. Except that I need a different set of packages (and I need Fortran). Ideally, there would be a huge repository of SPKG packages (just like the huge repository that Ubuntu has, with almost everything), and one could quickly install just what one needs. So I am trying to figure this out too with Qsnake. But it's easier said than done. Ondrej -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/sage-devel URL:http://www.sagemath.org -- William Stein Professor of Mathematics University of Washingtonhttp://wstein.org -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
Re: [sage-devel] Re: Femhub
On Fri, Jul 22, 2011 at 11:37 PM, Eviatar eviatarb...@gmail.com wrote: I guess by modular I meant that the different components can be installed separately, which is not really the case with Sage (except with the extra spkgs). I like the all-in-one approach better anyways but, like you said, there is also an advantage in the specific-use approach, like Sympy, NumPy, etc. It's all about the build system (that's why I wrote a new one), the SPKG packages in Sage are perfectly modular. Ondrej -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
[sage-devel] Re: Lion
On 22 Jul., 20:38, William Stein wst...@gmail.com wrote: On Fri, Jul 22, 2011 at 11:29 AM, Justin C. Walker jus...@mac.com wrote: Does a sage-4.7 binary built on OS X 10.6 work on OS X 10.7? Yup. I think 10.6 binaries that don't use exotic libraries (e.g., non-GUI programs) should run. I haven't tested that theory extensively, though. Thanks. This is the single most important question now, since it determines whether it is currently possible to use Sage on 10.7 or not. The next thing is to look at the Sage sources (especially spkgs and scripts in $SAGE_ROOT/local/bin I guess), in order to make Sage build on 10.7 when the XCode issues local to the system are fixed. I don't know how many, but there are pieces of code in Sage that assume any Darwin != 10 must be either 8 or 9 (i.e., MacOS X 10.4 or 10.5). For shell scripts, one should perhaps search for 'uname -r' and 'sysctl' (or 'kern.osrelease') and make sure there's a proper less than or alike. I've fixed one instance of that in the MPIR 2.1.3.p3 spkg (#8664) just a few days ago. Just my 2 ct, -leif -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
Re: [sage-devel] Femhub
Le 22/07/2011 23:35, Ondřej Čertík a écrit : Hi Thierry, http://qsnake.com/ And I'll be happy to integrate things back to Sage. I didn't announce the Qsnake project publicly yet, because I am not happy with the web pages yet, but I am currently busy finishing some work, and I'll get to it probably at the end of the summer again. Which exact things are you interested in integrating back? I'll be happy to discuss it more. Ondrej Hi, I can give different answers: 1) Sage is said to build an alternative to, maple,..., and *matlab*. Matlab has a FEM toolbox, so we need something like this. 2) It is clear for me that it would not be serious to introduce an industrial fem code: the target is research and teaching. In France we use Freefem for this, which is quite nice: I do not think that Freefem could be introduced in Sage easily, but what actually Freefem does is interesting: given a problem (say Navier Stokes equations in 2d) you can very easily play with different elements, different temporal schemes, different linear solver. Uou can also define easily your finite element, which is interesting for research. I am very intersted by Qsnake. Yours, t.d. -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org attachment: tdumont.vcf
[sage-devel] Re: Lionizing the Sage build
I encountered the missing _ilaenv_ symbol when trying to update to Atlas 3.9.xx before, so I guess Apple updated its atlas library: http://trac.sagemath.org/sage_trac/ticket/10509 You are probably mistaking a symbol maked as undefined in libBLAS.dylib with the actual symbol's definition. -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
Re: [sage-devel] Preparser and continuation
+1 to robert, the preparser should just behave like the python standard here. In regular python you can make your code multiline if the parser is expecting a closing ), } or ] If you don't have an unmatched [,{ or ( then you can also make it multiline by adding a \ Note that this behaviour also fails currently: T(r,t)=[r^2, \ t^2] gives Traceback (most recent call last): File stdin, line 1, in module File _sage_input_14.py, line 10, in module exec compile(u'open(___code___.py,w).write(# -*- coding: utf-8 -*-\\n + _support_.preparse_worksheet_cell(base64.b64decode(VChyLHQpPVtyXjIsIFwKICAgIHReMl0=),globals())+\\n); execfile(os.path.abspath(___code___.py)) File , line 1, in module File /private/var/folders/F+/F+xRBxXCG8mKGpPo2zG+iTI/-Tmp-/tmph7BaW0/___code___.py, line 3 __tmp__=var(r,t); T = symbolic_expression([r**_sage_const_2 , * BackslashOperator() * ).function(r,t) ^ SyntaxError: invalid syntax -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
[sage-devel] Re: Preparser and continuation
*Slightly* related: ;-) http://trac.sagemath.org/sage_trac/ticket/10458 (Doctest framework fails to parse multiline input pasted from sage interactive prompt) Hopefully Kini or me will return to and finish that... -leif -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
[sage-devel] Re: Few minutes for a sage minor bug?
On Fri, Jul 22, 2011 at 8:30 AM, Lepoint Tancrede tancrede.lepo...@technicolor.com wrote: Hi, The main reason is that I need to have the transformation matrix U from LLL, and the regular sage matrix LLL does not have the option(?). I know that U can be computed from the new matrix and the former one, but it need to inverse one of the matrix, which takes quite some time (I'll will deal with 70x70 matrices of ~1000-bits integers -- and this is why I need LLL_XD() algorithm). If there is no other solution, I could eventually use this method. Thank you very much for your quick answer. Ok, someone else had the same issue, for now there is a workaround posted at https://groups.google.com/forum/#!topic/sage-support/w6t2nrQqkd4 Hope that it works for you also. Best regards, Tancrède Lepoint. From: Maarten Derickx [m.derickx.stud...@gmail.com] Sent: Wednesday, July 20, 2011 6:13 PM To: sage-devel@googlegroups.com Cc: Lepoint Tancrede Subject: Re: Few minutes for a sage minor bug? Are there good reasons you need to use that specific version of the LLL algorithm? If you just need some result fast (before the deadline) it might be easier to just use one of the other LLL algorithms. The NTL wrapper object has a lot of .LLL methods to chose from. And appart from that you might also want to not use the LLL wrapper directly but just use regular Sage matrices to call the LLL. For example sage: A=MatrixSpace(ZZ,5,5)(range(25)) sage: A.LLL() [ 0 0 0 0 0] [ 0 0 0 0 0] [ 0 0 0 0 0] [ 0 1 2 3 4] [ 5 3 1 -1 -3] Kind Regards, Maarten Derickx -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
[sage-devel] Sage iPhone app
Dear Sage iPhone users, I finally took the time to fix the icons on the iPhone app I've been working on so that I'm not completely embarrassed by them. For those that want to test it, probably the easiest thing to do is run it on the iPhone simulator (pointed at an aleph instance running on your own machine). The source code can be found at http://boxen.math.washington.edu/home/iandrus/ I also have some screen shots up there if you don't want to compile it but still want to see what it might look like. I need to get some feedback before I can finish it off and put it on the app store. If you have any ideas, from the smallest typo or color change to the largest redesign, please let me know. Right now the biggest thing holding the app back is what service to use. It's coded against aleph, which is very easy to use, but isn't currently running. Moreover it executes python not Sage. Aleph could be improved to run Sage, or I could switch to using the simple server in which case you would need to login (or have some sort of universal login). Either way, we have to commit (as a community) to keep at least one server running the service. I do have some other specific questions that might be easier to answer: - Where should I host the source code? as part of Sage or separately e.g. on bitbucket? - What is a better name than iSage? just Sage? - What initial examples should there be? - Can someone provide me with better icons? :-) - Should I design a whole new keyboard or just add to the strip across the top? -Ivan -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
Re: [sage-devel] Re: Lionizing the Sage build
On Jul 23, 2011, at 01:58 , Volker Braun wrote: I encountered the missing _ilaenv_ symbol when trying to update to Atlas 3.9.xx before, so I guess Apple updated its atlas library: http://trac.sagemath.org/sage_trac/ticket/10509 You are probably mistaking a symbol maked as undefined in libBLAS.dylib with the actual symbol's definition. Moi? I'm reporting, not making mistakes :-} I'm not quite sure what you're saying above, but the symbol is definitely defined in libBLAS on Mac OS X, both 10.6 and 10.7: grepping the output of nm on that library for the string ilaenv gives me 10.6: 0003b2d0 T _ilaenv -- T means external text symbol 0003b2d0 T _ilaenv_ 10.7: d530 t _ilaenv_ -- t means local text symbol d5a1 t _ilaenv_safe so for sure the library has changed, and it appears that the missing symbol has been declared not external, so it isn't found by ld/dyld. Comments/clarifications welcome. Justin -- Justin C. Walker, Curmudgeon-At-Large Institute for the Enhancement of the Director's Income Experience is what you get when you don't get what you want. -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
Re: [sage-devel] Lionizing the Sage build
On Jul 22, 2011, at 15:54 , Justin C. Walker wrote: I don't have a whole lot to report yet, but I thought I'd pass on what little I've gleaned from the background noise. Most of this is of general import. I haven't really delved into the Sage build issues yet. A brief update: trying to hack my way into building with the Xcode 3 tool chain on 10.7, I run immediately into a problem: the first autoconf use tries to verify that the C compiler works, which as I mentioned previously, won't work unless you provide a pointer to the pieces. The prereq spkg build halts because the plain command cc -o conftest conftest.c fails. I tried defining CFLAGS with the isysroot flag on the command line of the 'make', but that failed in two ways: first, there's a check to see whether my make invocation sets $(MAKE); without setting CFLAGS (invoking as usual), the answer is yes; with CFLAGS set, the answer is no. The main problem is the above compile problem: the compiler doesn't produce binaries, so the build halts. If anyone has a suggestion to get past this, let me know. In the meantime, I will switch to trying out Xcode 4. Justin -- Justin C. Walker, Curmudgeon-At-Large Institute for the Enhancement of the Director's Income Experience is what you get when you don't get what you want. -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
Re: [sage-devel] Sage iPhone app
On Sat, Jul 23, 2011 at 2:50 PM, Ivan Andrus darthand...@gmail.com wrote: Dear Sage iPhone users, I finally took the time to fix the icons on the iPhone app I've been working on so that I'm not completely embarrassed by them. For those that want to test it, probably the easiest thing to do is run it on the iPhone simulator (pointed at an aleph instance running on your own machine). For what aleph is, see: http://code.google.com/p/sage-aleph/ It's a small program Rado and I wrote in a day as a lightweight proof of concept for a Sage web service. The source code can be found at http://boxen.math.washington.edu/home/iandrus/ I also have some screen shots up there if you don't want to compile it but still want to see what it might look like. I need to get some feedback before I can finish it off and put it on the app store. If you have any ideas, from the smallest typo or color change to the largest redesign, please let me know. Right now the biggest thing holding the app back is what service to use. It's coded against aleph, which is very easy to use, but isn't currently running. Moreover it executes python not Sage. Aleph could be improved to run Sage, or I could switch to using the simple server in which case you would need to login (or have some sort of universal login). Either way, we have to commit (as a community) to keep at least one server running the service. I do have some other specific questions that might be easier to answer: - Where should I host the source code? as part of Sage or separately e.g. on bitbucket? - What is a better name than iSage? just Sage? - What initial examples should there be? - Can someone provide me with better icons? :-) - Should I design a whole new keyboard or just add to the strip across the top? -Ivan -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org -- William Stein Professor of Mathematics University of Washington http://wstein.org -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
[sage-devel] Re: Sage iPhone app
On 7/23/11 2:50 PM, Ivan Andrus wrote: Dear Sage iPhone users, I finally took the time to fix the icons on the iPhone app I've been working on so that I'm not completely embarrassed by them. For those that want to test it, probably the easiest thing to do is run it on the iPhone simulator (pointed at an aleph instance running on your own machine). The source code can be found at http://boxen.math.washington.edu/home/iandrus/ I also have some screen shots up there if you don't want to compile it but still want to see what it might look like. I need to get some feedback before I can finish it off and put it on the app store. If you have any ideas, from the smallest typo or color change to the largest redesign, please let me know. Right now the biggest thing holding the app back is what service to use. It's coded against aleph, which is very easy to use, but isn't currently running. Moreover it executes python not Sage. Aleph could be improved to run Sage, or I could switch to using the simple server in which case you would need to login (or have some sort of universal login). Either way, we have to commit (as a community) to keep at least one server running the service. Have you thought about using sagemath.org:5467 ? Two students and I have been working on this all summer, and hopefully in the next week it'll be polished up enough to announce more generally. Too bad I can't just download the app as-is and install it on the ipad...walled garden and such. Thanks, Jason -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
[sage-devel] linux 3.0 and python breakage fun
Hi all, this is not just Lion that is causing trouble. I opened #11619 about problem with building some python bits under a linux-3.0 kernel. Some bits of the building system looks at the major version number of linux to determine that it needs to build stuff in plat-linux2. On linux-3.0 it looks for a non-existent plat-linux3 There is also the fact that a number of packages check: sys.platform == 'linux2' which will break. Apparently matplotlib has ben fixing a number of these recently. Python upstream is still undecided on what to do: http://bugs.python.org/issue12326 I'll introduce a fix for python-2.7 in #9958 at some point but the current python-2.6 will need fixing and python packages will have to be checked. Francois This email may be confidential and subject to legal privilege, it may not reflect the views of the University of Canterbury, and it is not guaranteed to be virus free. If you are not an intended recipient, please notify the sender immediately and erase all copies of the message and any attachments. Please refer to http://www.canterbury.ac.nz/emaildisclaimer for more information. -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
Re: [sage-devel] Re: bug in graph isomorphism in sage-4.7
Vincent, Thanks Robert for pointing this. But is the following the expected behavior ? Of course not, that is clearly wrong. I've tracked down the bug, and posted a patch at: http://trac.sagemath.org/sage_trac/ticket/11620 This should fix the problem. ... However, when running doctests I got some apparently unrelated failures related to the database, in particular related to the graph database. Can someone (I don't have the time) try downloading an OS X sage-4.7 binary, and running the doctests in sage/graphs/ to see if this can be reproduced? http://pastebin.com/vAgr5Aft -- Robert L. Miller http://www.rlmiller.org/ -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org