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



array
A two dimensional array of doubles whose content is used to initialize the matrix elements.
rows
The number of rows of the new Matrix object.
cols
The number of columns of the new Matrix object.
Initializes a new instance of the Matrix class using the content of a two dimensional array specifying the number of rows and columns of the newly created matrix.

Syntax

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

Parameters

array
A two dimensional array of doubles whose content is used to initialize the matrix elements.
rows
The number of rows of the new Matrix object.
cols
The number of columns of the new Matrix object.

Requirements

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

See Also

.NET Matrix Library