willnode / N-Matrix-Programmer

A software to write an optimized code that calculates inverse and determinant of N by N matrix.

Home Page:https://stackoverflow.com/a/44446912/3908409

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

N-Matrix-Programmer

A program to create a program that calculates inverse and determinant of N by N matrix.

UPDATE (2022): I build a collection of libraries that does this for you: https://github.com/willnode/matrix-inversion

Screenshot

Background

This program is created for programmers who want to write the program which will do inverse and determinant of N by N matrix.

For those who need it, it creates the code for you automatically in an instant, therefore saves you hours (even days) of time.

The output syntaxes and N-order can be changed via code or command-line arguments.

Output samples

Here's one of output in valid C# code: 1x1 2x2 3x3 4x4 5x5 6x6 7x7 8x8 9x9 10x10.

Warning

The computation time (including output code size and processing memory) is O(N!N^3) as its complexity always increased over N.

However, for N>=4 The output steps is cached in local variables progressively for every (N-1), therefore the computation time is only O(N!), making the most efficient code that you'll ever see.

License

The program and its generated code are both licensed as MIT

About

A software to write an optimized code that calculates inverse and determinant of N by N matrix.

https://stackoverflow.com/a/44446912/3908409

License:MIT License


Languages

Language:C# 99.0%Language:Batchfile 1.0%