def dot(self, other): """ Matrix multiplication. :param other: (*2D or 1D Array*) Matrix or vector b. :returns: Result Matrix or vector. """ if isinstance(other, list): other = array(other) r = ArrayMath.dot(self.array, other.array) return MIArray(r)