# C1.Framework.Mathematics.Matrix-1.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Framework_Mathematics_Matrix_1__ctor_" data-uid="C1.Framework.Mathematics.Matrix`1.#ctor*">Matrix Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Framework_Mathematics_Matrix_1__ctor_" data-uid="C1.Framework.Mathematics.Matrix`1.#ctor*"></a>
<h4 id="C1_Framework_Mathematics_Matrix_1__ctor" data-uid="C1.Framework.Mathematics.Matrix`1.#ctor">Matrix()</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of <a class="xref" href="C1.Framework.Mathematics.Matrix.html">Matrix</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Matrix()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New()</code></pre>
</div>


<a id="C1_Framework_Mathematics_Matrix_1__ctor_" data-uid="C1.Framework.Mathematics.Matrix`1.#ctor*"></a>
<h4 id="C1_Framework_Mathematics_Matrix_1__ctor_System_Int32_System_Int32_" data-uid="C1.Framework.Mathematics.Matrix`1.#ctor(System.Int32,System.Int32)">Matrix(int, int)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of <a class="xref" href="C1.Framework.Mathematics.Matrix.html">Matrix</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Matrix(int width, int height)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(width As Integer, height As Integer)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">width</span></td>
      <td><p>A <b>int</b> indicates the number of row.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">height</span></td>
      <td><p>A <b>int</b> indicates the number of column.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Framework_Mathematics_Matrix_1__ctor_" data-uid="C1.Framework.Mathematics.Matrix`1.#ctor*"></a>
<h4 id="C1_Framework_Mathematics_Matrix_1__ctor__0_0__0___" data-uid="C1.Framework.Mathematics.Matrix`1.#ctor(`0[0:,0:])">Matrix(T[,])</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of <a class="xref" href="C1.Framework.Mathematics.Matrix.html">Matrix</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Matrix(T[,] elements)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(elements As T(,))</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>T[,]</td>
      <td><span class="parametername">elements</span></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Framework_Mathematics_Matrix_1__ctor_" data-uid="C1.Framework.Mathematics.Matrix`1.#ctor*"></a>
<h4 id="C1_Framework_Mathematics_Matrix_1__ctor_System_Boolean_C1_Framework_Mathematics_Vector__0____" data-uid="C1.Framework.Mathematics.Matrix`1.#ctor(System.Boolean,C1.Framework.Mathematics.Vector{`0}[])">Matrix(bool, params Vector&lt;T&gt;[])</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of <a class="xref" href="C1.Framework.Mathematics.Matrix.html">Matrix</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Matrix(bool vertical, params Vector&lt;T&gt;[] vectors)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(vertical As Boolean, ParamArray vectors As Vector(Of T)())</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">vertical</span></td>
      <td><p>A <b>bool</b> indicates whether the direction of vectors is vertical.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Framework.Mathematics.Vector-1.html">Vector</a>&lt;T&gt;[]</td>
      <td><span class="parametername">vectors</span></td>
      <td><p>A <a class="xref" href="C1.Framework.Mathematics.Vector.html">Vector</a> array indicates the vectors.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
