mirror of
https://github.com/multipleof4/lynchmark.git
synced 2026-01-14 08:37:56 +00:00
Docs: Update benchmark results
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
const src='https://cdn.jsdelivr.net/npm/mathjs@11.11.0/+esm'
|
||||
export const calculateDeterminant=async m=>{
|
||||
if(!Array.isArray(m)||!m.length||m.some(r=>!Array.isArray(r)||r.length!==m.length))throw new TypeError('Matrix must be square')
|
||||
const{det}=await import(src)
|
||||
return det(m)
|
||||
async function calculateDeterminant(m){
|
||||
const {det}=await import('https://cdn.jsdelivr.net/npm/mathjs@11.11.0/dist/esm/math.js')
|
||||
return det(m)
|
||||
}
|
||||
export default calculateDeterminant;
|
||||
Reference in New Issue
Block a user