AngouriMath
Vector(AngouriMath.Entity[])
Method (no overloads)
Summary
Creates an instance of Matrix that has one column.
Parameter "values"
The cells of the Matrix
Returns
A one-dimensional Matrix which is a vector
Example
using System;
using AngouriMath;
using static AngouriMath.Entity;
using static AngouriMath.MathS;
var A = Matrix(new Entity[,]
    {
        { 1, 2, 3 },
        { 4, 5, 6 }
    }
);
Console.WriteLine(A.ToString(multilineFormat: true));
var B = Vector(1, 2, 3, 4);
Console.WriteLine(B.ToString(multilineFormat: true));
Matrix C = @"
[[1, 2],
 [3, 4],
 [5, 6]]
 ";
Console.WriteLine(C.ToString(multilineFormat: true));
Matrix D = "[1, 2, 3, 4]";
Console.WriteLine(D.ToString(multilineFormat: true));Prints
Matrix[2 x 3]
1   2   3   
4   5   6   
Matrix[4 x 1]
1   
2   
3   
4   
Matrix[3 x 2]
1   2   
3   4   
5   6   
Matrix[4 x 1]
1   
2   
3   
4Angouri © 2019-2023 · Project's repo · Site's repo · Octicons · Transparency · 1534 pages online