Ilya Zakharevich on Thu, 18 Jan 2024 08:21:45 +0100


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

Re: Bizarre semantic of Mat


On Wed, Jan 17, 2024 at 07:50:56AM +0100, Joerg Arndt 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!

> ? v=[1,2,3,4];
> ? matrix(#v,1,r,c,v[r])

Does not “using matrix()” defeat the purpose of “not using matrix()”?  ;―]

Ilya