static from1DArray(newRows, newColumns, newData) {
                var length = newRows * newColumns;
                if (length !== newData.length) {
                    throw new RangeError('Data length does not match given dimensions');
                }
                var newMatrix = new this(newRows, newColumns);
                for (var row = 0; row < newRows; row++) {
                    for (var column = 0; column < newColumns; column++) {
                        newMatrix.set(row, column, newData[row * newColumns + column]);
                    }
                }
                return newMatrix;
            }
Constructs a Matrix with the chosen dimensions from a 1D array
@param {number} newRows - Number of rows
@param {number} newColumns - Number of columns
@param {Array} newData - A 1D array containing data for the matrix
@return {Matrix} - The new matrix