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

Resizes the matrix, while preserving the values in already allocated memory.

Syntax
C#
Visual Basic
public TMtxInt Resize(int NewRows, int NewCols);

Sets the Rows property to NewRows, Cols property to NewCols, while preserving the values in already allocated memory.

var A,B: TMtxInt; begin CreateIt(A,B); try A.SetIt(2,2,[1,3, 2,4]); B.Resize(A,3,2,True); // B becomes: // [1,2,0, // 3,4,0]); finally FreeIt(A,B); end; end;
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!