MCPcopy
hub / github.com/josdejong/mathjs / arraySize

Function arraySize

src/utils/array.js:15–24  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

13 * @return {number[]} size
14 */
15export function arraySize (x) {
16 const s = []
17
18 while (Array.isArray(x)) {
19 s.push(x.length)
20 x = x[0]
21 }
22
23 return s
24}
25
26/**
27 * Recursively validate whether each element in a multi dimensional array

Callers 15

array.test.jsFile · 0.90
_ncumSumDimFunction · 0.90
_nmeanDimFunction · 0.90
createSolveValidationFunction · 0.90
multiply.jsFile · 0.90
pinv.jsFile · 0.90
_crossFunction · 0.90
sqrtm.jsFile · 0.90
inv.jsFile · 0.90
_validateSizeFunction · 0.90
concat.jsFile · 0.90
_ndFftFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…