Skip to content

Commit

Permalink
Update README.
Browse files Browse the repository at this point in the history
  • Loading branch information
jenetics committed Jan 9, 2023
1 parent 72414c7 commit ef87133
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,11 @@ A.assign(new double[][] {

// "Direct" creation from element array. Faster and
// doesn't create additional objects.
final var B = new DoubleMatrix2d(
new Structure2d(new Extent2d(3, 3)),
new DenseDoubleMatrix(new double[] {
10, 11, 12
13, 14, 15,
16, 17, 18
})
final var B = DoubleMatrix2d.of(
new Extent2d(3, 3),
10, 11, 12
13, 14, 15,
16, 17, 18
);

// Create a new matrix with the same extent than B.
Expand Down

0 comments on commit ef87133

Please sign in to comment.