MCPcopy Index your code
hub / github.com/TheAlgorithms/JavaScript / copyMatrix

Function copyMatrix

Maths/Fibonacci.js:94–96  ·  view source on GitHub ↗
(A)

Source from the content-addressed store, hash-verified

92// Using Matrix exponentiation to find n-th fibonacci in O(log n) time
93
94const copyMatrix = (A) => {
95 return A.map((row) => row.map((cell) => cell))
96}
97
98const Identity = (size) => {
99 const isBigInt = typeof size === 'bigint'

Callers 2

matrixMultiplyFunction · 0.85
matrixExpoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected