One could also remove all types and only rely on duck typing. Then one will
want to initialize r with something like zero(zero(x[1])+zero(y[1])). And
the same in the if statement. This function would run at the same. I still
like to specify types as this allows me to restrict input parameters.
On Thursday, April 24, 2014 11:57:33 PM UTC-7, Tomas Lycken wrote:
And as soon as you start working with complex analysis, I'm not entirely
sure the trapezoidal rule is valid at all. It might just be because the
article author was lazy, but the Wikipedia article only talks about
integrals
in old Julia version works this code:
stringvector=[string1,string2,string3]';
today :
ERROR: no method conj(ASCIIString)
in ctranspose at array.jl:1283
how today to create horizontal string vector ?
Paul
You can use the transpose .' instead of the conjugate transpose, i.e.
julia [Andreas,Noack,Jensen].'
1x3 Array{ASCIIString,2}:
Andreas Noack Jensen
or use white space
julia [Andreas Noack Jensen]
1x3 Array{ASCIIString,2}:
Andreas Noack Jensen
2014-04-25 10:47 GMT+02:00 paul analyst
thx Andreas, I see the new, small dot:)
Paul
W dniu piątek, 25 kwietnia 2014 10:50:44 UTC+2 użytkownik Andreas Noack
Jensen napisał:
You can use the transpose .' instead of the conjugate transpose, i.e.
julia [Andreas,Noack,Jensen].'
1x3 Array{ASCIIString,2}:
Andreas Noack Jensen
See also https://github.com/JuliaLang/julia/issues/6395
kl. 10:53:50 UTC+2 fredag 25. april 2014 skrev paul analyst følgende:
thx Andreas, I see the new, small dot:)
Paul
W dniu piątek, 25 kwietnia 2014 10:50:44 UTC+2 użytkownik Andreas Noack
Jensen napisał:
You can use the transpose
Nothing simple-to-use is yet in Base (but see
https://github.com/JuliaLang/julia/pull/6437), but there are several options
(roughly in the order easier-but-slower to harder-but-faster):
- The Iterators package
- The Grid package's Counter type
- The Cartesian package (if you're running 0.3, an
On Friday, April 25, 2014 01:12:15 AM Gunnar Farnebäck wrote:
The padarray function in the Images package can solve your problem or give
you inspiration if you want to do it differently.
...a very nice function indeed, which I swiped from Gunnar! (Thanks!)
--Tim
Den fredagen den 25:e april
Exactly. That's what I do quite often with complex line integrals, where
one vector is real: a [0,1]-parametrization of the curve, and the other
complex: the value of a complex function on the curve. And indeed, this
works very well for closed circle integrals in the complex plane, for
example
Hello!
I want to create a multidimensional array of dicts, say 4x4. My first guess
was to use the function fill()
julia my_array_of_dicts = fill(Dict(), 4, 4)
I want to include a new element to one of the dicts, say in position 2,2. So
julia my_array_of_dicts[2,2][somekey] = [somevalue]
but
You can use a list comprehension, so that you actually create 16
dictionaries.
my_array_of_dicts = [Dict() for i = 1:4 , y = 1:4]
Ivar
kl. 12:24:22 UTC+2 fredag 25. april 2014 skrev joanenric barcelo følgende:
Hello!
I want to create a multidimensional array of dicts, say 4x4. My first
Thinking more about this.
Would it be more useful for fill() and fill!() to take copies of mutable
objects? I can't really see a use case for fill that fills an array with
pointers to the same object.
Ivar
kl. 12:29:20 UTC+2 fredag 25. april 2014 skrev Ivar Nesje følgende:
You can use a
I think so, yeah. If you actually need to fill an array with pointers to
the same object, `repeat` or something along those lines is a more
descriptive name.
// T
On Friday, April 25, 2014 1:08:14 PM UTC+2, Ivar Nesje wrote:
Thinking more about this.
Would it be more useful for fill() and
Hi All,
I also tried to submit the julia jobs on the cluster but failed. I wrote
the job script as follows:
f
*or((i = 1; i 10; i++))doecho # cd /data#PBS -l walltime=00:10:00module
add gcc/4.7.2module add julia/0.2.0module load
juliainclude(test.jl)test($i)test1job$i;qsub
I've noticed that Winston is getting nicer and nicer and works very well in
Windows now. Sorry for the elementary question, but couldn't find this in
the docs or mailing lists: Is there a way to close a Winston plot window
from a Julia script? So far the only way I've found to do this is to
Hi,
I wonder how ready is julia to be used in iOS? For logic only? For call
obj-c/coccoa code?
First hurdle is getting Julia to run on an ARM processor,
see https://github.com/JuliaLang/julia/issues/3134
If Objective-C code has the same ABI as conventional C, then I imagine
Julia's ccall's should work the same
(http://nbviewer.ipython.org/gist/evanmiller/9022903 looks relevant?).
Don't
There wasn't, but i've added a `closefig` function.
-Mike
On Fri, Apr 25, 2014 at 11:05 AM, Peter Simon psimon0...@gmail.com wrote:
I've noticed that Winston is getting nicer and nicer and works very well in
Windows now. Sorry for the elementary question, but couldn't find this in
the docs
It's also possible to run an IJulia notebook from a server and access it on
iOS, either using a web service or by SSH tunneling.
On Friday, April 25, 2014 2:12:26 PM UTC-4, ma...@elmalabarista.com wrote:
I wonder how ready is julia to be used in iOS? For logic only? For call
obj-c/coccoa
See https://github.com/JuliaLang/julia/issues/6179
and by list i mean array. or set. i just want to be able to iterate over
it later. efficiency is neither here nor there.
On Friday, 25 April 2014 20:07:50 UTC-3, andrew cooke wrote:
is there some simple, compact way way to add an element or list to a list?
say i want a list to be [1,2]
really i'm asking if there's an idiomatic way to do the kind of thing you
do with linked lists (usually, in functional languages) in julia...
On Friday, 25 April 2014 20:34:43 UTC-3, andrew cooke wrote:
oh, cute.
no, it's not what i was looking for, unfortunately. i just used 1, 2 and
3
Is there a reason why the following two calls to eigs order the eigenvalues
differently? The first `mat1` is numerically not symmetric but I would have
still guessed the ordering of the magnitude of the eigenvalues would be the
same as those for `mat2`?
julia A = rand(4,4);
julia mat1 = A.'
You can do:
[1, 2, (flag ? 3 : [])]
or:
tuple(1, 2, (flag ? (3,) : ())...)
On Friday, April 25, 2014 7:35:49 PM UTC-4, andrew cooke wrote:
really i'm asking if there's an idiomatic way to do the kind of thing you
do with linked lists (usually, in functional languages) in julia...
On
huh. i do not understand why that works and what i posted earlier did
not. anyway, thanks. andrew
On Friday, 25 April 2014 21:02:41 UTC-3, Simon Kornblith wrote:
You can do:
[1, 2, (flag ? 3 : [])]
or:
tuple(1, 2, (flag ? (3,) : ())...)
On Friday, April 25, 2014 7:35:49 PM UTC-4,
oh it's the spaces are column vector thing.
On Friday, 25 April 2014 21:26:31 UTC-3, andrew cooke wrote:
huh. i do not understand why that works and what i posted earlier did
not. anyway, thanks. andrew
On Friday, 25 April 2014 21:02:41 UTC-3, Simon Kornblith wrote:
You can do:
[1,
Hi,
What is the recommended GTK+ to use with Winston? I installed GTK+3 using
the following Homebrew recipe:
require 'formula'
class Gtkx3Quartz Formula
homepage 'http://gtk.org/'
url 'http://ftp.gnome.org/pub/gnome/sources/gtk+/3.8/gtk+-3.8.1.tar.xz'
sha256
Any progress on this? Trying to build Julia on a beaglebone black. Would
be happy to share the logs.
_Chris
On Friday, November 1, 2013 4:21:03 AM UTC-4, Viral Shah wrote:
For 0.3, we are going to try migrating to MCJIT. LLVM is likely to have
multi-module support in the 3.4 release -
Different LAPACK routines (and different algorithms) are used for
real-symmetric and unsymmetric matrices. The former sorts the eigenvalues
in ascending order, while the latter provides few guarantees about ordering.
On Friday, April 25, 2014 7:37:16 PM UTC-4, Ethan Anderes wrote:
Is there a
Thanks Steven. I figured it was something like that. I was hoping that since
the non-symmetry was just numerical error I would still get the eigenvalues
sorted in the same order as the symmetric case. It does seem unsatisfying that
such a small numerical error can cause such different behavior
I would love to give this a try, as many things are in place now. Is there
a reasonably beefy arm machine that I can log into or buy cheaply?
-viral
On 26-Apr-2014 8:23 am, Christopher Fusting cfust...@gmail.com wrote:
Any progress on this? Trying to build Julia on a beaglebone black. Would
Please do share logs.
-viral
On 26-Apr-2014 8:23 am, Christopher Fusting cfust...@gmail.com wrote:
Any progress on this? Trying to build Julia on a beaglebone black. Would
be happy to share the logs.
_Chris
On Friday, November 1, 2013 4:21:03 AM UTC-4, Viral Shah wrote:
For 0.3, we are
You can find the log here:
https://gist.github.com/cfusting/11311422
The Beaglebone Black is pretty beefy and fairly cheap if you are looking
for a good testing environment. I can provide you with a user account on
mine in the meantime although I cannot guarantee uptime.
Cheers,
_Chris
On
Two recommendations for a beefy arm machine:
Utilite Pro
http://utilite-computer.com/web/utilite-models
Odroid U2/U3
http://hardkernel.com/main/products/prdt_info.php
I have both and especially recommend the latter for compute (the former
has faster networking and more ports). Some folks
34 matches
Mail list logo