.NET Matrix Library
Matrix Constructor(Int32,Int32,Double)
See Also  Send Feedback



rows
The number of rows of the new Matrix object.
cols
The number of columns of the new Matrix object.
diagonal
The double value that will be used to initialize the diagonal elements of the matrix.
Initializes a new instance of the Matrix class specifying the number of rows and columns of the newly created matrix, initializing its diagonal elements to the specified double value.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal rows As Integer, _
   ByVal cols As Integer, _
   ByVal diagonal As Double _
)
Visual Basic (Usage)Copy Code
Dim rows As Integer
Dim cols As Integer
Dim diagonal As Double
 
Dim instance As New Matrix(rows, cols, diagonal)
C# 
public Matrix( 
   int rows,
   int cols,
   double diagonal
)
C++/CLI 
public:
Matrix( 
   int rows,
   int cols,
   double diagonal
)

Parameters

rows
The number of rows of the new Matrix object.
cols
The number of columns of the new Matrix object.
diagonal
The double value that will be used to initialize the diagonal elements of the matrix.

Requirements

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

See Also

.NET Matrix Library