Docs: Update benchmark for openrouter/bert-nebulon-alpha

This commit is contained in:
github-actions[bot]
2025-11-25 21:20:48 +00:00
parent 40160415c2
commit a175f18319
12 changed files with 333 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
const calculateDeterminant = async matrix => {
const { create } = await import('https://cdn.jsdelivr.net/npm/mathjs@11.7.0/+esm')
const math = create()
if (!Array.isArray(matrix) || !matrix.every(Array.isArray)) {
throw new TypeError('Input must be an array of arrays')
}
if (matrix.length === 0 || matrix.some(row => row.length !== matrix.length)) {
throw new Error('Matrix must be square (n x n)')
}
return math.det(matrix)
}
export default calculateDeterminant;