Ls,
How do I define a tacit function for the expression
(stateNew*-.accept)+state*accept, where accept is a boolean matrix,
state and stateNew are integer matrices?
I tried ` with @. and { but could not find a nice compact solution.
For example:
accept
1 0
1 1
state
0 1
2 3
stateNew
5 5
5 5
Which yields
0 5
2 3
Jan.
This message and attachment(s) are intended solely for use by the addressee and
may contain information that is privileged, confidential or otherwise exempt
from disclosure under applicable law.
If you are not the intended recipient or agent thereof responsible for
delivering this message to the intended recipient, you are hereby notified that
any dissemination, distribution or copying of this communication is strictly
prohibited.
If you have received this communication in error, please notify the sender
immediately by telephone and with a 'reply' message.
Thank you for your co-operation.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm