[sage-devel] Sage 4.3.3.alpha1 released

2010-02-18 Thread Minh Nguyen
Hi folks, This is the final alpha release of Sage 4.3.3. The next release would be an rc0. The development version of Sage is now in feature freeze. Source: http://sage.math.washington.edu/home/release/sage-4.3.3.alpha1/sage-4.3.3.alpha1.tar Binary for sage.math: http://sage.math.washington.ed

[sage-devel] Re: Detecting the CPU on Linux for binary distributions

2010-02-18 Thread Bill Hart
Some other packages do use assembly support, e.g. FLINT, zn_poly, possibly M4RI, probably numerous others. And of course, in all that C code, the compiler is bound to apply optimisations specific to the build architecture in at least a handful of cases. The solution is of course to use generic C

[sage-devel] Re: experimental spkg: CHomP -- call for votes

2010-02-18 Thread John H Palmieri
On Feb 18, 6:05 pm, mhampton wrote: > I'm glad that CHomP is going in and that there is work being done on > it.  Even though it doesn't need a vote, feel free to add me as a > reviewer to any related tickets.  I've meant to look in to adding it > and other things related to dynamical systems for

[sage-devel] Re: experimental spkg: CHomP -- call for votes

2010-02-18 Thread mhampton
I'm glad that CHomP is going in and that there is work being done on it. Even though it doesn't need a vote, feel free to add me as a reviewer to any related tickets. I've meant to look in to adding it and other things related to dynamical systems for a long time and haven't had the time (e.g. Py

Re: [sage-devel] experimental spkg: CHomP -- call for votes

2010-02-18 Thread William Stein
On Thu, Feb 18, 2010 at 3:56 PM, John H Palmieri wrote: > CHomP is a free (GPL version 2) software package for computing > homology (CHomP stands for Computation Homology Project.)  See > chomp.rutgers.edu for some more information.  I've prepared an > experimental spkg for it: > > http://sage.mat

[sage-devel] experimental spkg: CHomP -- call for votes

2010-02-18 Thread John H Palmieri
CHomP is a free (GPL version 2) software package for computing homology (CHomP stands for Computation Homology Project.) See chomp.rutgers.edu for some more information. I've prepared an experimental spkg for it: http://sage.math.washington.edu/home/palmieri/SPKG/chomp-20100213.spkg If you succ

Re: [sage-devel] Re: Detecting the CPU on Linux for binary distributions

2010-02-18 Thread Dr. David Kirkby
William Stein wrote: Hi, I'm top posting, since I'm not responding to any particular remark on this thread. Sage *already* checks CPU flags on startup (see the SAGE_ROOT/local/lib/sage-flags.txt file and references to it in local/bin/sage-*). There is already a SAGE_FAT_BINARY flag for buildi

Re: [sage-combinat-devel] Re: [sage-devel] trac 7004: Refactor the graph layout code, and add interface with graphviz

2010-02-18 Thread Nicolas M. Thiery
On Fri, Feb 19, 2010 at 07:19:36AM +1100, Alex Ghitza wrote: > Cool pictures indeed. Can you also post the Sage code for generating > them? I definitely will, when that won't require anymore a collection of, hmm, non production grade code, in particular to define and work with those monoids. Oh,

[sage-devel] Fwd: [femhub] Re: adjusting versions and using/abusing FEMHUB

2010-02-18 Thread Ondrej Certik
Forwarding to sage-devel. Ethan made petsc working with FEMhub (so it should work in Sage too). Ondrej -- Forwarded message -- From: Ondrej Certik Date: Thu, Feb 18, 2010 at 1:06 PM Subject: Re: [femhub] Re: adjusting versions and using/abusing FEMHUB To: fem...@googlegroups.com

Re: [sage-combinat-devel] Re: [sage-devel] trac 7004: Refactor the graph layout code, and add interface with graphviz

2010-02-18 Thread Alex Ghitza
On Thu, 18 Feb 2010 12:44:38 +0100, "Nicolas M. Thiery" wrote: > I just put on http://wiki.sagemath.org/combinat/CoolPictures a few > pictures produced using this patch. Hi Nicolas, Cool pictures indeed. Can you also post the Sage code for generating them? Best, Alex -- Alex Ghitza -- Lec

Re: [sage-devel] Driven mad by cimport in Cython

2010-02-18 Thread William Stein
On Thu, Feb 18, 2010 at 5:22 AM, Nathann Cohen wrote: > Hello everybody > > I have been spending hours on the same Cython problem, which I hope > you can solve instantly :-) > > I have a Cython file, which happens to be sage/numerical/mip_coin.pyx > which defines the following function : > >

Re: [sage-devel] Re: Detecting the CPU on Linux for binary distributions

2010-02-18 Thread William Stein
Hi, I'm top posting, since I'm not responding to any particular remark on this thread. Sage *already* checks CPU flags on startup (see the SAGE_ROOT/local/lib/sage-flags.txt file and references to it in local/bin/sage-*). There is already a SAGE_FAT_BINARY flag for building Sage with a FAT mpir

Re: [sage-devel] Driven mad by cimport in Cython

2010-02-18 Thread David Roe
Maybe try cimport sage.numerical.mip_coin from sage.numerical.mip_coin cimport osi_solve David On Thu, Feb 18, 2010 at 8:22 AM, Nathann Cohen wrote: > Hello everybody > > I have been spending hours on the same Cython problem, which I hope > you can solve instantly :-) > > I have a Cython fi

[sage-devel] Re: Detecting the CPU on Linux for binary distributions

2010-02-18 Thread Dr David Kirkby
On 18 Feb, 13:05, Bill Hart wrote: > There are some problems with this. Compiling MPIR using generic C > code, for example, will yield a *massive* slowdown of *everything*. It would in general not be necessary to use C, but assembly code for a low-end processor such as an early Pentium should

[sage-devel] Re: creating a random matrix is slow

2010-02-18 Thread YannLC
You might try this to do your benchmark: import numpy matrix(numpy.random.normal(size=(1000,1000))) (or another numpy.random depending on the distribution you want) of course, I don't know if there is a ticket opened (no time to check now) but if not you might open one. -- To post to this grou

[sage-devel] Re: creating a random matrix is slow

2010-02-18 Thread Harald Schilly
On Feb 18, 4:16 pm, Ross Kyprianou wrote: > Apologies for asking Harold but how big was "s"? > 1000, and yes, they are not the same - but Sage is too slow anyways. It's not great if an SVD benchmark is nearly dominated by random_matrix ;) H -- To post to this group, send an email to sage-devel

[sage-devel] Re: creating a random matrix is slow

2010-02-18 Thread Ross Kyprianou
Oops (read the doco (for random_matrix) Ross!) Apologies for the silly mistake Matlab's rand() samples from the uniform distribution (I believe) and randn() from the normal distribution. That has a small bearing when we want to compare. But there should still be a problem (unless I made another mi

[sage-devel] Re: creating a random matrix is slow

2010-02-18 Thread YannLC
from Matlab help: r = randn(m,n) returns an m-by-n matrix containing pseudorandom values drawn from the standard normal distribution a somewhat better test would be: Matlab: rand(1000,'double') vs Sage: random_matrix(RDF,1000) (note: for matlab values are in [0,1) but in [-1,1) with Sage) Sag

Re: [sage-devel] Re: creating a random matrix is slow

2010-02-18 Thread Martin Albrecht
On Thursday 18 February 2010, Ross Kyprianou wrote: > Harald > > There seems to be definitely a problem > > Just tried it on sage.math > > sage: %time random_matrix(RDF, 1) > took over 2mins () this is a 1 x 1 matrix > tic; m = randn(100,100); toc > took 0.0003 secs! and this

[sage-devel] Re: QQbar and group algebras

2010-02-18 Thread Dima Pasechnik
Javier, In fact, http://brauer.maths.qmul.ac.uk/Atlas/v3/clas/U34/ provides you all almost you need. If you take the sum of all the representations given there, it's exactly 1_G+"the irreducibles", so each irreducible comes with multiplicity 1. So you can just take the (GAP) data given there, and

[sage-devel] Re: creating a random matrix is slow

2010-02-18 Thread Ross Kyprianou
Harald There seems to be definitely a problem Just tried it on sage.math sage: %time random_matrix(RDF, 1) took over 2mins () tic; m = randn(100,100); toc took 0.0003 secs! On Feb 19, 12:05 am, Harald Schilly wrote: > Hi, I did some benchmarks and during that i noticed that it takes >

[sage-devel] Re: creating a random matrix is slow

2010-02-18 Thread Ross Kyprianou
Apologies for asking Harold but how big was "s"? On Feb 19, 12:05 am, Harald Schilly wrote: > Hi, I did some benchmarks and during that i noticed that it takes > quite long to create a random_matrix. Is there something obvious I'm > missing or is there a better way to do this? Ticket? > > Benchma

