flutter_matrix library

Classes

Alert
Special attention content information warning by Alert.
Complex
Define basic operations on complex numbers. For more information, please see https://oi-wiki.org/math/complex/.
Marker
Just a general marker.
Matrix
MatrixBase<T extends MatrixBase<T>>
MatrixBase is the matrix abstract base class, which has built-in basic matrix operations and uses two-bit floating-point arrays for data storage.
MatrixCollection
MatrixCollection不同于Matrix,它内置了一个拓展属性并且根据不同的实例进行哈希 Dart标准规定, ✅ 如果 a == b 为 true,那么 a.hashCode == b.hashCode 必须为 true。 ✅ 如果 a.hashCode == b.hashCode,a == b 可以是 false。
MatrixWrapper<T extends MatrixBase<T>>
RandomGenerator
A random generator class. Note that this class does not perform a legal range check on its parameters.
Range
Range is an abstraction of a range, where start is allowed to be no greater than end. count indicates the number of equal parts of the range. When count is equal to zero, it indicates a continuous range. closure_left, closure_right indicate whether the range contains edge values. The default is a continuous range with left closed and right open. When the range is infinite at any boundary, count is always 0 and the boundary can only be opened.
Since
When a change needs to be specifically marked, use the Since class.

Enums

Typed
A package encapsulates unrelated utilities. Type specification, int and double are standard types, bool is constructed using BoolList which saves more memory, and others are related to TypedData.

Mixins

MatrixFunctools<T extends MatrixBase<T>>
Function modules operate matrix data according to conditions.
MatrixGeometry<T extends MatrixBase<T>>
The returned matrix data in this module is of shape size * 2, representing size points.
MatrixLinalg<T extends MatrixBase<T>>
Linear algebra related operations on matrices.
MatrixMath<T extends MatrixBase<T>>
Matrix math support.
MatrixML<T extends MatrixBase<T>>
Extension of the matrix machine learning direction.
MatrixRandom<T extends MatrixBase<T>>
This module provides functions in probability theory and mathematical statistics.
MatrixVisualization<T extends MatrixBase<T>>
Visual abstraction of matrix data.

Extensions

MatrixExtension on List<List<double>>
This module is an extension module for two-dimensional floating-point arrays and is also the underlying implementation of matrix logic.

Constants

e → const double
EPSILON → const double
Calculation accuracy
euler → const double
ln2 → const double
log10e → const double
log2e → const double
OriginVector → const List<double>
The relative starting point of the point, the default is the origin.
pi → const double
sqrt1_2 → const double
sqrt2 → const double

Properties

data_format String
Data output format.
getter/setter pair
tolerance_round double
Precision error allowable value.
getter/setter pair

Functions

abs(double x) double
acosh(double x) double
adaptiveSimpson({required double f(double x), required double a, required double b, double eps = 1e-8, int maxDepth = 20}) double
Adaptive Simpson algorithm is used to solve the integral. The parameters are as follows:
asinh(double x) double
atanh(double x) double
binomialCoefficient(int n, int k) int
Calculate the number of combinations: C(n, k) = n! / (k! * (n-k)!)
ceil(double x) double
choose<T>({required List<T> list, required int n, int? m, bool back = false, int? seed}) List<T>
Randomly select n data from a list of length m. m can be passed in selectively. back is true to indicate that it can be put back after each selection.
cosh(double x) double
cube(double x) double
degree(double x) double
diffCentral(double x, double func(double)) double
Center difference. Borrowed from the GSL2.8 module : https://www.gnu.org/software/gsl/
floor(double x) double
hexToAnsi(String hexColor) String
Hexadecimal to Ansi
log10(double x) double
radian(double x) double
registerSubClassFromListConstructor(Type type, FromListConstructor<MatrixBase> fromListConstructor) → void
When any extended subclass inherits from MatrixWrapper, please register it before calling the class for the first time. The value type is FromListConstructor, which points to the constructor of the subclass.
round(double x) double
sinh(double x) double
Basic mathematical functions not in dart:math.
square(double x) double
tanh(double x) double

Typedefs

FromListConstructor<T extends MatrixBase<T>> = T Function(List<List<double>> data, {int? known_column, int? known_row})