,/ collapses a dimension

   $,/"_1 i. 3 4 1
3 4
   $,/"2 i. 3 4 1
3 4
   $,/ i. 3 4 1
12 1
   $,/ i. 1 3 4
3 4


R.E. Boss




-----Oorspronkelijk bericht-----
Van: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Namens Leigh J. Halliwell
Verzonden: vrijdag 8 december 2006 15:32
Aan: 'Programming forum'
Onderwerp: [Jprogramming] Axis Reduction

Dear J Forum:
Sometimes an operation will retun an array with a trailing singleton
dimension, for example, the rank is 3 4 1, when 3 4 is desired.  Aces within
a two-dimensional table of scalarr will cause this, and I understand why.  I
can lop off the trailing axis by using ({. & >)"0, instead of just >"0; but
I'm sure that you can show me more clever and instructive ways to do this.
Also, is there a smart way to lop off a leading singleton dimension?
Thanks.
Sincerely,
Leigh
Leigh Joseph Halliwell, FCAS, MAAA
Chief Manager
L. J. Halliwell, LLC
406 Gibson Pond Rd
Chattanooga, TN  37421-5368
423-296-2739
423-605-5789 cell
423-954-2772 fax
 <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]
 <http://www.lhalliwell.com/> www.lhalliwell.com
This communication is intended solely for the use of the individual to whom
or the entity to which it is addressed. It may contain information that is
privileged, confidential, and exempt from disclosure under applicable law.
If you are neither the intended recipient, nor the employee, nor the agent
responsible for delivering the communication 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 us immediately by telephone or email,
delete the communication from any computer or other electronic storage
media, and destroy all other copies in your possession.
 
 

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

Reply via email to