Re: #matr~ vs ##matr

Ilya Zakharevich <[email protected]>
Newsgroups gmane.comp.mathematics.pari.devel
Message-ID <[email protected]>
On Fri, Feb 05, 2021 at 05:46:43AM -0800, Ilya Zakharevich wrote:
>   Is not it desirable to implement ##matr as an (optimized) synonym for #matr~?
> 
> If the answer to the second question is positive, then one can maybe
> improve things by returning a special value (such as -1) for scalars…

Well, to get things yet simpler, one can make ###x to return 0 for
scalars, 1 for vectors/lists and 2 for matrices.

Thanks,
Ilya
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.