Re: [Jprogramming] Length errors when getting multiple columns from array

2014-09-27 Thread Henry Rich
Never mind, I found the #redirect directive. Henry Rich On 9/28/2014 12:26 AM, Tikkanz wrote: There seems to be an old version describing the addon at http://www.jsoftware.com/jwiki/Addons/debug/dissect . Maybe you could forward one of these links to the other? On Sep 28, 2014 1:37 AM, "Henry

Re: [Jprogramming] Length errors when getting multiple columns from array

2014-09-27 Thread Henry Rich
I have found references to the old page (in JAL/602, /802, and 803) and changed them. Do you know of a way I can redirect all references to a page to go to a replacement page? Henry Rich On 9/28/2014 12:26 AM, Tikkanz wrote: There seems to be an old version describing the addon at http://www

Re: [Jprogramming] Length errors when getting multiple columns from array

2014-09-27 Thread Tikkanz
There seems to be an old version describing the addon at http://www.jsoftware.com/jwiki/Addons/debug/dissect . Maybe you could forward one of these links to the other? On Sep 28, 2014 1:37 AM, "Henry Rich" wrote: > Oh, it does: > > http://www.jsoftware.com/jwiki/Vocabulary/Dissect > > I guess it

Re: [Jprogramming] Length errors when getting multiple columns from array

2014-09-27 Thread Joe Bogner
I typically run two queries when I look for something - the homepage and the wiki... a minor nuisance. I type the query in the search box on each Here are the results for dissect http://www.jsoftware.com/jwiki/FrontPage?action=fullsearch&context=180&value=dissect&titlesearch=Titles https://www.g

Re: [Jprogramming] Length errors when getting multiple columns from array

2014-09-27 Thread Raul Miller
I see the problem: I tried to use a search engine to find the page However, http://www.jsoftware.com/robots.txt lists jwiki which means that search engines will no longer show new wiki content. So that probably means someone needs to deal with http://moinmo.in/HowTo/Tune%20Performance Perhaps a

Re: [Jprogramming] Length errors when getting multiple columns from array

2014-09-27 Thread Henry Rich
OK. It runs on J803, but the characters aren't centered right, because of an error that Bill Lam recently fixed. So make sure you update J803 before you curse the display. Henry Rich On 9/27/2014 9:39 AM, Marc Simpson wrote: Small suggestion: change "make sure you are running J602 or J8

Re: [Jprogramming] Length errors when getting multiple columns from array

2014-09-27 Thread Marc Simpson
Small suggestion: change "make sure you are running J602 or J802, *but not J801*." to "make sure you are running J602 or J802+, *but not J801*." On Sat, Sep 27, 2014 at 2:37 PM, Henry Rich wrote: > Oh, it does: > > http://www.jsoftware.com/jwiki/Vocabulary/Dissect > > I guess it must be h

Re: [Jprogramming] Length errors when getting multiple columns from array

2014-09-27 Thread Henry Rich
Oh, it does: http://www.jsoftware.com/jwiki/Vocabulary/Dissect I guess it must be hard to find. Any suggestions for improving visibility would be appreciated. Henry Rich On 9/27/2014 9:20 AM, Raul Miller wrote: That's a good point. But the addon doesn't even have a wiki page, yet. You wa

Re: [Jprogramming] Length errors when getting multiple columns from array

2014-09-27 Thread Raul Miller
That's a good point. But the addon doesn't even have a wiki page, yet. You want me to put one together? Thanks, -- Raul On Sat, Sep 27, 2014 at 9:11 AM, Henry Rich wrote: > For problems like this, the dissect addon can help you see what's > happening. > > Henry Rich > > On 9/27/2014 12:47 A

Re: [Jprogramming] Length errors when getting multiple columns from array

2014-09-27 Thread Henry Rich
For problems like this, the dissect addon can help you see what's happening. Henry Rich On 9/27/2014 12:47 AM, Raul Miller wrote: These two statements give equivalent results: 3 4{."1&.>3 3 >3 4 3 4 2 *&> 3 4 6 8 <&.>3 4 +---+---+ |+-+|+-+| ||3|||4|| |+-+|+-+| +---+---+ ]"(

Re: [Jprogramming] Length errors when getting multiple columns from array

