TMatrix

TMatrix - 消息

#1 已发布: 2012/2/4 07:39:49
Edward Ulle

Edward Ulle

21个赞,共182个帖子。

组: 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 已发布: 2012/2/4 07:44:47
Andrey Ivashov

Andrey Ivashov

2,344个赞,共4,057个帖子。

组: Super Administrator

You can use that:

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

Regards.
  • 有新帖
  • 无新帖