That's fixable. I spent a bunch of time last year making it much easier to
build dll's of the COIN-OR solvers. There are 64-bit binaries
here
https://projects.coin-or.org/CoinMP/browser/releases/1.7.6/CoinMP/CoinMP.zip
and an issue open here https://github.com/JuliaOpt/Cbc.jl/issues/5
On
Hi Dominique,
This will definitely be very useful for accessing the large array of
problem instances written in AMPL.
As for writing solvers in Julia around this format, I'm admittedly biased
but I don't think it's an ideal approach. We already have a pure-Julia
implementation of AD for
methodswith is broken - https://github.com/JuliaLang/julia/issues/5722
https://github.com/JuliaLang/julia/issues/5067
On Saturday, 12 April 2014 13:07:07 UTC-3, jason-sage wrote:
On 4/12/14, 10:59, Ethan Anderes wrote:
@jason-sage
You can use methodswith to discover methods on a type. I
Hi, I want to write a tcp server use julia , how to daemonize it?
thanks!
Note that to match the functionality of our @printf macro, it has to handle
different types of arguments correctly, which is non-trivial. Not saying
it's impossible, but it isn't easy.
On Sat, Apr 12, 2014 at 6:08 PM, Kevin Squire kevin.squ...@gmail.comwrote:
I have a port of a BSD printf
I was going to write a post asking how to do this, but it turns out it just
works. So instead I am posting to say how awesome you guys are. Thanks!
julia function baz()
function qux(a)
generic
end
function qux(a::Uint8)
Uint8
Just installed Julia 64bit for Windows (downloaded from the official site)
and added Ijulia and Gadfly packages w/o errors. When using gadfly Julia
just cruhed w/o any message. See attached image
any help appreciated...
Thanks,
Ariel
attachment: Capture.PNG
:-)
On Sun, Apr 13, 2014 at 2:41 PM, andrew cooke and...@acooke.org wrote:
julia function baz(flag)
function qux(a)
generic
end
if flag
function qux(a::Uint8)
Uint8
end
end
Likewise I am having problems with @sprintf
Is this because @sprinf is macro? The shorthand of expanding a printf with
format the contents of an array is desirable. I would have expected the
... operator to take an array of length 2 and turn it into 2 arguments.
julia X=[1 2]
1x2
As far as the macro is concerned, the splat isn’t executed: it’s just
additional syntax that gets taken in as a whole expression.
The contrast between how a function with splatting works and how a macro with
splatting works might be helpful:
julia function splat(a, b...)
println(a)
So what's the preferred Julia syntax to achieve what I meant here:
julia fmt = %8.1e;
julia @sprintf(fmt, 3.1415)
ERROR: first or second argument must be a format string
On Sunday, April 13, 2014 1:31:57 PM UTC-7, John Myles White wrote:
As far as the macro is concerned, the splat isn’t
It occurs to me that, if you really need this, you can define
sprintf(args...) = eval(:@sprintf($(args...)))
It's not pretty or ideal in terms of performance, but it will do the job.
fmt = %8.1e
sprintf(fmt, 3.141) #= 3.1e+00
On Sunday, 13 April 2014 22:47:12 UTC+1, Dominique Orban wrote:
Please don't do this – or if you do and your program is amazingly slow,
then consider yourself warned. You can define a custom formatting function
pretty easily:
julia fmt = %8.1e
%8.1e
julia @eval dofmt(x) = @sprintf($fmt, x)
dofmt (generic function with 1 method)
julia dofmt(1)
1.0e+00
##readline vs. readln
Seems like a lot asking for just 2 characters or even talking about it.
It does make a difference though; It does distinguish Julia from other
languages. Does it need those 2 letters? It does feel clearer, but at
what expense? I'm not sure actually. But consider
On Sunday, 13 April 2014 19:18:31 UTC-3, klim...@googlemail.com wrote:
(Also note that division does not look like the inverse operation of
multiplication, since e.g. A=[1 2 3]; B=[1, 2, 4]; A*B/B == A returns
false.)
what would you expect to happen here? you're taking a scalar product
Sure. This was just a side note. I would expect that a notation A*B/B ==
A to be always true (except for division by zero of course), since division
the inverse process of multiplication, like for scalar values (a*b/b == a
or A.*B./B .== A).
Am Montag, 14. April 2014 00:38:57 UTC+2 schrieb
On Sun, Apr 13, 2014 at 6:18 PM, klimah...@googlemail.com wrote:
Am Freitag, 4. April 2014 00:45:37 UTC+2 schrieb klim...@googlemail.com:Hi
Julia users,
- array indexing: introduce with negative number -1,-2,... (instead of or
additionally to end, end-1)
No comments on that?
Negative
Multiplication is not generally invertible. This is true of real numbers at
zero and true of floating-point numbers at many non-zero values. For
vectors and matrices, multiplication is highly non-invertible. Given this
feature of reality, I'm not sure what else we can do.
On Sun, Apr 13, 2014 at
On Friday, April 11, 2014 8:45:43 AM UTC-4, Sheehan Olver wrote:
Was hoping for something one line on Julia
You could use the animation interface of Matplotlib from PyPlot.
On Saturday, April 12, 2014 3:40:32 PM UTC-4, Deepraj Paul wrote:
Can the combo of PyCall in Julia be Interfaced with PyCUDA effectively?
I don't see why not; at first glance, everything in the PyCUDA interface
looks like stuff that PyCall supports.
Technically, the international standard megabyte (MB) is 1000^2 bytes.
If you want 2^20 bytes, that is a mebibyte (MiB).
On Friday, April 11, 2014 12:30:11 AM UTC-4, Ivar Nesje wrote:
Note that hard disc manufacturers use 1000^2 (it makes disks look bigger),
and Apple has followed their
I looked into PyPlot, but it seems that animation doesn't work in IJulia?
The pyplot gui command didn't work for me (and pyplot doesn't work from
the command line). Maybe I just need to update my matplotlib.
On 14 Apr 2014, at 9:33 am, Steven G. Johnson stevenj@gmail.com wrote:
Hi,
I have two sparse matrix. For example A = sparse(i,j,v); b =
sparse(2,1,-1,10,1);
I want to solve the equation Ax = b... when I try to do that: A\b, it
will return error:
ERROR: no method
A_ldiv_B!(SparseMatrixCSC{Float64,Int64},SparseMatrixCSC{Int64,Int64})
in \ at
We know that the extremes of verbosity (e.g. C) and conciseness (e.g.
perl) are 'bad'. But why? Because using C generally means writing more
code, which takes more time. Whereas Perl is 'bad' because being the
human interpreter to read and understand its very symbol dense syntax
is slow, so
On Sunday, April 13, 2014 6:36:49 PM UTC-4, bvauti...@gmail.com wrote:
##readline vs. readln
Seems like a lot asking for just 2 characters or even talking about it.
It does make a difference though; It does distinguish Julia from other
languages. Does it need those 2 letters? It does
Hi all,
I have a small issue. Being a matlab user, 'ans' is familiar to be:
So I did the following in julia on windows 7:
julia vec(ones(1,10))
10-element Array{Float64,1}:
1.0
1.0
1.0
1.0
1.0
1.0
1.0
1.0
1.0
1.0
julia
julia ans
But nothing came out after ans, actually 'ans'
One option is :
# Create a RemoteRef on each worker to store the data
rr_files = map(x-RemoteRef(x), workers())
# Create a RemoteRef on each worker to store results
rr_results = map(x-RemoteRef(x), workers())
for i,p in enumerate(workers())
remotecall_wait(p, load, files_on_ith_worker,
On Monday, April 14, 2014 12:41:05 AM UTC-4, Jameson wrote:
We know that the extremes of verbosity (e.g. C) and conciseness (e.g.
perl) are 'bad'. But why? Because using C generally means writing more
code, which takes more time. Whereas Perl is 'bad' because being the
human interpreter
I'm guessing you are using Julia 0.3? What terminal are you using (or
how do you launch julia)?
Post REPL.jl merge, there are still some cleanup items that need to be
addressed on Windows, mostly just needing full coverage testing and
code iterations to get all four known terminal combinations to
29 matches
Mail list logo