times(other) {
        //noinspection JSCheckFunctionSignatures
        return other instanceof Matrix ? this._timesMatrix(other) : this._timesScalar(other);
    }
Returns the product of the receiving matrix and the given matrix or scalar.
@param {!Matrix|!number|!Complex} other A matrix or a scalar value.
@returns {!Matrix}