Re: [Jprogramming] Clearing a screen in jqt and the best way to replace a column

2017-12-26 Thread Jimmy Gauvin
Two remarks: 1) Notation wise ( wrote: > Note: y =. x m} y is in-place and faster for that reason. > > x=. q 3}&.|: x also does the amend in-place. > > It does appear that m}"r goes through rank processing (I thought the rank > was handled in the verb). > > hhr > > > On 12/26/2017 10:44 AM, R.E.

Re: [Jprogramming] Clearing a screen in jqt and the best way to replace a column

2017-12-26 Thread Henry Rich
00 ?.@# 0 100 ts 'c=. q ( -Original Message- From: Programming [mailto:programming-boun...@forums.jsoftware.com] On Behalf Of David Mitchell Sent: dinsdag 26 december 2017 12:15 To: programm...@jsoftware.com Subject: Re: [Jprogramming] Clearing a screen in jqt and the best way to re

Re: [Jprogramming] Clearing a screen in jqt and the best way to replace a column

2017-12-26 Thread R.E. Boss
gramming] Clearing a screen in jqt and the best way to > replace a column > > Some choices: > > 2000 ts 'e=. q 3}&.|: x' > 2.56966e_5 3571 > 2000 ts 'd=. q (3})"0 1 x' > 5.65454e_5 43648 > 2000 ts 

Re: [Jprogramming] Clearing a screen in jqt and the best way to replace a column

2017-12-26 Thread David Mitchell
Original message From: Henry Rich Date: 12/23/17 15:53 (GMT-05:00) To: programm...@jsoftware.com Subject: Re: [Jprogramming] Clearing a screen in jqt and the best way to replace a column Your solution is good.  There is special code for most of it. See warnings at htt

Re: [Jprogramming] Clearing a screen in jqt and the best way to replace a column

2017-12-24 Thread Raul Miller
Ok, so, for this problem, I'd probably have used representative simplifications, perhaps something like this: tabprint=: {&'.@' xtable=: ?5 5$2 table=: ?5 5$2 I might have also used several different threads to ask all the questions.. (for example, if you wanted to preserve the shapes of the indi

Re: [Jprogramming] Clearing a screen in jqt and the best way to replace a column

2017-12-24 Thread Nick S
> On Sat, Dec 23, 2017 at 10:10 PM, devonmcc wrote: > > > I use an expression like this to update a column: (97 98 99) 2}&.|: i. > 3 > > 3 > > > > > > > > > > Sent from my Verizon, Samsung Galaxy smartphone > > Original message --

Re: [Jprogramming] Clearing a screen in jqt and the best way to replace a column

2017-12-24 Thread Nick S
Sorry. I am too close to the problem. table and xtable are rank 2 boolean tables of size 5 5, 10 10, 15 15, or 20 20. Tabprint is rather complex, and pulls in data from both table and xtable but also from other vectors and so forth. But for the environment it is in, it will always produce a ran

Re: [Jprogramming] Clearing a screen in jqt and the best way to replace a column

2017-12-24 Thread Raul Miller
You are not giving enough detail of what's going on here to really comment. For example, in your expression: recordtables =: recordtables,,: ((tabprint table),"1 (tabprint xtable)) you have not mentioned anywhere what xtable is like, nor what tabprint is like. So you've presented an example

Re: [Jprogramming] Clearing a screen in jqt and the best way to replace a column

2017-12-24 Thread Nick S
Using two transpositions was my first thought. I came to J from years of dabbling with APL (first use was inn 1970ish on the 360/65 at the UofF where they ran APL for two hours at lunch..instead of their homegrown timesharing system, nd then on an 8K IBM 1130. So, in a way I miss the APL syntax.

Re: [Jprogramming] Clearing a screen in jqt and the best way to replace a column

2017-12-24 Thread Nick S
OK, so basically I was doing the rank wrong. Thanks. I wish I understood verb rank well enough to understand why I was doing it wrong. I was trying to make a list of pages. Basically, I was trying to make a rank 3 list of rank 2 page images. I could have made a vector of boxed images but they

Re: [Jprogramming] Clearing a screen in jqt and the best way to replace a column

2017-12-23 Thread Ian Clark
0:10 PM, devonmcc wrote: > I use an expression like this to update a column: (97 98 99) 2}&.|: i. 3 > 3 > > > > > Sent from my Verizon, Samsung Galaxy smartphone > Original message From: Henry Rich > Date: 12/23/17 15:53 (GMT-05:00) To: programm.

Re: [Jprogramming] Clearing a screen in jqt and the best way to replace a column

2017-12-23 Thread devonmcc
n in jqt and the best way to replace a column Your solution is good.  There is special code for most of it. See warnings at http://code.jsoftware.com/wiki/Vocabulary/SpecialCombinations#Whole-Array_Operations Another possibility is    (($,)~ _2 */\ $) 0 2 1 3 |: > array Henry Rich On 12/

Re: [Jprogramming] Clearing a screen in jqt and the best way to replace a column

2017-12-23 Thread Henry Rich
Your solution is good.  There is special code for most of it. See warnings at http://code.jsoftware.com/wiki/Vocabulary/SpecialCombinations#Whole-Array_Operations Another possibility is    (($,)~ _2 */\ $) 0 2 1 3 |: > array Henry Rich On 12/23/2017 2:29 PM, Jimmy Gauvin wrote: I was expl

Re: [Jprogramming] Clearing a screen in jqt and the best way to replace a column

2017-12-23 Thread Jimmy Gauvin
I was exploring the kind of problem lately and ended up with: (,.97 98 99) (,2)}"1 i. 3 3 Left rank never occurred to me. While we're playing with structures, is there a better way to unbox boxes of arrays than the following: (2 2$2)<;._3 i.6 6 ┌─┬─┬─┐ │0 1 │2 3 │ 4 5│ │6 7

Re: [Jprogramming] Clearing a screen in jqt and the best way to replace a column

2017-12-23 Thread Henry Rich
To modify acolumn: 97 98 99 (2})"0 1 i. 3 3 0 1 97 3 4 98 6 7 99 Henry Rich On 12/23/2017 12:48 PM, Nick S wrote: I have a 3d array that is the formatted output of a table. I capture snapshots of it at different points in my processing, in a rank 3 array. I want to flip between pages to

[Jprogramming] Clearing a screen in jqt and the best way to replace a column

2017-12-23 Thread Nick S
I have a 3d array that is the formatted output of a table. I capture snapshots of it at different points in my processing, in a rank 3 array. I want to flip between pages to see how the processing progresses. I thought I would clear the screen, then display the output, that being one of the stacke