| 1 | initial version |
You could try using cartesian_product:
for a, b, c in cartesian_product([srange(1,100), srange(1,100), srange(1,100)]):
if a<b and b<c:
do something
But I'm worried about computational cost...
| 2 | No.2 Revision |
You could try using cartesian_product:
for a, b, c in cartesian_product([srange(1,100), srange(1,100), srange(1,100)]):
if a<b and b<c:
a<b<c:
do something
But I'm worried about computational cost... cost...
| 3 | No.3 Revision |
You could try using cartesian_product:
for a, b, c in cartesian_product([srange(1,100), srange(1,100), srange(1,100)]):
if a<b<c:
a<=b<=c:
do something
But I'm worried about computational cost...
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.