MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / isTriangular

Function isTriangular

src/compute-engine/tensor/tensors.ts:273–276  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

271 const data = this.data;
272 const eq = this.field.equals.bind(this.field);
273 for (let i = 0; i < n; i++)
274 for (let j = i + 1; j < n; j++)
275 if (!eq(data[i * n + j], data[j * n + i])) return false;
276 return true;
277 }
278
279 // Aka antisymmetric matrix, skew-symmetric matrix, or antimetric matrix

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected