.NET Matrix Library
Resize Method
See Also  Send Feedback



rows
An integer specifying the new number of rows.
cols
An integer specifying the new number of columns.
Resizes matrix preserving its content.

Syntax

Visual Basic (Declaration) 
Public Sub Resize( _
   ByVal rows As Integer, _
   ByVal cols As Integer _
) 
Visual Basic (Usage)Copy Code
Dim instance As Matrix
Dim rows As Integer
Dim cols As Integer
 
instance.Resize(rows, cols)
C# 
public void Resize( 
   int rows,
   int cols
)
C++/CLI 
public:
void Resize( 
   int rows,
   int cols
) 

Parameters

rows
An integer specifying the new number of rows.
cols
An integer specifying the new number of columns.

Remarks

If new dimensions are smaller the matrix is truncated; if bigger then zeros are added.

Requirements

Target Platforms: Windows 2000, Windows XP, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7

See Also

.NET Matrix Library