We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95b5f4d commit a80cfeaCopy full SHA for a80cfea
src/index.js
@@ -64,11 +64,11 @@ export class SparseMatrix {
64
}
65
66
/**
67
- * @returns {Float64Array[]}
+ * @returns {number[][]}
68
*/
69
to2DArray() {
70
const copy = Array.from({ length: this.rows }, () =>
71
- Float64Array.from({ length: this.columns }),
+ Array.from({ length: this.columns }, () => 0),
72
);
73
this.withEachNonZero((i, j, v) => {
74
copy[i][j] = v;
0 commit comments