Skip to content

Commit

Permalink
Merge branch 'develop' into v13
Browse files Browse the repository at this point in the history
  • Loading branch information
josdejong committed Feb 22, 2024
2 parents e1817ba + 4c42a14 commit f37d415
Show file tree
Hide file tree
Showing 41 changed files with 486 additions and 338 deletions.
4 changes: 4 additions & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -239,5 +239,9 @@ Brooks Smith <[email protected]>
Alex Edgcomb <[email protected]>
S.Y. Lee <[email protected]>
Hudsxn <[email protected]>
Rich Martinez <[email protected]>
Rich Martinez <[email protected]>
RandomGamingDev <[email protected]>
Brian Fugate <[email protected]>

# Generated by tools/update-authors.js
11 changes: 10 additions & 1 deletion HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
# History


# Unpublished changes since 12.3.2
# 2024-02-22, 12.4.0

- Feat: implement support for trailing commas in matrices (#3154, #2968).
Thanks @dvd101x.
- Feat: improve the performance of `multiply` a lot by adding matrix type
inferencing (#3149). Thanks @RandomGamingDev.
- Fix: #3100 function `round` not handling round-off errors (#3136).
Thanks @BrianFugate.
- Fix: `PartitionedMap` and `ObjectWrappingMap` missing a property
`Symbol.iterator`, causing problems when trying `new Map(scope)` (#3156).
- Fix: type definitions of function `mode` (#3153). Thanks @rich-martinez.
- Docs: describe method `getAllAsMap` in the Parser docs (#3158, #3157).
Thanks @dvd101x.

Expand Down
4 changes: 2 additions & 2 deletions docs/datatypes/matrices.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ const array = [[2, 0], [-1, 3]] // Array
const matrix = math.matrix([[7, 1], [-2, 3]]) // Matrix

// perform a calculation on an array and matrix
math.square(array) // Array, [[4, 0], [1, 9]]
math.square(matrix) // Matrix, [[49, 1], [4, 9]]
math.map(array, math.square) // Array, [[4, 0], [1, 9]]
math.map(matrix, math.square) // Matrix, [[49, 1], [4, 9]]

// perform calculations with mixed array and matrix input
math.add(array, matrix) // Matrix, [[9, 1], [-3, 6]]
Expand Down
Loading

0 comments on commit f37d415

Please sign in to comment.