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: README.md
+5-8Lines changed: 5 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,12 +31,9 @@ import makeMatrix from "make-matrix";
31
31
32
32
### Create a matrix
33
33
34
-
To simply create an array of `n` dimensions, just pass `n` as the function's first parameter. And to create an array with exact dimensions, pass in an array of numbers.
34
+
To create a matrix, pass in an array with the desired dimensions.
|`dimensions`| The desired dimensions of the matrix. A number or array of numbers. |
128
+
|`dimensions`| The desired dimensions of the matrix. An array of numbers. |
132
129
|`initialValues`| The value that each point in the matrix will initialise to. Can take any value. If a callback is passed, it will be run for each point in the matrix, which will be initialised to the callbacks returned value. (Optional — defaults to `null`). |
0 commit comments