How to fix 'Cannot use namespace as a type ts (2709)' in typescript? In algorithms for matrix multiplication (eg Strassen), why do we say n is equal to the number of rows and not the number of elements in both matrices? Recall that these need to be declared in a .d.ts file.

What am I doing wrong? For a better experience, please enable JavaScript in your browser before proceeding.