Matrix2d class
Dart package for 2D Matrix or 2D array operations
Matrix2d m2d = Matrix2d();
Constructors
- Matrix2d()
-
Dart package for 2D Matrix or 2D array operations
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addition(
List list1, List list2) → List - Function is used when we want to compute the addition of two array.
-
arange(
int stop, [int? start, int? steps]) → List - Is one of the array creation routines based on numerical ranges. It creates an instance of ndarray with evenly spaced values and returns the reference to it.
-
compare(
List list, String operation, dynamic object) → List - compare values inside an array with given object and operations. function will return a new boolen array
-
compareobject(
List list, String operations, dynamic object) → List - compare values inside an array with given object and operations. function will return a new boolen array
-
concatenate(
List list1, dynamic list2, {int axis = 0}) → List - Concatenation refers to joining. This function is used to join two arrays of the same shape along a specified axis. The function takes the following parameters note: Axis along which arrays have to be joined. Default is 0 note 2: concatenation of n number of arrays comming soon.....
-
diagonal(
List list) → List - To find a diagonal element from a given matrix and gives output as one dimensional matrix.
-
division(
List list1, List list2) → List - Matrix element from first matrix is divided by elements from second element.Both list1 and list2 must have same shape and element in list2 must not be zero; otherwise ouput matrix contain infinity.
-
dot(
List list1, List list2) → List - Function returns the dot product of two arrays. For 2-D vectors, it is the equivalent to matrix multiplication. For 1-D arrays, it is the inner product of the vectors. For N-dimensional arrays, it is a sum product over the last axis of a and the second-last axis of b.
-
fill(
int row, int cols, dynamic value) → List -
Just like
zeros()
andones()
this function will return a new array of given shape, with given object(anything btw strings too) -
flatten(
List list) → List - Used to get a copy of an given array collapsed into one dimension
-
linspace(
int start, int end, [int number = 50]) → dynamic - Returns number spaces evenly w.r.t interval. Similar to arange but instead of step it uses sample number.
-
max(
List list, {int? axis}) → List - Functions, used to find the maximum value for any given array
-
min(
List list, {int? axis}) → List - Functions, used to find the maximum value for any given array
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
ones(
int row, int cols) → List - Return a new array of given shape, with ones
-
reshape(
List list, int row, int column) → List - Reshaping means changing the shape of an array.
-
reverse(
List list, [dynamic axis = 0]) → List - Function used to reverse 2D array along axis axis is 0 by default and only support 0 and 1
-
shape(
List list) → List - The shape of an array is the number of elements in each dimension.
-
slice(
List array, List< int> row_index, [List<int> ? column_index]) → List - Function used to slice two-dimensional arrays
-
subtraction(
List list1, List list2) → List - Function is used when we want to compute the difference of two array.
-
sum(
List list) → num - Function returns the sum of array elements
-
toString(
) → String -
A string representation of this object.
inherited
-
transpose(
List list) → List - Reverse the axes of an array and returns the modified array.
-
zeros(
int row, int cols) → List - Return a new array of given shape, with zeros
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited