Rank: Administration Groups: Registered, Advanced Member Joined: 23/06/2009(UTC) Posts: 1,740 Was thanked: 318 time(s) in 268 post(s)
|
Hello Andrey,
I wonder if the augment() and stack() could be made to receive a scalar argument in the case of merging vectors and scalars. This is not working at the moment *Array dimensions do not match*:
c:mat(x,y,z,1,3) augment(a,b,c)=#@# stack(a,b,transpose(c))=#@#
But this will:
c:mat(x,y,z,1,3) a:mat(a,1,1) b:mat(b,1,1) augment(a,b,c)=mat(a,b,x,y,z,1,5) stack(a,b,transpose(c))=mat(a,b,x,y,z,5,1)
We had to make "a" and "b" variables as single element vectors. It seems to me a bit redundant. Andrey, could you make that augment() and stack() could have scalars as their arguments as well, in the cases of merging row or column matrices (vectors)?
Regards, Radovan |
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!" |
1 user thanked omorr for this useful post.
|
|