Re: #matr~ vs ##matr (and: arity, questenian and !!)
Ilya Zakharevich <[email protected]>
| Newsgroups | gmane.comp.mathematics.pari.devel |
|---|---|
| Message-ID | <ZXwLwIt7/[email protected]> |
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