EMDD.KtMatrix 1.0.2-beta

This is a prerelease version of EMDD.KtMatrix.
There is a newer version of this package available.
See the version list below for details.
dotnet add package EMDD.KtMatrix --version 1.0.2-beta
NuGet\Install-Package EMDD.KtMatrix -Version 1.0.2-beta
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="EMDD.KtMatrix" Version="1.0.2-beta" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EMDD.KtMatrix --version 1.0.2-beta
#r "nuget: EMDD.KtMatrix, 1.0.2-beta"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install EMDD.KtMatrix as a Cake Addin
#addin nuget:?package=EMDD.KtMatrix&version=1.0.2-beta&prerelease

// Install EMDD.KtMatrix as a Cake Tool
#tool nuget:?package=EMDD.KtMatrix&version=1.0.2-beta&prerelease

  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
Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.2 377 5/28/2021
1.0.2-beta 171 4/26/2021
1.0.1-beta 188 4/13/2021
1.0.0 362 3/21/2021

Added MapToNewMatrix on LwMatrix