[sage-devel] Journée Plume : "Alternatives libres a ux outils propriétaires de maths", supports et videos en li gne]

2010-02-18 Thread Nicolas M. Thiery
Hi! The videos from the recent conference on libre software for mathematics in Paris is now online. This includes my talk which of course mentions Sage and Sage-Combinat. At this occasion, I highly recommend the talk by Pierre Raybaut (CEA, author of pythonxy and Spyder), which presents a

[sage-devel] creating a random matrix is slow

2010-02-18 Thread Harald Schilly
Hi, I did some benchmarks and during that i noticed that it takes quite long to create a random_matrix. Is there something obvious I'm missing or is there a better way to do this? Ticket? Benchmark Matlab 2009a vs. Sage 4.3.2: tic; m = randn(s,s); toc Elapsed time is 0.060981 seconds. sage: %tim

[sage-devel] Re: QQbar and group algebras

2010-02-18 Thread Dima Pasechnik
On Feb 18, 2:09 am, javier wrote: > Hi Dima, > > On Feb 18, 6:26 am, Dima Pasechnik wrote: > > > I am curious to know, how you are doing this. IMHO for this you need > > to know > > each irreducible representation explicitly --- but then you can just > > stack up the right > > number of copies

[sage-devel] Driven mad by cimport in Cython

2010-02-18 Thread Nathann Cohen
Hello everybody I have been spending hours on the same Cython problem, which I hope you can solve instantly :-) I have a Cython file, which happens to be sage/numerical/mip_coin.pyx which defines the following function : cdef float osi_solve(self,c_OsiSolverInterface * si,bool log,bool obje

[sage-devel] Re: Detecting the CPU on Linux for binary distributions

2010-02-18 Thread Bill Hart
There are some problems with this. Compiling MPIR using generic C code, for example, will yield a *massive* slowdown of *everything*. Linbox and ATLAS are also somewhat problematic in this regard. The solution is to use fat binaries for MPIR on x86 and x86_64 and a minimum architecture for each o

Re: [sage-devel] trac 7004: Refactor the graph layout code, and add interface with graphviz

2010-02-18 Thread Nicolas M. Thiery
Dear Sage / Sage-Combinat devs, I just put on http://wiki.sagemath.org/combinat/CoolPictures a few pictures produced using this patch. Here is Tom Denton's reaction when he looked at the n=5 one: "First they tell us we will never need more than 640k of RAM, then they tell us our documents

[sage-devel] Re: Detecting the CPU on Linux for binary distributions

2010-02-18 Thread Volker Braun
Instead of trying to detect the CPU and then possibly displaying an error message, the binary packages should be built with the same compiler flags as the binary distribution. This will ensure that every computer that runs a target linux distribution will also be able to run the sage binary distri

[sage-devel] Re: Sage 4.3.3.alpha0 released

2010-02-18 Thread ma...@mendelu.cz
I have some failed doctests on Centos [ma...@carya ~]$ uname -a Linux carya 2.6.9-67.0.20.ELsmp #1 SMP Thu Jun 26 08:14:55 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux sage -t "local/lib/python2.6/site-packages/sagenb-0.7.5-py2.6.egg/ sagenb/misc/sphinxify.py" [4.4 s] sage -t "local/lib/py

Re: [sage-devel] Typesetting rational numbers

2010-02-18 Thread Burcin Erocal
Hi, On Wed, 17 Feb 2010 23:16:13 -0800 (PST) Håkan Granath wrote: > A minor inconvenience is the extra set of parentheses that appear > when typesetting QQ elements as arguments of functions, e.g. > > -- > | Sage Version 4.3.2,

Re: [sage-devel] QQbar and group algebras

2010-02-18 Thread John Cremona
On 17 February 2010 14:57, javier wrote: > Hi all, > > I am trying to use sage to compute the Artin-Wedderburn decomposition > of a group algebra. Since I need exact expressions I am working over > QQbar rather than over CC. When trying to compute the idempotents I > get an error resulting from an

[sage-devel] Re: QQbar and group algebras

2010-02-18 Thread javier
Hi Dima, On Feb 18, 6:26 am, Dima Pasechnik wrote: > I am curious to know, how you are doing this. IMHO for this you need > to know > each irreducible representation explicitly --- but then you can just > stack up the right > number of copies of each irreducible. > > Or you rather mean a weaker d