Yes, I can see that would track with minimal risk.  Thank you.

On 02/05/2020 10:38 PM, Devon McCormick wrote:
The Boolean indicator vector sounds like a good way to handle this.

On Wed, Feb 5, 2020 at 2:33 PM Don Guinn <dongu...@gmail.com> wrote:

Yes. I just wanted to make sure he was aware that that would happen.

On Wed, Feb 5, 2020 at 12:23 PM Roger Hui <rogerhui.can...@gmail.com>
wrote:

It's not a problem unless PMA says it's a problem. :-)

I believe that in k, the value _2147483648 (-2^31) is used as an integer
null.  In so doing the integer representation becomes symmetric.


On Wed, Feb 5, 2020 at 11:09 AM Don Guinn <dongu...@gmail.com> wrote:

The _. will change the array to float. Would that be a problem?

On Wed, Feb 5, 2020, 12:03 PM Roger Hui <rogerhui.can...@gmail.com>
wrote:

Careful: 0*_ and _*0 do not leave _ untouched: both return 0.
(Likewise
for __ .)

Another alternative is to use an associated boolean array whose 1s
indicate
non-null values.


On Wed, Feb 5, 2020 at 8:50 AM PMA <armst...@eskimo.com> wrote:

Aha, so arithmetic functions will just leave it as-is.  Just right!

On 02/04/2020 08:22 PM, Devon McCormick wrote:
You might also consider "_" (infinity) or "__" (negative
infinity).

On Tue, Feb 4, 2020 at 8:19 PM PMA <armst...@eskimo.com> wrote:

Thanks, Roger, I'll look into this!

On 02/04/2020 04:33 PM, Roger Hui wrote:
You could try using _. (aka NaN aka indeterminate).  But read
http://code.jsoftware.com/wiki/Essays/Indeterminate first.



On Tue, Feb 4, 2020 at 12:46 PM PMA <armst...@eskimo.com>
wrote:

J gurus --
I have a numerical array in which some positions
need to display either 0 (a literal zero) OR
nothing at (be empty).  Is this possible somehow
using the NULL value, with math functions simply
bypassing it?
Thanks in advance,
Peter A


----------------------------------------------------------------------
For information about J forums see
http://www.jsoftware.com/forums.htm



----------------------------------------------------------------------
For information about J forums see
http://www.jsoftware.com/forums.htm


----------------------------------------------------------------------
For information about J forums see
http://www.jsoftware.com/forums.htm




----------------------------------------------------------------------
For information about J forums see
http://www.jsoftware.com/forums.htm


----------------------------------------------------------------------
For information about J forums see
http://www.jsoftware.com/forums.htm

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm



----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to