Skip to content

Commit

Permalink
Merge 7a6eab4 into 9b8840e
Browse files Browse the repository at this point in the history
  • Loading branch information
gyrdym committed Feb 4, 2021
2 parents 9b8840e + 7a6eab4 commit bf06334
Show file tree
Hide file tree
Showing 51 changed files with 555 additions and 378 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci_pipeline.yml
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest

container:
image: google/dart:latest
image: google/dart:beta

steps:
- uses: actions/checkout@v2
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,8 @@
# Changelog

## 13.0.0-nullsafety.0
- null-safety supported

## 12.17.10
- `xrange` v1.0.0 supported

Expand Down
Expand Up @@ -11,7 +11,7 @@ class Float32MatrixDiagonalBenchmark extends BenchmarkBase {
Float32MatrixDiagonalBenchmark() :
super('Matrix initialization (diagonal)');

List<double> _source;
late List<double> _source;

static void main() {
Float32MatrixDiagonalBenchmark().report();
Expand Down
Expand Up @@ -12,7 +12,7 @@ class Float32MatrixFromColumnsBenchmark extends BenchmarkBase {
Float32MatrixFromColumnsBenchmark() :
super('Matrix initialization (fromColumns)');

List<Vector> _source;
late List<Vector> _source;

static void main() {
Float32MatrixFromColumnsBenchmark().report();
Expand Down
Expand Up @@ -12,7 +12,7 @@ class Float32MatrixFromFlattenedBenchmark extends BenchmarkBase {
Float32MatrixFromFlattenedBenchmark() :
super('Matrix initialization (fromFlattenedList)');

List<double> _source;
late List<double> _source;

static void main() {
Float32MatrixFromFlattenedBenchmark().report();
Expand Down
6 changes: 3 additions & 3 deletions benchmark/vector/baseline/regular_lists_addition.dart
Expand Up @@ -10,9 +10,9 @@ class RegularListsAdditionBenchmark extends BenchmarkBase {
RegularListsAdditionBenchmark() : super('Regular lists addition; '
'$amountOfElements elements');

List<double> list1;
List<double> list2;
final result = List<double>(amountOfElements);
late List<double> list1;
late List<double> list2;
final result = List<double>.filled(amountOfElements, 0.0);

static void main() {
RegularListsAdditionBenchmark().report();
Expand Down
Expand Up @@ -10,15 +10,15 @@ class Float32x4VectorAbsBenchmark extends BenchmarkBase {
Float32x4VectorAbsBenchmark()
: super('Vector `abs` method; $amountOfElements elements');

Vector vector;
Vector? vector;

static void main() {
Float32x4VectorAbsBenchmark().report();
}

@override
void run() {
vector.abs(skipCaching: true);
vector!.abs(skipCaching: true);
}

@override
Expand Down
Expand Up @@ -11,8 +11,8 @@ class Float32x4VectorEqualityOperatorBenchmark extends BenchmarkBase {
: super('Vector `==` operator, operands: vector, vector; '
'$amountOfElements elements');

Vector vector1;
Vector vector2;
Vector? vector1;
Vector? vector2;

static void main() {
Float32x4VectorEqualityOperatorBenchmark().report();
Expand All @@ -32,7 +32,7 @@ class Float32x4VectorEqualityOperatorBenchmark extends BenchmarkBase {
max: 1000,
dtype: DType.float32,
);
vector2 = Vector.fromList(vector1.toList());
vector2 = Vector.fromList(vector1!.toList());
}

void tearDown() {
Expand Down
Expand Up @@ -10,7 +10,7 @@ class Float32x4VectorExpBenchmark extends BenchmarkBase {
Float32x4VectorExpBenchmark()
: super('Vector `exp` method; $amountOfElements elements');

Vector vector;
late Vector vector;

static void main() {
Float32x4VectorExpBenchmark().report();
Expand Down
Expand Up @@ -10,7 +10,7 @@ class Float32x4VectorHashCodeBenchmark extends BenchmarkBase {
Float32x4VectorHashCodeBenchmark()
: super('Vector `hashCode`; $amountOfElements elements');

Vector vector;
Vector? vector;

static void main() {
Float32x4VectorHashCodeBenchmark().report();
Expand Down
Expand Up @@ -10,7 +10,7 @@ class Float32x4VectorRandomAccessBenchmark extends BenchmarkBase {
Float32x4VectorRandomAccessBenchmark()
: super('Vector `[]` operator; $amountOfElements elements');

Vector vector;
late Vector vector;

static void main() {
Float32x4VectorRandomAccessBenchmark().report();
Expand Down
Expand Up @@ -10,7 +10,7 @@ class Float32x4VectorMaxValueBenchmark extends BenchmarkBase {
Float32x4VectorMaxValueBenchmark()
: super('Vector `max` method; $amountOfElements elements');

Vector vector;
late Vector vector;

static void main() {
Float32x4VectorMaxValueBenchmark().report();
Expand Down
Expand Up @@ -10,7 +10,7 @@ class Float32x4VectorMinValueBenchmark extends BenchmarkBase {
Float32x4VectorMinValueBenchmark()
: super('Vector `min` method; $amountOfElements elements');

Vector vector;
late Vector vector;

static void main() {
Float32x4VectorMinValueBenchmark().report();
Expand Down
Expand Up @@ -11,7 +11,7 @@ class Float32x4VectorNormBenchmark extends BenchmarkBase {
Float32x4VectorNormBenchmark()
: super('Vector `norm` method; $amountOfElements elements');

Vector vector;
late Vector vector;

static void main() {
Float32x4VectorNormBenchmark().report();
Expand Down
Expand Up @@ -10,7 +10,7 @@ class Float32x4VectorPowBenchmark extends BenchmarkBase {
Float32x4VectorPowBenchmark()
: super('Vector `pow` method; $amountOfElements elements');

Vector vector;
late Vector vector;

static void main() {
Float32x4VectorPowBenchmark().report();
Expand Down
Expand Up @@ -11,7 +11,7 @@ class Float32x4VectorAndScalarAdditionBenchmark extends BenchmarkBase {
: super('Vector `+` operator, operands: vector, scalar; '
'$amountOfElements elements');

Vector vector;
late Vector vector;

static void main() {
Float32x4VectorAndScalarAdditionBenchmark().report();
Expand Down
Expand Up @@ -11,7 +11,7 @@ class Float32x4VectorAndScalarDivisionBenchmark extends BenchmarkBase {
: super('Vector `/` operator, operands: vector, scalar; '
'$amountOfElements elements');

Vector vector;
late Vector vector;

static void main() {
Float32x4VectorAndScalarDivisionBenchmark().report();
Expand Down
Expand Up @@ -11,7 +11,7 @@ class Float32x4VectorAndScalarMultiplicationBenchmark extends BenchmarkBase {
: super('Vector `*` operator, operands: vector, scalar; '
'$amountOfElements elements');

Vector vector;
late Vector vector;

static void main() {
Float32x4VectorAndScalarMultiplicationBenchmark().report();
Expand Down
Expand Up @@ -11,7 +11,7 @@ class Float32x4VectorAndScalarSubtractionBenchmark extends BenchmarkBase {
: super('Vector `-` operator, operands: vector, scalar; '
'$amountOfElements elements');

Vector vector;
late Vector vector;

static void main() {
Float32x4VectorAndScalarSubtractionBenchmark().report();
Expand Down
Expand Up @@ -10,7 +10,7 @@ class Float32x4VectorSqrtBenchmark extends BenchmarkBase {
Float32x4VectorSqrtBenchmark()
: super('Vector `sqrt` method; $amountOfElements elements');

Vector vector;
late Vector vector;

static void main() {
Float32x4VectorSqrtBenchmark().report();
Expand Down
Expand Up @@ -10,7 +10,7 @@ class Float32x4VectorSumBenchmark extends BenchmarkBase {
Float32x4VectorSumBenchmark()
: super('Vector `sum` method; $amountOfElements elements');

Vector vector;
late Vector vector;

static void main() {
Float32x4VectorSumBenchmark().report();
Expand Down
Expand Up @@ -10,7 +10,7 @@ class Float32x4VectorUniqueBenchmark extends BenchmarkBase {
Float32x4VectorUniqueBenchmark()
: super('Vector `unique` method; $amountOfElements elements');

Vector vector;
late Vector vector;

static void main() {
Float32x4VectorUniqueBenchmark().report();
Expand Down
Expand Up @@ -11,9 +11,9 @@ class Float32x4VectorAndVectorAdditionBenchmark extends BenchmarkBase {
: super('Vector `+` operator, operands: vector, vector; '
'$amountOfElements elements');

Vector vector1;
Vector vector2;
Vector vector3;
late Vector vector1;
late Vector vector2;
late Vector vector3;

static void main() {
Float32x4VectorAndVectorAdditionBenchmark().report();
Expand Down
Expand Up @@ -11,8 +11,8 @@ class Float32x4VectorAndVectorMultiplicationBenchmark extends BenchmarkBase {
: super('Vector `*` operator, operands: vector, vector; '
'$amountOfElements elements');

Vector vector1;
Vector vector2;
late Vector vector1;
late Vector vector2;

static void main() {
Float32x4VectorAndVectorMultiplicationBenchmark().report();
Expand Down

0 comments on commit bf06334

Please sign in to comment.