Loïc Grenié on Thu, 18 Jan 2024 09:40:18 +0100 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: Bizarre semantic of Mat |
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?