Yes, the help system in 0.4 does search package documentation as well.
— Mike
On Sunday, 1 February 2015 03:32:26 UTC+2, i.cos...@me.com wrote:
Ok, will Lexicon be baked into 0.4? If so, then the instructions in the
latest documentation makes sense:
If you wanted to implement such an algorithm, you would need to robust-ify
the multiplication as well, using a two-product style algorithm: this
paper goes into a lot of detail:
http://www.ti3.tu-harburg.de/paper/rump/OgRuOi05.pdf
Alternatively, you could use full double-double arithmetic: see
Hi all-
I am trying to figure out a graceful way to store output from a model
simulation. Each simulated trial produces a single reaction time, a single
choice and a vector of visual fixations generated by a Markov chain. The
complicating factor is that the size of the vector of visual
Hi all,
I'm a new Julia user and I'm starting to write a high-level multi data type
fits file reader and writer akin to IDL's mwrfits/mrdfits. I got most of
the dynamics figured out by I can't quite make a custom structure. For
example, I would like something like:
element = {name::string,
I realize this is a more developer issue, but I'm wondering if anyone else
thinks it would be a good idea for select! to be changed to not return A[r]
(which allocates memory).
I think it could return (A[r.start], A[r.stop]), sub(A, r) or even
nothing. As it stands it seems like a
Have you seen
https://github.com/JuliaAstro/FITSIO.jl
Off-topic, but it would be awesome to have FITS integrated into Images.jl. I
could help with the integration, but it is pretty well documented:
https://github.com/timholy/Images.jl/blob/master/doc/extendingIO.md
Further discussion could
This is something I've been thinking about as well, and overloading `print`
etc. to work with markdown is definitely doable. I'm not sure how it would
work in IJulia, but it would definitely be ok in the terminal.
Use md unless you're writing inline docs (you might have to do a using
Thanks Milan,
I defined Element as you suggested and created
*data=(Element, 2)*
but
*julia **data[1].lambda=[1., 2.0]*
*ERROR: type DataType has no field lambda*
Now that I have the structure data how do I access the branch members?
On Sunday, February 1, 2015 at 8:07:51 PM UTC+11,
Le dimanche 01 février 2015 à 01:24 -0800, alex codoreanu a écrit :
Thanks Milan,
I defined Element as you suggested and created
data=(Element, 2)
What is this line supposed to do? All it does now is assign a tuple
containing the Element type, and the integer value 2.
If you want to
I've tried (but failed), with Julia 0.4, to use Markdown strings doc . .
. as messages, e.g., error messages or just to make some complex program
output more readable.
If, in a REPL or IJulia, I just write
docblah `code` bleh
in a single line, then this shows ok. But of course in a
I was delighted to find that Julia has robust summation algorithms
implemented in Base.
In my code I also need robust inner product. Is that implemented as well? I
couldn't find it, but it is easy to write for myself
(trivially sum_kbn(x.*y), but this allocates extra memory)
But are there
That worked but I had to use:
data = Array(Element, 2)
Thanks for the info!
On Sunday, February 1, 2015 at 8:57:23 PM UTC+11, Milan Bouchet-Valat wrote:
Le dimanche 01 février 2015 à 01:24 -0800, alex codoreanu a écrit :
Thanks Milan,
I defined Element as you suggested and
James, in case you haven't seen it, this is treated _extensively_ in the FAQ.
Make a nice cup of tea and pull up a comfy chair before you start reading :-).
--Tim
On Sunday, February 01, 2015 01:16:19 AM Jutho wrote:
As long as not all parameters of a parametric concrete type are fully
Can't help you with the markdown issue, but your Images.jl installation is
borked. This happens all-to-often for OSX users. See
https://github.com/timholy/Images.jl#installation for ways to fix; if none of
the linked methods work, please do open an issue.
--Tim
On Saturday, January 31, 2015
It's a long-standing issue that local and anonymous functions allocate (and
have poor performance). FastAnonymous.jl and similar packages give you one way
around that.
--Tim
On Saturday, January 31, 2015 08:03:37 PM Kirill Ignatiev wrote:
On Saturday, 31 January 2015 21:54:54 UTC-5, Jameson
Is this an existing issue somewhere?
On Sunday, 1 February 2015 12:18:42 UTC, Christoph Ortner wrote:
Thanks for the clarification. It would be really great to have this
functionality, especially, if it can be combined with MathJax!
Thanks,
Christoph
Thanks for the clarification. It would be really great to have this
functionality, especially, if it can be combined with MathJax!
Thanks,
Christoph
No, feel free to open one if you want (ping me too).
On 1 February 2015 at 12:18, Christoph Ortner christophortn...@gmail.com
wrote:
Is this an existing issue somewhere?
On Sunday, 1 February 2015 12:18:42 UTC, Christoph Ortner wrote:
Thanks for the clarification. It would be really great
Le dimanche 01 février 2015 à 00:35 -0800, alex codoreanu a écrit :
Hi all,
I'm a new Julia user and I'm starting to write a high-level multi data
type fits file reader and writer akin to IDL's mwrfits/mrdfits. I got
most of the dynamics figured out by I can't quite make a custom
As long as not all parameters of a parametric concrete type are fully
specified, the type is treated as abstract. So in both cases your collection
would be of abstract elements and they would not be stored packed in memory. I
don't think what you are requesting is possible, but I might be
I have somethink like this :
rand(4,4).-eye(4,4)*5
Qestion : how to simpler subtracted from the diagonal value(5) ,
Without multiplying matrices I have great and I have to simplify the
code.
Paul
Thank you so much Jiahao!
I see my guess was correct.
What a nice group.
2015-01-31 16:50 GMT-06:00 Jiahao Chen jia...@mit.edu:
Your custom particles type is not iterable, i.e. does not have start, next
and done methods defined. See the manual for details of the iterable
interface.
Note that
Thx, nice. Is the fast way in Julia ?
Paul
W dniu niedziela, 1 lutego 2015 17:18:03 UTC+1 użytkownik Andreas Noack
napisał:
This is cheaper: rand(4,4) - 5*I because 5I is a special type that doesn't
store all elements.
2015-02-01 11:03 GMT-05:00 paul analyst paul.a...@mail.com javascript:
I realise I didn't actually answer your question: I can't speak as to
whether it will be accepted in Base (you will probably have to open an
issue or pull request to start a discussion), but at the very least it
would be useful to at least have in a package somewhere. If you don't want
to
I have two versions of an example function that calculates a number by
looping over all pair of points. In the first one I use a 2d-array and
access points with [:,i] syntax to get the coordinates. In the second
version of the function I instead creates an array of Point-types (each
Point has
If you're using sub or slice, your performance should be vastly better on 0.4
than 0.3, but as you observed it will still be awful. In the long run (maybe
even by the time 0.4 is released?), we hope that in such loops sub/slice won't
actually create a new object and allocate memory---it will be
I think so, but it neither take long time
julia let
A = rand(4,4);
@time for i = 1:10^6;A - 5.0*eye(4);end
end;
elapsed time: 0.177621144 seconds (534 MB allocated, 5.71% gc time in 25
pauses with 0 full sweep)
julia let
A = rand(4,4);
@time for i =
And more generally, for all types that makes sense to convert between, you
can use the convert function
convert(String, :blah)
(or maybe better, to avoid type instability issues)
convert(ASCIIString, :blah)
convert(UTF8String, :blah)
In 0.4 the default constructor for all types will fallback
This is cheaper: rand(4,4) - 5*I because 5I is a special type that doesn't
store all elements.
2015-02-01 11:03 GMT-05:00 paul analyst paul.anal...@mail.com:
I have somethink like this :
rand(4,4).-eye(4,4)*5
Qestion : how to simpler subtracted from the diagonal value(5) ,
Without
Markdown.jl lives in base Julia now so it should probably go there.
On 1 February 2015 at 15:18, Christoph Ortner christophortn...@gmail.com
wrote:
should this go in Docile, Lexicon, or Julialang?
Christoph
thanks for the suggestions; indeed, Rumpf's paper is my main reference :)
for these things.
Le dimanche 01 février 2015 à 07:18 -0800, Arshak Navruzyan a écrit :
Hello,
A really basic question how do I turn a symbol into a string ?
:blah - blah
julia string(:blah)
blah
Easy, isn't it?
Regards
This issue will fix itself when `a[r]` returns a subarray with 0.4 (this
hasn't landed in master yet, and reminds me that the pending change will
require a huge documentation effort that change affect APIs).
The improved garbage collection that was merged in master recently will
likely greatly
should this go in Docile, Lexicon, or Julialang?
Christoph
Hello,
A really basic question how do I turn a symbol into a string ?
:blah - blah
Thanks
As you probably realized vcat makes a copy of the vector, so it is
inefficient when you use it repeatedly. Julia provides the push! and append!
functions
so that you can efficiently add elements to the end of a vector. There is
also a sizehint! function if you know how many elements there will
Hi,
I noticed that the sub function behaves differently in master and version
0.3.5, when handling data of type Array{Float64, 1}. I am not sure if the
change is intentional.
The following works as expected on Julia master:
*julia* *sub([1.0; 2; 3; 4], 1:3, :)*
but, fails in version 0.3.5
Thanks, that's kind of what I expected.
@Tim:
I found some stuff in there (and in the very helpful Types section), but
never saw explicitly whether a collection of unparametrized parametric type
offered any additional benefit to the compiler than one of just abstract
type. (i.e. Rational[] vs
With regards to the part about a data structure for storing your results,
http://docs.julialang.org/en/latest/manual/types/#composite-types might be
what you're looking for.
--Tim
On Sunday, February 01, 2015 11:34:50 AM Ivar Nesje wrote:
As you probably realized vcat makes a copy of the
created issue [10009](https://github.com/JuliaLang/julia/issues/10009)
Thank you Ivar and Tim. Using append gave me a 3 fold improvement in speed
and I'll look into the composite types.
On Sunday, February 1, 2015 at 9:31:40 AM UTC-5, Christopher Fisher wrote:
Hi all-
I am trying to figure out a graceful way to store output from a model
simulation. Each
many thanks - well I will implement it first of all, and then see where it
could go.
Christoph
Thanks for the reply. To start using 0.4 will I just have to gamble on a
nightly windows installer?
On Sunday, February 1, 2015 at 1:11:40 PM UTC-6, Ivar Nesje wrote:
This issue will fix itself when `a[r]` returns a subarray with 0.4 (this
hasn't landed in master yet, and reminds me that
Yes, if you are on windows, the nightly installer is the easiest way. Be sure
to keep the old downloads, and remember what versions you use so that you can
revert if a new change causes trouble with your setup. (How careful you must
be, depends on how acceptable it is for you to have a broken
SubArrays have been entirely rewritten in 0.4, and can do quite a few tricks
that the old ones can't. Changing the dimensionality of the view compared to
the parent, as in your example, is one of them. Here's another example of
something you simply can't do on 0.3:
julia A = reshape(1:15, 3,
Hi,
This is to share my finding of using the Juila for Matlab users.
I have a few big size data in csv format to open from the Juila and it
tooks at least 3 minutes to read. However, if I convert the file into
Matlab format (.mat) and load the file with Matlab, it tooks only one
minute.
I
46 matches
Mail list logo