Skip to content

Commit

Permalink
WIP: Matrix: flattened -> fromFlattened
Browse files Browse the repository at this point in the history
  • Loading branch information
gyrdym committed Apr 8, 2019
1 parent 2265096 commit 5b970bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/matrix.dart
Expand Up @@ -41,7 +41,7 @@ abstract class Matrix {

/// Creates a matrix from flattened iterable of length that is equal to
/// [rowsNum] * [columnsNum]
factory Matrix.flattened(List<double> source, int rowsNum,
factory Matrix.fromFlattened(List<double> source, int rowsNum,
int columnsNum, {Type dtype = Float32x4}) {
switch (dtype) {
case Float32x4:
Expand Down
2 changes: 1 addition & 1 deletion lib/src/matrix/base_matrix.dart
Expand Up @@ -278,7 +278,7 @@ abstract class BaseMatrix with
source[i * matrix.columnsNum + j] = element;
}
}
return Matrix.flattened(source, rowsNum, matrix.columnsNum, dtype: dtype);
return Matrix.fromFlattened(source, rowsNum, matrix.columnsNum, dtype: dtype);
}

Matrix _matrixByVectorDiv(Vector vector) {
Expand Down

0 comments on commit 5b970bd

Please sign in to comment.