Skip to content

marlond18/EMDD.KtMatrix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  NugetNugetGitHub Workflow Status  

EMDD.KtMatrix

a library for matrix operations

Requirements

.Net 5.0.102 sdk or greater

Nuget Package Usage

https://www.nuget.org/packages/EMDD.KtMatrix/

<PackageReference Include="EMDD.KtMatrix" Version="*.*.*" />

Usage

I guess this library can be useful for you if you are working with matrices whose elements are:

  • basic numeric values
  • complex numbers
  • basic polynomial equations
  • basic math expressions

Basic Matrix

this Basic Matrix can be represented as a light-weight matrix as

    var matrix = new EMDD.KtMatrix.LightWeight.LWMatrix(new[,] {
        { 3, 2,   1},
        { 3, 3,   3},
        {-4, 1, 0.4});

or

    var matrix = new EMDD.KtMatrix.Matrix(new[,] {
        { 3, 2,   1},
        { 3, 3,   3},
        {-4, 1, 0.4} 
    });

Matrix with complex numbers

this Matrix with complex number can be represented as

    var matrix = new EMDD.KtMatrix.Matrix(new EMDD.KtNumerics.Number[,] {
        { 3,                   2,    1},
        { 3,  new KtComplex(3,1),    3},
        {-4,                   1,  0.4} 
    });

Matrix with piece-wise functions

this Matrix with piece-wise functions can be represented as

    var eq = EMDD.KtPolynomials.KtPolynomial.Create(3, -2);
    var lim = EMDD.KtExpressions.Limits.Limit.Create(3, 4);

    var exp = new EMDD.KtExpressions.Expression((eq, lim));
    var comp = new EMDD.KtNumerics.KtComplex(3, 1);

    var matrix2 = new EMDD.KtMatrix.Matrix(new EMDD.KtExpressions.Expression[,] {
        { 3,       2,    1},
        { exp,  comp,    3},
        {-4,       1,  0.4}
    });

Math Ops

  • Addition, Subtraction, Scalar/Matrix multiplication and Matrix-Dot Product, Division with constant

Other Methods

  • Square Matrix Inverse, Determinant
  • Matrix Transpose
  • Guassian Elimination

TODO

  • Create proper examples

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages