# C1.Framework.Mathematics.Matrix.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Framework_Mathematics_Matrix__ctor_" data-uid="C1.Framework.Mathematics.Matrix.#ctor*">Matrix Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Framework_Mathematics_Matrix__ctor_" data-uid="C1.Framework.Mathematics.Matrix.#ctor*"></a>
<h4 id="C1_Framework_Mathematics_Matrix__ctor" data-uid="C1.Framework.Mathematics.Matrix.#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__ctor_" data-uid="C1.Framework.Mathematics.Matrix.#ctor*"></a>
<h4 id="C1_Framework_Mathematics_Matrix__ctor_System_Int32_System_Int32_" data-uid="C1.Framework.Mathematics.Matrix.#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__ctor_" data-uid="C1.Framework.Mathematics.Matrix.#ctor*"></a>
<h4 id="C1_Framework_Mathematics_Matrix__ctor_System_Double_0__0___" data-uid="C1.Framework.Mathematics.Matrix.#ctor(System.Double[0:,0:])">Matrix(double[,])</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(double[,] elements)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(elements As Double(,))</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.double">double</a>[,]</td>
      <td><span class="parametername">elements</span></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Framework_Mathematics_Matrix__ctor_" data-uid="C1.Framework.Mathematics.Matrix.#ctor*"></a>
<h4 id="C1_Framework_Mathematics_Matrix__ctor_System_Boolean_C1_Framework_Mathematics_Vector___" data-uid="C1.Framework.Mathematics.Matrix.#ctor(System.Boolean,C1.Framework.Mathematics.Vector[])">Matrix(bool, params Vector[])</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[] vectors)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(vertical As Boolean, ParamArray vectors As Vector())</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.html">Vector</a>[]</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>