2014-09-26 Thread Raul Miller
ri, 26 Sep 2014 12:51:03 -0400 > > From: [email protected] > > To: [email protected] > > Subject: Re: [Jprogramming] Length errors when getting multiple columns > from array > > > > Not entirely sure what you want, but is this it? > > > >3 4{.&qu

Re: [Jprogramming] Length errors when getting multiple columns from array

2014-09-26 Thread Tikkanz
boxing. But my problem seems to be in the actual loop {"1, which is the >>> part I am confused about.I can't do 3 4{"(0 1) arr because the output >>> shapes are different, but I am sure there is a way to do things like this. >>> >>> Your suggestion: &g

Re: [Jprogramming] Length errors when getting multiple columns from array

2014-09-26 Thread Tikkanz
=: 3 4 5 4 5 NB. extract the first 3,4,5,4,5 columns respectively >> ;/columns{."(0 1) arr >> I get a length error trying my above code. Hmm... >> >> > From: [email protected] >> > Date: Fri, 26 Sep 2014 10:03:52 -0700 >> > To: programm...@jsoftware.

Re: [Jprogramming] Length errors when getting multiple columns from array

2014-09-26 Thread Tikkanz
code. Hmm... > > > From: [email protected] > > Date: Fri, 26 Sep 2014 10:03:52 -0700 > > To: [email protected] > > Subject: Re: [Jprogramming] Length errors when getting multiple columns > from array > > > > Hi Jon, > > > > I am a bit confuse

Re: [Jprogramming] Length errors when getting multiple columns from array

2014-09-26 Thread Devon McCormick
ed to unbox an argument, apply f to the > result and then box it again. But am not sure how that applies to my > problem. > > > > Date: Fri, 26 Sep 2014 12:51:03 -0400 > > From: [email protected] > > To: [email protected] > > Subject: Re: [Jpro

Re: [Jprogramming] Length errors when getting multiple columns from array

2014-09-26 Thread robert therriault
,5,4,5 columns respectively > ;/columns{."(0 1) arr > I get a length error trying my above code. Hmm... > >> From: [email protected] >> Date: Fri, 26 Sep 2014 10:03:52 -0700 >> To: [email protected] >> Subject: Re: [Jprogramming] Length errors when ge

Re: [Jprogramming] Length errors when getting multiple columns from array

2014-09-26 Thread Jon Hough
[email protected] > Date: Fri, 26 Sep 2014 10:03:52 -0700 > To: [email protected] > Subject: Re: [Jprogramming] Length errors when getting multiple columns from > array > > Hi Jon, > > I am a bit confused about what you would like as well, but without boxing you >

Re: [Jprogramming] Length errors when getting multiple columns from array

2014-09-26 Thread Jon Hough
; To: [email protected] > Subject: Re: [Jprogramming] Length errors when getting multiple columns from > array > > Not entirely sure what you want, but is this it? > >3 4{."1&.> +-+---+ > |0 1 2|0 1 2 3| > |6 7 8|6 7 8 9| > |2 3 4|2 3 4 5| >

Re: [Jprogramming] Length errors when getting multiple columns from array

2014-09-26 Thread robert therriault
Hi Jon, I am a bit confused about what you would like as well, but without boxing you could do this (3&{. , 4&{.)"1 arr 0 1 2 0 1 2 3 6 7 8 6 7 8 9 2 3 4 2 3 4 5 8 9 0 8 9 0 1 4 5 6 4 5 6 7 0 1 2 0 1 2 3 6 7 8 6 7 8 9 2 3 4 2 3 4 5 8 9 0 8 9 0 1 4 5 6 4 5 6 7 but I am suspicious of the term

Re: [Jprogramming] Length errors when getting multiple columns from array

2014-09-26 Thread Devon McCormick
Not entirely sure what you want, but is this it? 3 4{."1&.> wrote: > I have a 2-d array. e.g. > arr =: 10 6 $ i. 10 > I want to get the first 3 columns from the array, e.g. 3{."1and get the > first 4 elements, e.g. 4{."1 > However, combining these, as in > 3 4 {."(0 1) arrgives a length error

[Jprogramming] Length errors when getting multiple columns from array

2014-09-26 Thread Jon Hough
I have a 2-d array. e.g. arr =: 10 6 $ i. 10 I want to get the first 3 columns from the array, e.g. 3{."1and get the first 4 elements, e.g. 4{."1 However, combining these, as in 3 4 {."(0 1) arrgives a length error. Of course 3{. and 4{. will give different shape results so should be boxed and