On Oct 28, 2008, at 12:38 PM, John Cremona wrote:
> 2008/10/28 Robert Bradshaw <[EMAIL PROTECTED]>:
>>
>> On Oct 27, 2008, at 2:15 PM, cesarnda wrote:
>>
>>> is there a way to do that in a fancy way in pure cython?
>>
>> No, the cartesian_product_iterator will still work in the context of
>> Sage
2008/10/28 Robert Bradshaw <[EMAIL PROTECTED]>:
>
> On Oct 27, 2008, at 2:15 PM, cesarnda wrote:
>
>> is there a way to do that in a fancy way in pure cython?
>
> No, the cartesian_product_iterator will still work in the context of
> Sage though, as will Georg's solution.
>
> If I needed to do thi
On Oct 27, 2008, at 2:15 PM, cesarnda wrote:
> is there a way to do that in a fancy way in pure cython?
No, the cartesian_product_iterator will still work in the context of
Sage though, as will Georg's solution.
If I needed to do this loop super fast for an arbitrary number of k,
I might ei
is there a way to do that in a fancy way in pure cython?
On Oct 26, 4:02 pm, Georg <[EMAIL PROTECTED]> wrote:
> Hi Roland,
>
> > 2. Is there a more elegant way for:
> > for k1 in range(-2,3):
> > for k2 in range(-2,3):
> > for k3 in range(-2,3):
> > for k4 in range(-2,3):
> > for k
Hi Roland,
> 2. Is there a more elegant way for:
> for k1 in range(-2,3):
> for k2 in range(-2,3):
> for k3 in range(-2,3):
>for k4 in range(-2,3):
> for k5 in range(-2,3):
> for k6 in range(-2,3):
> for k7 in range(-2,3): ?
>
> Roland
if you want to stay in pure pyth
2008/10/26 David Joyner <[EMAIL PROTECTED]>:
>
> I'm sure someone else can give a better answer, but hopefully
> the below examples help a little.
>
> On Sun, Oct 26, 2008 at 7:56 AM, Rolandb <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>> To learn SAGE takes a while, and good exercises are scarce.
>> It
I'm sure someone else can give a better answer, but hopefully
the below examples help a little.
On Sun, Oct 26, 2008 at 7:56 AM, Rolandb <[EMAIL PROTECTED]> wrote:
>
> Hi,
> To learn SAGE takes a while, and good exercises are scarce.
> It was mentioned before, but the site http://projecteuler.net