Skip to content

The matrix class designed for Flutter can also be used in pure Dart, and is also a full-platform alternative to the Matply library. It supports basic matrix operations, linear algebra, probability theory and mathematical statistics, geometric simulation, central difference, etc.

License

Notifications You must be signed in to change notification settings

PythonnotJava/flutter_matrix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flutter Matrix


💡What's the Flutter Matrix?

The matrix class designed for Flutter supports any platform because it is implemented in pure Dart. It supports basic matrix operations, linear algebra, probability theory and mathematical statistics, geometric simulation, center difference, and more.

Pub address : https://pub.dev/packages/flutter_matrix

🗺️RoadMap

graph TB 
    ListExtension([MatrixExtension])
    Basement[(MatrixBase)]
    Wrapper[(MatrixWrapper)]
    Geometry(MatrixGeometry)
    Linalg(MatrixLinalg)
    Math(MatrixMath)
    MachineLearning(MatrixML)
    Random(MatrixRandom)
    Visualization(MatrixVisualization)
    Matrix{{Matrix}}
    MatrixCollection{{MatrixCollection}}
    
    ListExtension --> Basement --> Wrapper --> Matrix;
    Wrapper --> MatrixCollection;

    subgraph ExtensionModules
        Geometry(MatrixGeometry)
        Linalg(MatrixLinalg)
        Math(MatrixMath)
        MachineLearning(MatrixML)
        Random(MatrixRandom)
        Visualization(MatrixVisualization)
    end
    
    ExtensionModules --> Basement
    
Loading

📄Need a local document?

Flutter Matrix provides a local doc (by markdown, but you need to rename the folder to docs first) folder and a mkdocs-based building module. If you have Python in your environment, change to the same directory as the mkdocs.yml file and run the following command.

pip install mkdocs mkdocs-material pymdown-extensions mkdocs-material-extensions

After successfully installing the above libraries, run the following command again. You will find that you have generated a folder named site. Open the index.html in the folder to browse the online web documents.

mkdocs build

I also provide online documents: 👉Click Me!👈

🛎️Attention.

  • Flutter Matrix can run in a pure Dart environment.

✍️Example

  • Use arrange to generate a data matrix with evenly spaced intervals.
import 'package:flutter_matrix/matrix_type.dart';

main(){
  data_format = "%2.0f";
  var t = MatrixBase.linspace<Matrix>(
      row: 10, 
      column: 10, 
      start: 0, 
      end: 100, 
      keep: true
  );
  t.visible();
}
  • Output.
[
 [  0   1   2   3   4   5   6   7   8   9]
 [ 10  11  12  13  14  15  16  17  18  19]
 [ 20  21  22  23  24  25  26  27  28  29]
 [ 30  31  32  33  34  35  36  37  38  39]
 [ 40  41  42  43  44  45  46  47  48  49]
 [ 51  52  53  54  55  56  57  58  59  60]
 [ 61  62  63  64  65  66  67  68  69  70]
 [ 71  72  73  74  75  76  77  78  79  80]
 [ 81  82  83  84  85  86  87  88  89  90]
 [ 91  92  93  94  95  96  97  98  99 100]
]

About

The matrix class designed for Flutter can also be used in pure Dart, and is also a full-platform alternative to the Matply library. It supports basic matrix operations, linear algebra, probability theory and mathematical statistics, geometric simulation, central difference, etc.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages