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 e5a8541 commit fee325eCopy full SHA for fee325e
src/abstractMatrix.js
@@ -1406,7 +1406,7 @@ function abstractMatrix(superCtor) {
1406
*/
1407
selection(rowIndices, columnIndices) {
1408
var indices = util.checkIndices(this, rowIndices, columnIndices);
1409
- var newMatrix = new this.constructor(rowIndices.length, columnIndices.length);
+ var newMatrix = new this.constructor[Symbol.species](rowIndices.length, columnIndices.length);
1410
for (var i = 0; i < indices.row.length; i++) {
1411
var rowIndex = indices.row[i];
1412
for (var j = 0; j < indices.column.length; j++) {
0 commit comments