[julia-users] Re: Immutable type modification of SparseMatrixCSC

2016-11-05 Thread Corbin Foucart
gt; returned from rmCol is used in the future, not the original A. > > Jared Crean > > > On Saturday, November 5, 2016 at 5:07:45 PM UTC-4, Corbin Foucart wrote: >> >> The SparseMatrixCSC type is immutable, which I understand to mean that I >> must respect the

[julia-users] Immutable type modification of SparseMatrixCSC

2016-11-05 Thread Corbin Foucart
The SparseMatrixCSC type is immutable, which I understand to mean that I must respect the types of the attributes of SparseMatrixCSC types, as well as not changing the attributes themselves. The following gives a loadError (type is immutable). I am confused that I can modify the colptr and row

[julia-users] Inclusion of local modules in pyjulia

2016-10-25 Thread Corbin Foucart
Suppose that I have a local module in the current directory called 'myModule.jl': module x() = "hello" end In a Julia console, I can do the following: > include("myModule.jl") > myModule.x() "hello" I can do a whos() to check that indeed myModule is in the namespace. I am attempting to call

[julia-users] Re: Importing Python data to Julia

2016-10-25 Thread Corbin Foucart
That worked; thanks! On Tuesday, October 25, 2016 at 6:36:25 AM UTC-4, Christoph Ortner wrote: > > I haven't tried, but I think it should be > > result = j.inv(randMat) > > > On Tuesday, 25 October 2016 05:05:47 UTC+1, Corbin Foucart wrote: >> >> How? I

[julia-users] Re: Importing Python data to Julia

2016-10-24 Thread Corbin Foucart
v(julia_randmat)") # ^^^ is this how I would move the result back to python? On Tuesday, October 18, 2016 at 7:50:03 PM UTC-4, Steven G. Johnson wrote: > > > > On Tuesday, October 18, 2016 at 4:42:51 PM UTC-4, Corbin Foucart wrote: >> >> 2) Call Julia code direct

[julia-users] Re: pyjulia initialization error

2016-10-24 Thread Corbin Foucart
h the correct binary. On Monday, October 24, 2016 at 5:38:04 PM UTC-4, Corbin Foucart wrote: > > I would like to use pyjulia, but I am having some issue setting it up in > my python virtual environment. I have followed the instructions here: > https://github.com/JuliaPy/pyjulia &

[julia-users] pyjulia initialization error

2016-10-24 Thread Corbin Foucart
I would like to use pyjulia, but I am having some issue setting it up in my python virtual environment. I have followed the instructions here: https://github.com/JuliaPy/pyjulia I am running the following script: import julia j = julia.Julia(jl_runtime_path='/share/apps/julia/julia-3c9d75391

[julia-users] Re: Importing Python data to Julia

2016-10-18 Thread Corbin Foucart
gt; > > On Tuesday, October 18, 2016 at 1:42:51 PM UTC-7, Corbin Foucart wrote: >> >> Suppose that I have a large Python code; I would like to use Julia to >> operate on the python workspace variables at certain locations in the code. >> What occurs to me is to either: >

[julia-users] Re: Importing Python data to Julia

2016-10-18 Thread Corbin Foucart
such a solver would be much faster in Julia as well. On Tuesday, October 18, 2016 at 4:56:14 PM UTC-4, Cedric St-Jean wrote: > > Could you provide a more concrete example of what you're trying to do? > > On Tuesday, October 18, 2016 at 4:42:51 PM UTC-4, Corbin Foucart wrote: >

[julia-users] Importing Python data to Julia

2016-10-18 Thread Corbin Foucart
Suppose that I have a large Python code; I would like to use Julia to operate on the python workspace variables at certain locations in the code. What occurs to me is to either: 1) write out all python workspace data to file, read data into julia, operate, save, read back into python (seems bad