You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/index.ts
+1-4Lines changed: 1 addition & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -3,10 +3,7 @@ import type { Matrix, Vector } from "./types.js";
3
3
/**
4
4
* Creates a matrix (multi-dimensional array) with your desired dimensions and values.
5
5
*
6
-
* If a number is passed as the `dimensions` parameter, a matrix with that number of dimensions
7
-
* is returned. If an array of numbers is passed, the returned matrix have those exact dimensions.
8
-
*
9
-
* @param dimensions The desired dimensions of the matrix. A number or array of numbers.
6
+
* @param dimensions The desired dimensions of the matrix.
10
7
* @param initialValues The initial value for each point in the matrix. Can also take a callback function—with an argument that resolves to the current point's vector—to fill the matrix dynamically. Defaults to `null`.
0 commit comments