asc-community/AngouriMath

Matrix Concat

WhiteBlackGoose opened this issue · 1 comments

The package I want to suggest the idea to: AngouriMath

Option 1

MathS.Matrices
{
+    public static Matrix Concat(Matrix a, Matrix b, int axis);
}

Option 2

MathS.Matrices
{
+    public static Matrix ConcatHorizontally(Matrix a, Matrix b);
+    public static Matrix ConcatVertically(Matrix a, Matrix b);
}

Option 3

AngouriMathExtensions
{
+    public static Matrix ConcatToTheRight(this Matrix a, Matrix b);
+    public static Matrix ConcatToTheBottom(this Matrix a, Matrix b);
}

Option 4

MathS.Matrices
{
+    public static Matrix JoinHorizontally(Matrix a, Matrix b);
+    public static Matrix JoinVertically(Matrix a, Matrix b);
}

Option 5

AngouriMathExtensions
{
+    public static Matrix JoinRight(this Matrix a, Matrix b);
+    public static Matrix JoinBottom(this Matrix a, Matrix b);
}

Perhaps we may be going with

AngouriMathExtensions
{
+    public enum ConcatDirection
+    {
+        Right, Left, Bottom, Top
+    }
+    public static Matrix Concat(this Matrix a, Matrix b, ConcatDirection dir = Right)
}