Re: [Jprogramming] in practice, for numerical computing, how often are > 5 dim tensors used?

2017-12-31 Thread Raul Miller
Technically, J's arrays are built on what in C would be rank 1 tensors. You just get have of them (one for dimensions - always type integer, one for data) under the covers. Presumably you are suggesting that that would be inefficient in CUDA? Anyways... I would not worry too much about this issue

Re: [Jprogramming] in practice, for numerical computing, how often are > 5 dim tensors used?

2017-12-31 Thread TongKe Xue
Hi Roger, 1. I'm still new to reading J. Is this basically: multiply two degree N=2^n-1 polynomials p & q. Brute force = N^2 ops. Using DFT, we can evalute p(1), p(w), ..., p(w^(N-1)) in O(N log N) [***] Thus, we get p(w^i)*q(w^i) for 0 <= i <= N in O(N log N) Using one more O(N log N

Re: [Jprogramming] Notation for rank in documentation

2017-12-31 Thread Raul Miller
The current presentation reflects the structure of the rank conjunction. Basically, any presentation can be mis-interpreted, and requires a certain amount of effort to appreciate. Also, keep in mind that the dictionary entry for |. covers not only Rotate, but Reverse. Also, keep in mind that the

[Jprogramming] Notation for rank in documentation

2017-12-31 Thread Nicholas Spies
I imagine that this topic is of low priority to practically every J programmer who has a mastery of the language and because they are so used to the present notation of rank in, say, NuVoc. For example, why is the brief definition of >. displayed as Larger of 0 Ceiling •

Re: [Jprogramming] viewmat image dimensions

2017-12-31 Thread Cliff Reiter
Poking around coclass 'jviewmat' names'' Maybe changing DEFWH would be more appropriate. (untested) On 12/31/2017 1:32 PM, Cliff Reiter wrote: This may not be a good choice as I don't understand all the consequences and hesitate to change values in addons authored by others, but you might

Re: [Jprogramming] viewmat image dimensions

2017-12-31 Thread Cliff Reiter
This may not be a good choice as I don't understand all the consequences and hesitate to change values in addons authored by others, but you might try: MINWH_jviewmat_=:1000 1000 or a variant suited to your device and data. On 12/31/2017 12:17 PM, Dabrowski, Andrew John wrote: I'm looking at

[Jprogramming] viewmat image dimensions

2017-12-31 Thread Dabrowski, Andrew John
I'm looking at http://www.jsoftware.com/docs/help602/user/script_viewmat.htm and I don't see any way to set the image dimensions. I've got a matrix that's about 3000x3000 and viewmat displays it as a 324x360 image, which is not at all adequate. -

Re: [Jprogramming] A normal exit from a deeply embedded function to a terminal prompt, how?

2017-12-31 Thread Ian Clark
What's "normal" and what's an "error"? (Or, for that matter, a "crash"?) When looking for the best solution to a coding problem, we can be prisoners of our emotive use of language. Way back in IBM in the 1980s I recall the end-user of a bespoke app written in APL picking up the phone in fury when

Re: [Jprogramming] NaN, p., and control structures

2017-12-31 Thread Louis de Forcrand
Obviously nobody would ever enter if. 0 > _. them self. I guess if primitives never produce _. then we need not worry about it; but in the very slight off-chance that a bug lets one slip through, wouldn’t it be safer if an error is thrown? Anyhow, this topic’s problem is solved; gotta stay up to