You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TMtx Class > TMtx Methods > Size Method > TMtx.Size Method (int, int, TMtxFloatPrecision)
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
TMtx.Size Method (int, int, TMtxFloatPrecision)

Sets the size of matrix.

Syntax
C#
Visual Basic
public TMtx Size(int aRows, int aCols, TMtxFloatPrecision aFloatPrecision);

Set the calling matrix properties:

 

If the aFloatPrecision parameter is omitted, the default value mvDouble is used. Calling the Size method does not preserve the contents of the matrix. Use the Resize method, if you want to preserve existing values. 

Note The Size method performs an out-of-memory safe resize, if the matrix already has memory allocated. This prevents out of memory message for example when redefining the size of the matrix from single column to single row.

Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!