MCPcopy Create free account
hub / github.com/alignoth/alignoth / from

Method from

resources/vega.min.js:24747–24758  ·  view source on GitHub ↗
(t)

Source from the content-addressed store, hash-verified

24745 qF = new Uint32Array(512);
24746 class PF {
24747 static from(t) {
24748 let e =
24749 arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : GF,
24750 n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : VF;
24751 const r = t.length,
24752 i = new Float64Array(2 * r);
24753 for (let o = 0; o < r; o++) {
24754 const r = t[o];
24755 ((i[2 * o] = e(r)), (i[2 * o + 1] = n(r)));
24756 }
24757 return new PF(i);
24758 }
24759 constructor(t) {
24760 const e = t.length >> 1;
24761 if (e > 0 && "number" != typeof t[0])

Callers 15

MeFunction · 0.45
CeFunction · 0.45
tsFunction · 0.45
isFunction · 0.45
WlFunction · 0.45
NcFunction · 0.45
WhFunction · 0.45
hdFunction · 0.45
vega.min.jsFile · 0.45
RDFunction · 0.45
sCFunction · 0.45
rFunction · 0.45

Calls 2

eFunction · 0.85
nFunction · 0.70

Tested by

no test coverage detected