TMatrix

TMatrix - Messages

#1 Posted: 2/4/2012 7:39:49 AM
Edward Ulle

Edward Ulle

20 likes in 182 posts.

Group: Moderator

There does not appear to be any methods to get the number of rows or columns of a SMath.Math.Numeric.TMatrix, or is there?
Ed
#2 Posted: 2/4/2012 7:44:47 AM
Andrey Ivashov

Andrey Ivashov

2269 likes in 3729 posts.

Group: Super Administrator

You can use that:

TMatrix matrix = new TMatrix(...);
int rows = matrix.unit.GetLength(0);
int cols = matrix.unit.GetLength(1);

Regards.
  • New Posts New Posts
  • No New Posts No New Posts