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

Resizes calling vector Length to Len.

Syntax
C#
Visual Basic
public TMtxVec Resize(int Len, bool ZeroIt);

If Length is less than Len and ZeroIt parameter is true, the remaining calling vector values are set to zero.

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