Re: Bizarre semantic of Mat
Ilya Zakharevich <[email protected]> Wed, 17 Jan 2024 23:19:31 -0800
| Newsgroups | gmane.comp.mathematics.pari.devel |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Jan 17, 2024 at 11:31:39AM +0100, Bill Allombert wrote: > > Is there a simple way to convert a vector-column into a 1 column > > matrix (without using matrix())? Mat() is almost there — except for > > bizarre special-cases — which are impossible to switch off! > > There is a trick: > > ? V=[[1]~,[2]~,[3]~] > %28 = [[1]~,[2]~,[3]~] > ? Mat(V~)~ > %29 = Mat([[1]~,[2]~,[3]~]) Hmm? It seems that this is “another ‘cute special case’” — which requires PRIOR KNOWLEDGE about the nature of elements of the vector. Does not it? Thanks, Ilya