Skip to content

Commit

Permalink
WIP: changelog corrected
Browse files Browse the repository at this point in the history
  • Loading branch information
gyrdym committed Apr 9, 2019
1 parent 5b970bd commit 71dd11d
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 7 deletions.
16 changes: 9 additions & 7 deletions CHANGELOG.md
@@ -1,11 +1,12 @@
# Changelog

## 8.0.0
- `Matrix`: `rows` constructor renamed to `fromRows`
- `Matrix`: `columns` constructor renamed to `fromColumns`
- `Matrix`: `rows` getter added
- `Matrix`: `columns` getter added
- `Matrix`: `dimensions` field added
- `Matrix`:
- `rows` constructor renamed to `fromRows`
- `columns` constructor renamed to `fromColumns`
- `flattened` constructor renamed to `fromFlattened`
- `rows` getter added
- `columns` getter added

## 7.0.0
- `Matrix`: `ZRange` support (instead of the library built-in `Range`)
Expand All @@ -14,8 +15,9 @@
- `Vector`: `unique` method refactored

## 6.1.0
- `Vector`: normalize method added to interface and supported in `Float32x4Vector`
- `Vector`: rescale method added to interface and supported in `Float32x4Vector`
- `Vector`:
- normalize method added to interface and supported in `Float32x4Vector`
- rescale method added to interface and supported in `Float32x4Vector`
- `VectorBase`: cache for popular operations implemented

## 6.0.2
Expand Down
27 changes: 27 additions & 0 deletions test/float32x4_matrix_test.dart
Expand Up @@ -809,6 +809,33 @@ void main() {
]);
expect(() => matrix.toVector(), throwsException);
});

test('should return rows', () {
final matrix = Float32x4Matrix.from([
[4.0, 8.0, 12.0, 16.0],
[20.0, 24.0, 28.0, 32.0],
[36.0, .0, -8.0, -12.0],
]);
expect(matrix.rows, equals([
[4.0, 8.0, 12.0, 16.0],
[20.0, 24.0, 28.0, 32.0],
[36.0, .0, -8.0, -12.0],
]));
});

test('should return columns', () {
final matrix = Float32x4Matrix.from([
[4.0, 8.0, 12.0, 16.0],
[20.0, 24.0, 28.0, 32.0],
[36.0, .0, -8.0, -12.0],
]);
expect(matrix.columns, equals([
[4.0, 20.0, 36.0],
[8.0, 24.0, .0],
[12.0, 28.0, -8.0],
[16.0, 32.0, -12.0],
]));
});
});

group('Float32x4Matrix.uniqueRows', () {
Expand Down

0 comments on commit 71dd11d

Please sign in to comment.