flutter_matrix 0.1.4 copy "flutter_matrix: ^0.1.4" to clipboard
flutter_matrix: ^0.1.4 copied to clipboard

A Flutter-friendly matrix library for Dart, offering basic operations, linear algebra, probability, statistics, geometry, and more.

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

📄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.1f";
  var mt = Matrix.linspace(
      start: 0,
      end: 10, 
      row: 10, 
      column: 10, 
      keep: true
  );
  mt.visible();
}
  • Output.
[
 [ 0.0  0.1  0.2  0.3  0.4  0.5  0.6  0.7  0.8  0.9]
 [ 1.0  1.1  1.2  1.3  1.4  1.5  1.6  1.7  1.8  1.9]
 [ 2.0  2.1  2.2  2.3  2.4  2.5  2.6  2.7  2.8  2.9]
 [ 3.0  3.1  3.2  3.3  3.4  3.5  3.6  3.7  3.8  3.9]
 [ 4.0  4.1  4.2  4.3  4.4  4.5  4.6  4.7  4.8  4.9]
 [ 5.1  5.2  5.3  5.4  5.5  5.6  5.7  5.8  5.9  6.0]
 [ 6.1  6.2  6.3  6.4  6.5  6.6  6.7  6.8  6.9  7.0]
 [ 7.1  7.2  7.3  7.4  7.5  7.6  7.7  7.8  7.9  8.0]
 [ 8.1  8.2  8.3  8.4  8.5  8.6  8.7  8.8  8.9  9.0]
 [ 9.1  9.2  9.3  9.4  9.5  9.6  9.7  9.8  9.9 10.0]
]
0
likes
150
points
61
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter-friendly matrix library for Dart, offering basic operations, linear algebra, probability, statistics, geometry, and more.

Homepage
Repository (GitHub)
View/report issues

Topics

#matrix #random #linalg #math

Documentation

Documentation
API reference

License

BSD-3-Clause (license)

Dependencies

collection

More

Packages that depend on flutter_matrix