I did some tests and I find NO improvement by switching to ~.!.0 for nonnumeric rank > 1. In fact it is slower.

For numeric with rank > 1, ~.!.0 is a little faster.

Henry Rich

On 8/19/2014 6:38 PM, Raul Miller wrote:
I'd want to see some detailed reference on this issue (~.!.0 on non-numeric
arrays) before I'd want to blow another day or longer trying to reproduce
the problem with that change.

Alternatively, I'd want to get into the C implementation and find how this
could happen. That maybe should be done as a theoretical exercise
(understanding how the algorithm works and how it can fail) than as a
practical exercise.

Please also keep in mind that I have not eliminated hardware flaws from the
plausible cause list. Memory corruption (or things equivalent to memory
corruption, such as an intermittently failing logic component) is an
all-too-likely possibility.

Thanks,

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

Reply via email to