AngouriMath

Navigation

← Back to list of members

MatrixFromIEnum2x2​(System.​Collections.​Generic.​IEnumerable{System.​Collections.​Generic.​IEnumerable{AngouriMath.​Entity}})

 Method (no overloads)

Summary

Creates a matrix from given elements

Parameter "elements"

There should be at least one row.
All rows must have the same number
of columns

Example

using System;
using AngouriMath;
using static AngouriMath.MathS;

Console.WriteLine(Scalar(56));
Console.WriteLine(MatrixFromIEnum2x2(new Entity[][]
    {
        new Entity[]{ 1, 2, 3 },
        new Entity[]{ 4, 5, 6 }
    }
));

Prints
[56]
[[1, 2, 3], [4, 5, 6]]

























Angouri © 2019-2023 · Project's repo · Site's repo · Octicons · Transparency · 1534 pages online