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 vi...@mayin.org 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

[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. apropos()

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

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 ethanande...@gmail.com wrote: +1. For some reason my

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 johnmyleswh...@gmail.com wrote: There's one complication here,

[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()

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

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 http://arxiv.org/pdf/1201.6035v1.pdf after all, but everyone is

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)

[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?

[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 unfortunate

[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.

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. :)

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

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

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 http://arxiv.org/pdf/1201.6035v1.pdf after all, but everyone is still kind of wary of it and there are often better ways to solve problems where inv would be