function checkDimensions(matrix, otherMatrix) { // eslint-disable-line no-unused-vars
            if (matrix.rows !== otherMatrix.rows ||
                matrix.columns !== otherMatrix.columns) {
                throw new RangeError('Matrices dimensions must be equal');
            }
        }
@private
Check that two matrices have the same dimensions
@param {Matrix} matrix
@param {Matrix} otherMatrix