[Cuis] Array2D newSize:
Dan Norton
dnorton at mindspring.com
Wed Jul 15 17:23:26 CDT 2015
Maybe it's my dyslexia, but isn't this backward?
"Array2D newSize: 2 at 3" produces an array with 3 rows and 2 columns:
| nil nil |
| nil nil |
| nil nil |
IMO it should be:
| nil nil nil |
| nil nil nil |
For example, in Squeak, "MatrixTransform2x3 identity" produces:
MatrixTransform2x3(
1.0 0.0 0.0
0.0 1.0 0.0
)
Please correct me if I'm wrong.
OK, you're wrong - as long as there is a subclass called Matrix in
LinearAlgebra.pck.st
Use Matrix instead of Array2d.
(whew)
--
View this message in context: http://forum.world.st/Array2D-newSize-tp4837696p4837720.html
Sent from the Cuis Smalltalk mailing list archive at Nabble.com.
More information about the Cuis
mailing list