| Bill Allombert on Fri, 22 May 2026 11:22:48 +0200 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
| Re: question on collecting t_MAT |
On Fri, May 22, 2026 at 10:33:12AM +0200, hermann@stamm-wilbrandt.de wrote: > Doc says that "Matrices are internally represented as a vector of columns". > But shouldn't below return a 2-element vector of "t_MAT" entries? > > ? [type(A)|e<-[1,2];A<-matrix(2,2,x,y,e)] > ["t_COL", "t_COL", "t_COL", "t_COL"] This is correct, this is the same as [type(A)|e<-[1,2];A<-[[e,e]~,[e,e]~]] > If not, how to modify to result in ["t_MAT", "t_MAT"] ? Add brackets: ? [type(A)|e<-[1,2];A<-[matrix(2,2,x,y,e)]] %2 = ["t_MAT","t_MAT"] Cheers, Bill.