Thanks for the advice
I tried to find an original function in order to guarantee its speed. I
thought the for loops written by me could not compare with that since
seemlingly I made no performance effort.
Do you mean the speed of for loops in Julia without other improvement can
compete with
Yes, C code transliterated into Julia typically run within 2x of the
original. There are some of corner cases though, where Julia has safer
semantics that slow down execution. Julia checks that when you access a
legal part of an array when you index it. The @inbounds macro can give you
the
Sorry, just realized the my last modifications were logically incorrect.
Having the newpath variable is essential.
On Monday, September 22, 2014 12:09:34 PM UTC+3, Mohammed El-Beltagy wrote:
Examining your Viterbi Julia implementation, I noticed that you expand
that path by
newpath[y] = (
On Monday, September 22, 2014 02:23:59 AM Ivar Nesje wrote:
When matlab recognizes your
problem, and swaps in a hand tuned implementation, it is hard to compete.
I disagree; it may be hard to do _better_, but it's not usually hard to
compete. At least in my own tests, I'm mildly offended :-)
In a module i am working on I have quite a few plotting functions, all
contained within a file vis.jl.
To plot I use Gadfly. The problem is that on my machine at least, Gadfly
takes an awful long time to load up, which my module inherits.
How can I do some kind of conditional module loading,
I've always used the \Q...\E construct for this, which seems to generally
work well – it quotes the ... part to not have special regex meaning.
On Fri, Sep 19, 2014 at 10:18 AM, Robert Feldt robert.fe...@gmail.com
wrote:
Ok, since I could not find a ready-made solution I went ahead and the code
People seem to use emacs, vi, TextMate, Sublime Text, Light Table, etc. to
do Julia editing. The lack of a debugger that doesn't require source code
modification like Debug.jl does is certainly an issue and a lot of progress
has been made on that front over the summer. There are still a few
I keep current with the Julia git repository on several machines, some of
them have different directory structures (NFS, etc.). I want to use them
all as as process targets, but I don't seem to be able to change the
default Julia home for them.
Is it possible to specify multiple Julia homes
Thanks to all for your ideas.
Independently of Gray, I arrived at something pretty similar, as follows.
It then turned out that this wasn't in the end what I needed for my
package, but I am working on something very similar.
transform(a::BigFloat) = a
transform(a::Number) = :(
and inlining the function seems to allocate even much more memory (almost
25 times more)...
Any reason why?
data = rand(10^6)
f1(data) = [sin(i) for i in data]
julia @time f1(data);
elapsed time: 0.023104734 seconds (8000128 bytes allocated)
julia @time [sin(i) for i in data];
elapsed time:
On Monday, September 22, 2014 4:46:31 PM UTC-7, Carlos P wrote:
and inlining the function seems to allocate even much more memory (almost
25 times more)...
Any reason why?
data = rand(10^6)
f1(data) = [sin(i) for i in data]
julia @time f1(data);
elapsed time: 0.023104734 seconds
Just updated to reportedly 0.3.1 but displayed as 0.4.0-dev+543.
println to file now get something like the following. Is this
intended? How can I get normal decimals?
162038.8f0,float16(160.2),0.26118204f0
_
_ _ _(_)_ | A fresh approach to technical computing
Hi all,
After upgrading IPython, I'm no longer able to use IJulia Notebook.
ipython console --profile julia
seems to work but,
ipython notebook --profile julia
hangs after the fisrt command, and
ipython qtconsole --profile julia
gives me the following error:
Just another tidbit I've noticed with regards to the scatter principle;
it seems it only inhibits vectorization when used in the *assigning*
matrix/vector,
as opposed to the location where data is being fetched (so setindex!, not
getindex). The following code on a sparse matrix *is able *to
Try running `Pkg.build(IJulia)`
On Mon, Sep 22, 2014 at 8:43 PM, nirinA raseliarison
nirina.raseliari...@gmail.com wrote:
Hi all,
After upgrading IPython, I'm no longer able to use IJulia Notebook.
ipython console --profile julia
seems to work but,
ipython notebook
The prompt is defined here:
https://github.com/JuliaLang/julia/blob/2eee58701052caf6b6927604732e197b1054ac7b/base/REPL.jl#L191
I was looking into it so I could number lines for my SaveREPL.jl package,
but it looked like a lot of refactoring.
On Mon, Sep 22, 2014 at 10:10 PM, cdm
No, that's not the right REPL. The one in the terminal is the
LineEditREPL. We need better repl configuration, but you can change
the prompt like this:
Base.active_repl.interface.modes[1].prompt=abc
On Mon, Sep 22, 2014 at 11:34 PM, Steve Kelly kd2...@gmail.com wrote:
The prompt is defined
A number like these messes up DataFrames, which considers it as a string
which then can not be easily converted to a float. Any advice on what
to do?
On 2014年09月23日 09:31, K Leo wrote:
Just updated to reportedly 0.3.1 but displayed as 0.4.0-dev+543.
println to file now get something like
I am seeing ambiguous method definitions when using both the Images and the
DataArray packages. I have already done Pkg.update() and
Pkg.build(Images) and Pkg.build(DataArrays). Is there anything else
that I could have munged in the environment to trigger this? More info
below (but not all
19 matches
Mail list logo