Thanks Vincent for both your answers. I am planning on using just one
machine with up to 24 cores. (If I am not able to get far enough this way
then I will think about using the cluster. Using 24 cores will already be a
big step up compared with what I am currently doing.)
If the processes can
On 10/05/16 23:32, Andrew wrote:
On Wednesday, 11 May 2016 14:00:20 UTC+10, William wrote:
It depends on what you are trying to do. For some computations,
@parallel is the best possible way to do them, and for others it is
the worst possible way.
Is there a good to learn about how best to do
Hi Andrew,
If you use *one* machine with many cores then have a look at the
standard Python module multiprocessing
https://docs.python.org/2/library/multiprocessing.html
This is what parallel does use. And it is not hard to get it works.
If you have access to a cluster with several nodes, th
On Wednesday, 11 May 2016 14:00:20 UTC+10, William wrote:
>
>
> It depends on what you are trying to do. For some computations,
> @parallel is the best possible way to do them, and for others it is
> the worst possible way.
>
> Is there a good to learn about how best to do this (in sage/python/
On Tue, May 10, 2016 at 7:39 PM, Andrew wrote:
> I have access to a centos machine with many cores, so I want to start
> writing parallelised code on it. This is probably naive, but is using the
> code in sage.parallel the best way to write parallel code in sage?
It depends on what you are trying
I have access to a centos machine with many cores, so I want to start
writing parallelised code on it. This is probably naive, but *is using the
code in sage.parallel the best way to write parallel code in sage*?
I started using the @parallel decorator but then I found the optional
packages op
On 05/10/2016 04:56 PM, Vincent Delecroix wrote:
> still
>
> sage: n = SR.var('n')
> sage: assume(n, 'real')
> sage: assume(n >= 0)
> sage: bool(sqrt(pi)*sqrt(n) == sqrt(pi*n))
> False
>
What `bool(expr1 == expr2)` does is something like,
bool((expr1 - expr2).simplify_full() == 0)
As long as
On Tuesday, May 10, 2016 at 3:11:04 PM UTC+1, Kaponek Herkowitsch wrote:
>
> Hi,
>
> I downloaded sage-7.0.ova and imported it into VMWare.
> When I boot the VM I see only jupyter, and not the notebook as described
> here: https://wiki.sagemath.org/SageAppliance/SageMath-7
> I even cannot connec
still
sage: n = SR.var('n')
sage: assume(n, 'real')
sage: assume(n >= 0)
sage: bool(sqrt(pi)*sqrt(n) == sqrt(pi*n))
False
On 10/05/16 10:32, Michael Orlitzky wrote:
On 05/06/2016 09:50 PM, Marc Tardif wrote:
Hi folks,
When comparing the product of two square roots to the square root of
the pr
here is the input for theta executable:
4
2
1 2
3 4
(also attached)
save it to a file named, say, 2k2, fire up "sage -sh"
and run
theta 2k2
I get
$ theta 2k2
Graph is of size 4 2
C block 1, blocksize, 4
Checking constraint 1
Checking constraint 2
Checking constraint 3
Iter: 0 A
Please edit /home/shhu/Documents/SageMath/local/lib/python2.7/site-
packages/sage/graphs/lovasz_theta.py
to insert
print "output was: ", lines
after "lines = subprocess.check_output(...)"
remove /home/shhu/Documents/SageMath/local/lib/python2.7/site-
packages/sage/graphs/lovasz_theta.pyc
and sta
$sage -sh
Starting subshell with Sage environment variables set. Don't forget
to exit when you are done. Beware:
* Do not do anything with other copies of Sage on your system.
* Do not use this for installing Sage packages using "sage -i" or for
running "make" at Sage's root directory. The
and on other graphs either?
(e.g. on graphs.CycleGraph(7))
Start sage prompt (sage -sh) and check that you have the program called
theta available:
$ sage -sh
Starting subshell with Sage environment variables set. Don't forget
to exit when you are done. Beware:
* Do not do anything with other
It didn't work for me. :(
sage: g=Graph([[0,1],[2,3]])
sage: g.lovasz_theta()
---
ValueErrorTraceback (most recent call last)
in ()
> 1 g.lovasz_theta()
/home/shhu/Documents/SageMath/local
all this works for me just fine:
sage: g=Graph([[0,1],[2,3]])
sage: g.lovasz_theta()
2.0
sage: G = graphs.CycleGraph(7)
sage: V = Set(G.vertices())
sage: L = []
sage: for s in V.subsets():
: L.append(G.subgraph(s))
:
sage: L[68].lovasz_theta()
2.0
Can you try the following:
sag
On 05/06/2016 09:50 PM, Marc Tardif wrote:
> Hi folks,
>
> When comparing the product of two square roots to the square root of
> the product using two scalars, I get True:
>
> sage: bool(sqrt(pi)*sqrt(2) == sqrt(pi*2))
> True
>
> But when using a variable instead of one of the scalars,
Hi,
I downloaded sage-7.0.ova and imported it into VMWare.
When I boot the VM I see only jupyter, and not the notebook as described
here: https://wiki.sagemath.org/SageAppliance/SageMath-7
I even cannot connect to localhost:8000, because the VM does not have a
networking adapter besides lo.
Is
Hi folks,
When comparing the product of two square roots to the square root of
the product using two scalars, I get True:
sage: bool(sqrt(pi)*sqrt(2) == sqrt(pi*2))
True
But when using a variable instead of one of the scalars, I get False:
sage: n = var('n')
sage: assume(n>=0)
The adjacency matrix of the graph is
[0 1 0 0]
[1 0 0 0]
[0 0 0 1]
[0 0 1 0]
在 2016年5月10日星期二 UTC+3下午4:30:06,Dima Pasechnik写道:
>
> What is your L[68] ?
> This is probably something like a graph without edges...
>
> On Tuesday, May 10, 2016 at 1:53:17 PM UTC+1, Sihuang Hu wrote:
>>
>> Thanks for t
What is your L[68] ?
This is probably something like a graph without edges...
On Tuesday, May 10, 2016 at 1:53:17 PM UTC+1, Sihuang Hu wrote:
>
> Thanks for the comments.
> I have installed package 'csdp' before. I got this error after I installed
> it.
>
> 在 2016年5月10日星期二 UTC+3下午3:32:59,vdelecro
Thanks for the comments.
I have installed package 'csdp' before. I got this error after I installed
it.
在 2016年5月10日星期二 UTC+3下午3:32:59,vdelecroix写道:
>
> The error you get is quite strange. On my computer with sage-7.1 I got
>
> sage: graphs.CycleGraph(7).lovasz_theta()
> Traceback (most recent
The error you get is quite strange. On my computer with sage-7.1 I got
sage: graphs.CycleGraph(7).lovasz_theta()
Traceback (most recent call last):
...
PackageNotFoundError: the package 'csdp' was not found. You can install
it by running 'sage -i csdp' in a shell
Which is very explicit about w
Hi guys,
When I try to compute the lovasz theta number of some graph, it says that
*ValueError: could not convert string to float: failed.:*G =
graphs.CycleGraph(7)
V = Set(G.vertices())
L = []
for s in V.subsets():
L.append(G.subgraph(s))
L[68].lovasz_theta()
---
23 matches
Mail list logo