Re: [julia-users] Re: How to install 0.4.5 on Ubuntu?

2016-07-15 Thread Tony Kelman
Every single one of your students really uses ubuntu? Also note that the ppa version of Julia is less capable than the generic binaries at dealing with arrays that are larger than 2 GB. If you would like to see the ubuntu PPA continue to be available, someone needs to volunteer to put the work

[julia-users] Re: Linear-Equation-System Solver("\") does not work reliably for the "Rational" Type

2016-07-15 Thread Dan
You can also try to use the pseudo-inverse $A^{+}$ in LaTeX. It is also called the Moore-Penrose inverse. In this case (with variable names in thread and `AP` used for the inverse) it is: AP = A'*inv(A*A') And then we have ('x' is the solution to the equations): x = AP*v and as it should be

Re: [julia-users] Re: How to install 0.4.5 on Ubuntu?

2016-07-15 Thread lovebufan
Agree. On Saturday, July 16, 2016 at 8:40:18 AM UTC+8, Uwe Fechner wrote: > > Well, you can always pin a version. See: > https://help.ubuntu.com/community/PinningHowto > > For me, using Ubuntu packages is the easiest way to go, in particular if I > have to explain students how > to install Juli

[julia-users] Re: Array of types, how to?

2016-07-15 Thread J Luis
Thanks again, seams to be working. Will test it more tomorrow. sábado, 16 de Julho de 2016 às 02:42:56 UTC+1, Chris Rackauckas escreveu: > > Oh, I guess it's just with most of the Base types you can do that (they > must have internal constructors for it). The convert issue comes up because > you

[julia-users] Re: Array of types, how to?

2016-07-15 Thread Chris Rackauckas
> > D() = new(Array{Float64,2}(),string()) > > (or anything like that). Since your Type is not mutable, you can just > overwrite what you put in there. > I meant because it's not immutable. If it was immutable, this won't exactly work because you won't be able to replace the string (though you

[julia-users] Re: Array of types, how to?

2016-07-15 Thread Chris Rackauckas
Oh, I guess it's just with most of the Base types you can do that (they must have internal constructors for it). The convert issue comes up because you have type checks on your fields, i.e. ::Type, otherwise you could just make an internal constructor which calls new(nothing,nothing). No sweat,

[julia-users] Re: Array of types, how to?

2016-07-15 Thread J Luis
Thanks. Didn't know one could create empty types,, but is it a 0.5 feature. Because on 0.4 julia> Di=D() ERROR: MethodError: `convert` has no method matching convert(::Type{D}) This may have arisen from a call to the constructor D(...), since type constructors fall back to convert methods. sáb

[julia-users] Re: Array of types, how to?

2016-07-15 Thread Chris Rackauckas
Well, you just made the type D, so you can make Array{D,n} or anything else like that. The Base types are not special in Julia, anywhere you can use a type, you can use your own. You can create an empty form of your type via dinstance = D(). You can then add to it by setting dinstance.data = so

[julia-users] Array of types, how to?

2016-07-15 Thread J Luis
Hi, I need to mimic what in Matlab is called a struct matrix. e.g. >> D=struct('data',{rand(2,2);rand(2,2)},'text',{'aa';'bb'}) D = 2x1 struct array with fields: data text in MEX I would use (and actually that's what I do in the C MEX code that I'm trying to port) mxCreateStructMa

Re: [julia-users] Re: How to install 0.4.5 on Ubuntu?

2016-07-15 Thread Uwe Fechner
Well, you can always pin a version. See: https://help.ubuntu.com/community/PinningHowto For me, using Ubuntu packages is the easiest way to go, in particular if I have to explain students how to install Julia. Uwe On Friday, July 15, 2016 at 10:16:59 PM UTC+2, Tony Kelman wrote: > > The ppa i

Re: [julia-users] Trying to understand parametric types as function arguments

2016-07-15 Thread 'Greg Plowman' via julia-users
Yes, thanks for that Tim. I can see that now. That's a nice workaround.

Re: [julia-users] Trying to understand parametric types as function arguments

2016-07-15 Thread 'Greg Plowman' via julia-users
Yes, thanks for that Tim. I can see that now. That's a nice workaround.

Re: [julia-users] ANN: steps towards 0.5.0 release [candidates]

2016-07-15 Thread 'Tobias Knopp' via julia-users
While it certainly would be ideal to always get perfect feedback on issues, it should be taken into account that Julia is a large piece of software and that only finite resources are working on it. Regarding when to release I think the core team just makes it right. During 0.3 we had effective

[julia-users] Re: Linear-Equation-System Solver("\") does not work reliably for the "Rational" Type

2016-07-15 Thread Kurolong
Turns out that it actually did fix the error, but i was too tired and confused things. BUT the components of the fractions were a lot too large. A Gauß-algorithm should have returned very managable fractions, not fractions of 300-decimal-place-numbers by 300-decimal-place-numbers. I suspect this

[julia-users] Re: Linear-Equation-System Solver("\") does not work reliably for the "Rational" Type

2016-07-15 Thread Kurolong
Unfortunately, switching to Rational{BigInt} did not help. same error :(

[julia-users] What does Base.box mean in code_warntype?

2016-07-15 Thread David Anthoff
I'm looking for type instabilities in a function with code_warntype, and I'm seeing lots of ``(Base.box)`` terms there. What do these mean? And should I be worried, i.e. is this an indication that something slow might be going on? -- David Anthoff University of California, Berkeley ht

[julia-users] Re: Linear-Equation-System Solver("\") does not work reliably for the "Rational" Type

2016-07-15 Thread Kurolong
The thing is, i did not write that i need an exact integer solution because i don't like approximation, but because i am working in N^n and rounding can cause catastrophically false results. The matrices i am working on are, however, not all that big (i would guess absolute max 30x100, usually m

Re: [julia-users] Re: How to install 0.4.5 on Ubuntu?

2016-07-15 Thread Tony Kelman
The ppa is barely maintained. nightlies have not been working very well at all, and I wouldn't expect to see 0.5 packaged very rapidly in juliareleases. Not everyone uses ubuntu, and doing that packaging is effort that is better spent elsewhere. The counterpoint of automatic updates is that you

[julia-users] Re: Linear-Equation-System Solver("\") does not work reliably for the "Rational" Type

2016-07-15 Thread Kurolong
The thing is, i did not write that i need an exact integer solution because i don't like approximation, but because i am working in N^n and rounding can cause catastrophically false results. The matrices i am working on are, however, not all that big (i would guess absolute max 30x100, usually m

Re: [julia-users] ANN: steps towards 0.5.0 release [candidates]

2016-07-15 Thread Stefan Karpinski
On Fri, Jul 15, 2016 at 2:42 PM, David Anthoff wrote: > > These are all performance regressions, and they can be a nuisance for some > but blocking for others, and then it probably comes down to how many users > there are in each category (or what e.g. the paying customers want). I > would encour

Re: [julia-users] ANN: steps towards 0.5.0 release [candidates]

2016-07-15 Thread Chris Rackauckas
I think they're doing it the proper way given the way the package ecosystem works. People who are really involved in the language really need a release candidate to test packages against. Deprecations need to be worked out, all the bugs need to be fixed, and some of the software structures need

[julia-users] Re: Linear-Equation-System Solver("\") does not work reliably for the "Rational" Type

2016-07-15 Thread Chris Rackauckas
You're not going to get good runtimes with this if you're using Rationals. Each time a command is done, it needs to reduce the fraction. If you're working with small examples like you show here, then yes this can be worthwhile. However, even with good programming I don't think would scale to so

Re: [julia-users] Linear-Equation-System Solver("\") does not work reliably for the "Rational" Type

2016-07-15 Thread Mauro
On Fri, 2016-07-15 at 20:47, Kurolong wrote: > Hey Guys and Gals ^^ > I'm having trouble with Julia. Maybe one of you can help me out > The program i am writing requires the linear-equation-system-solver(command > "\") in the folder "Julia-0.4.5\share\julia\base\linalg". > Now my problem is that

[julia-users] Linear-Equation-System Solver("\") does not work reliably for the "Rational" Type

2016-07-15 Thread Kurolong
Hey Guys and Gals ^^ I'm having trouble with Julia. Maybe one of you can help me out The program i am writing requires the linear-equation-system-solver(command "\") in the folder "Julia-0.4.5\share\julia\base\linalg". Now my problem is that i need the equation solved strictly on integers, an a

RE: [julia-users] ANN: steps towards 0.5.0 release [candidates]

2016-07-15 Thread David Anthoff
Yeah, I think this just comes down to different needs. I would prefer to see a more extended period between feature freeze and RC that is used to clean up performance problems and some of the things that are currently assigned to the 0.5.x milestone or have the regressions label. Some of the iss

Re: [julia-users] Re: How to install 0.4.5 on Ubuntu?

2016-07-15 Thread Uwe Fechner
Well, the ppa is up-to-date and works well. On Ubuntu a ppa is (nearly) always better than generic binaries, because the package manager can be used to keep Julia up-to-date. Only if a ppa is not maintained generic binaries are an alternative. Uwe Am 15.07.2016 um 19:37 schrieb Tony Kelman: > T

Re: [julia-users] Help on functions in a package

2016-07-15 Thread Yichao Yu
On Fri, Jul 15, 2016 at 1:18 PM, Phil_n wrote: > How do I invoke help on a certain function in a package? That is I would > like an explanatory text of how to use a certain function in a package. > > For example: I would like to know how to use the function rotationmatrix in > package Quaternions

[julia-users] Re: Help on functions in a package

2016-07-15 Thread Phil_n
There does not seem to be a help() function in Julia On Friday, July 15, 2016 at 7:18:11 PM UTC+2, Phil_n wrote: > > How do I invoke help on a certain function in a package? That is I would > like an explanatory text of how to use a certain function in a package. > > For example: I would like to

RE: [julia-users] Re: How to install 0.4.5 on Ubuntu?

2016-07-15 Thread David Anthoff
In that case the reference to the PPA should probably be removed from http://julialang.org/downloads/platform.html and the bottom of the README.md. On the other hand, the juliareleases under staticfloat seems to be up-to-date... > -Original Message- > From: julia-users@googlegroups.com [

Re: [julia-users] Re: How to install 0.4.5 on Ubuntu?

2016-07-15 Thread Tony Kelman
The PPA is deprecated and not actively maintianed. Use the generic Linux binaries. Download and extract the tarball, then run bin/julia.

[julia-users] Help on functions in a package

2016-07-15 Thread Phil_n
How do I invoke help on a certain function in a package? That is I would like an explanatory text of how to use a certain function in a package. For example: I would like to know how to use the function rotationmatrix in package Quaternions

Re: [julia-users] New Package Looking for Contributors: VectorizedRoutines.jl

2016-07-15 Thread Mauro
On Fri, 2016-07-15 at 17:52, Chris Rackauckas wrote: > Thanks for pointing that out. Never heard about that one. It seems like its > been dead for quite awhile and they haven't answered any issues in almost a > year, and haven't committed in 8 months? If anyone is on that project, > please join th

Re: [julia-users] ANN: steps towards 0.5.0 release [candidates]

2016-07-15 Thread Stefan Karpinski
https://en.wikipedia.org/wiki/Software_release_life_cycle#Release_candidate: A release candidate (RC) is a beta version with potential to be a final > product, which is ready to release unless significant bugs emerge. In this > stage of product stabilization, all product features have been designe

Re: [julia-users] Re: How to install 0.4.5 on Ubuntu?

2016-07-15 Thread Uwe Fechner
Which Ubuntu version do you have? There is no problem for me on 14.04, 64bit. Have a look in the folder: /etc/apt/sources.list.d Perhaps you find there a file containing the name |julianightlies ? If so, delete it and try again. Uwe | On 15.07.2016 17:21, Ahmed Mazari wrote: > yes but it inst

Re: [julia-users] New Package Looking for Contributors: VectorizedRoutines.jl

2016-07-15 Thread Chris Rackauckas
Thanks for pointing that out. Never heard about that one. It seems like its been dead for quite awhile and they haven't answered any issues in almost a year, and haven't committed in 8 months? If anyone is on that project, please join the thread. I think there are some major differences though.

RE: [julia-users] Re: How to install 0.4.5 on Ubuntu?

2016-07-15 Thread David Anthoff
I don’t think you need the julia-deps thing anymore, it seems all the dependencies are now part of juliareleases. At least last time I tried this I didn’t add julia-deps and things worked. If that is correct, someone should probably update the README/installation instructions on julialang.or

Re: [julia-users] splicing symbols into a loop around ccall()s

2016-07-15 Thread Yichao Yu
On Fri, Jul 15, 2016 at 8:03 AM, Jeffrey Sarnoff wrote: > ccall( (:convert_from_int, "myClib"), Void, (Ref{ Int }, ), my_int_var ) ccall( ($(QuoteNode(Symbol("convert_from", postfix))), "myClib"), Void, (Ref{$T}, ), $(Symbol("my_", postfix, "_var"))

Re: [julia-users] Re: How to install 0.4.5 on Ubuntu?

2016-07-15 Thread Ahmed Mazari
yes but it installs the version 0.5 On Fri, Jul 15, 2016 at 4:39 PM, Uwe Fechner wrote: > Did you try: > > sudo add-apt-repository ppa:staticfloat/juliareleases > > sudo add-apt-repository ppa:staticfloat/julia-deps > > sudo apt-get update > > sudo apt-get install julia > > > You need to have t

[julia-users] Re: How to install 0.4.5 on Ubuntu?

2016-07-15 Thread Uwe Fechner
Did you try: sudo add-apt-repository ppa:staticfloat/juliareleases sudo add-apt-repository ppa:staticfloat/julia-deps sudo apt-get update sudo apt-get install julia You need to have the correct ppa enabled! Uwe On Friday, July 15, 2016 at 3:49:04 PM UTC+2, Ahmed Mazari wrote: > > How to i

[julia-users] Re: How to install 0.4.5 on Ubuntu?

2016-07-15 Thread Ahmed Mazari
How to install julia 0.4.6 in ubuntu ? l tried sudo apt-get install julia=v0.4.6 but it's not working On Sunday, May 22, 2016 at 12:27:37 PM UTC+2, Nils Gudat wrote: > > Slightly stupid question from someone who is forced to use Linux on a > server: how can I get the latest stable version as o

Re: [julia-users] Trying to understand parametric types as function arguments

2016-07-15 Thread David Barton
Thanks, that's very helpful! David On 15 July 2016 at 09:00, Tim Holy wrote: > julia> c = [Dict("a"=>1), Dict("b"=>2)] > 2-element Array{Dict{ASCIIString,Int64},1}: > Dict("a"=>1) > Dict("b"=>2) > > julia> myfunc(c) > ERROR: MethodError: `myfunc` has no method matching > myfunc(::Array{Dict{A

[julia-users] splicing symbols into a loop around ccall()s

2016-07-15 Thread Jeffrey Sarnoff
I need a refresher on how to do this: for (T, postfix) in ((:Int, :int), (:Float64, :fp)) @eval ccall( ___ ) end # so Julia sees ccall( (:convert_from_int, "myClib"), Void, (Ref{ Int }, ), my_int_var ) ccall( (:convert_from_fp, "myClib"), Void, (Ref{ Float64 }, ), my_fp_var ) thank

Re: [julia-users] ANN: steps towards 0.5.0 release [candidates]

2016-07-15 Thread Sisyphuss
It seems to me that it is the same terminology (RC) as *Battle for Wesnoth.* On Friday, July 15, 2016 at 10:37:19 AM UTC+2, Scott Jones wrote: > > I agree, and it does seem there is a bit of a problem with the > nomenclature that the Julia team is using, which doesn't match industry > wide pract

Re: [julia-users] ANN: steps towards 0.5.0 release [candidates]

2016-07-15 Thread Scott Jones
I agree, and it does seem there is a bit of a problem with the nomenclature that the Julia team is using, which doesn't match industry wide practice. At least the first Julia release candidate is really just a beta release (i.e. after a feature freeze and branch off of current development), as it

Re: [julia-users] Inherit from AbstractMatrix

2016-07-15 Thread Tim Holy
Hi Madeleine, Is there any chance you have two versions of julia installed, and are running the wrong one? (Confession: I make that mistake surprisingly frequently!) The reason I ask is that on current master: julia> methodswith(Array, kron) 0-element Array{Method,1} In master (which is what y

Re: [julia-users] Trying to understand parametric types as function arguments

2016-07-15 Thread Tim Holy
julia> c = [Dict("a"=>1), Dict("b"=>2)] 2-element Array{Dict{ASCIIString,Int64},1}: Dict("a"=>1) Dict("b"=>2) julia> myfunc(c) ERROR: MethodError: `myfunc` has no method matching myfunc(::Array{Dict{ASCIIString,Int64},1}) Here, Julia is complaining that your argument is too-well typed :-). (Se

Re: [julia-users] Inherit from AbstractMatrix

2016-07-15 Thread Mauro
On Thu, 2016-07-14 at 22:53, Madeleine Udell wrote: > Convex.jl defines an abstract type AbstractExpr, from which all important > concrete types in the package are descended. We've defined a bunch of > functions that allow users to treat AbstractExprs as though they were > matrices: indexing, hcat

Re: [julia-users] New Package Looking for Contributors: VectorizedRoutines.jl

2016-07-15 Thread Mauro
There is https://github.com/MatlabCompat/MatlabCompat.jl, which seems to have a similar aim (although sans R/Python support). Maybe join forces? On Fri, 2016-07-15 at 01:34, Chris Rackauckas wrote: > Hey, > After some discussion (and letting the idea hang around for a long time) > I decided to