Ilya Zakharevich on Fri, 15 Dec 2023 09:18:14 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: #matr~ vs ##matr (and: arity, questenian and !!)


On Fri, Dec 01, 2023 at 11:41:18PM +0100, Bill Allombert wrote:
> On Fri, Dec 01, 2023 at 01:51:24PM -0800, Ilya Zakharevich wrote:
> > >   ##object  return “the arity” of the object: 2/1/0 for matrices/vectors/scalars 
> > >   	    (and maybe -1 for the “tricky” cases, when/if an object may
> > >   	     be used as a scalar AND as a vector/matrix/etc.).
> 
> How would you use this data ?

E.g, to rewrite exp().  I need to distribute through elements.

Thanks,
Ilya