Re: [julia-users] Re: build-in function to find inverse of a matrix

2014-07-21 Thread Stefan Karpinski
Would it be crazy to make ? just do apropos? Interestingly, I was just thinking of making ;; trigger sticky shell mode where you have to actively escape to get back to julia mode. On Mon, Jul 21, 2014 at 6:48 PM, John Myles White wrote: > There's one complication here, which is that a single ?

Re: [julia-users] Re: build-in function to find inverse of a matrix

2014-07-21 Thread John Myles White
There's one complication here, which is that a single ? already changes the mode of the REPL into help mode. So this would have to be a mode only triggerable from inside of help mode. -- John On Jul 21, 2014, at 6:47 PM, Ethan Anderes wrote: > +1. For some reason my fingers always get tied u

Re: [julia-users] Re: build-in function to find inverse of a matrix

2014-07-21 Thread Ethan Anderes
+1. For some reason my fingers always get tied up when typing apropos

[julia-users] Re: build-in function to find inverse of a matrix

2014-07-21 Thread Michael Prentiss
+1 On Friday, July 18, 2014 3:40:14 PM UTC-5, Viral Shah wrote: > > I think that most new users are unlikely to know about apropos. Perhaps we > should put it in the julia banner. > > We can say something like: > Type "help()" for function usage or "apropos()" to search the > documentation. >

Re: [julia-users] Re: build-in function to find inverse of a matrix

2014-07-21 Thread Cameron McBride
in the REPL, would it be reasonable to have "??" be able to do an "apropos()" search? Cameron On Fri, Jul 18, 2014 at 4:40 PM, Viral Shah wrote: > I think that most new users are unlikely to know about apropos. Perhaps we > should put it in the julia banner. > > We can say something like: > Ty

[julia-users] Re: build-in function to find inverse of a matrix

2014-07-18 Thread Viral Shah
I think that most new users are unlikely to know about apropos. Perhaps we should put it in the julia banner. We can say something like: Type "help()" for function usage or "apropos()" to search the documentation. apropos() could then just print a message about how to use it, just like help() d

Re: [julia-users] Re: build-in function to find inverse of a matrix

2014-07-17 Thread Tomas Lycken
If the inverse of a matrix is your final result, rather than some intermediate calculation, it might still be possible to use \ (and, at least in some cases, advantageous): julia> A = rand(10,10) julia> @time inv(A) elapsed time: 0.002185216 seconds (21336 bytes allocated) julia> @time inv(A)

Re: [julia-users] Re: build-in function to find inverse of a matrix

2014-07-17 Thread Andreas Lobinger
Hello colleague, On Thursday, July 17, 2014 6:25:27 AM UTC+2, Stefan Karpinski wrote: > > It's a bit of numerical computing lore that inv is bad – both for > performance and for numerical accuracy. It turns out it may not be so bad > after all, but everyone

Re: [julia-users] Re: build-in function to find inverse of a matrix

2014-07-17 Thread Tobias Knopp
Indeed it is one of the first things one learns in numerical lectures that one has to avoid explicitely calculating an inverse matrix. Still, I think that there various small problems in geometry where I don't see an issue of invering a 2x2 or 3x3 matrix. It depends, as so often, a lot on the co

Re: [julia-users] Re: build-in function to find inverse of a matrix

2014-07-16 Thread Stefan Karpinski
It's a bit of numerical computing lore that inv is bad – both for performance and for numerical accuracy. It turns out it may not be so bad after all, but everyone is still kind of wary of it and there are often better ways to solve problems where inv would be

[julia-users] Re: build-in function to find inverse of a matrix

2014-07-16 Thread Alan Chan
any reason of avoiding inv?

[julia-users] Re: build-in function to find inverse of a matrix

2014-07-16 Thread Patrick O'Leary
The full-text search does not treat us well. The intent is for it to work, and it used to at one point. We don't have any direct control over RTD's indexer; I recently made a commit which adds the "document" class to the main text body, based on https://github.com/rtfd/readthedocs.org/issues/22

Re: [julia-users] Re: build-in function to find inverse of a matrix

2014-07-16 Thread gael . mcdon
I agree. What I meant is that since inv is avoided, it's not used nor well referenced in search engines or on this list. :)

Re: [julia-users] Re: build-in function to find inverse of a matrix

2014-07-16 Thread Stefan Karpinski
The fact that inv should often be avoided is no excuse for it to be hard to find. If we want to have a note in the docs for inv that it's often better to avoid using it, that's fine, but that's the right way to handle this. If someone wants to submit a better help message for inv, that would be gre

[julia-users] Re: build-in function to find inverse of a matrix

2014-07-16 Thread gael . mcdon
I think that one of the main reasons it is so difficult to find is that inv should generally be avoided. As Mauro wrote, if you can, rephrase your problem so that you can use x = A\b.

[julia-users] Re: build-in function to find inverse of a matrix

2014-07-16 Thread Hans W Borchers
But apropos does find it: julia> apropos("matrix inverse") INFO: Loading help data... Base.inv(M) On Wednesday, July 16, 2014 2:59:05 PM UTC+2, Tomas Lycken wrote: > > `inv` will do that for you. > http://docs.julialang.org/en/latest/stdlib/linalg/#Base.inv > > It's a little unfor

[julia-users] Re: build-in function to find inverse of a matrix

2014-07-16 Thread Tomas Lycken
`inv` will do that for you. http://docs.julialang.org/en/latest/stdlib/linalg/#Base.inv It's a little unfortunate that the help text is "Matrix inverse", yet searching for that exact phrase yields no results at all. Is it possible to make documentation search be full-text for help text as well?