mul method
Polynomial<T>
mul(
- Object other, {
- DataType<
T> ? dataType, - PolynomialFormat? format,
- bool? fftMultiply,
Multiplies this Polynomial with other
.
Implementation
Polynomial<T> mul(
/* Polynomial<T>|T */ Object other, {
DataType<T>? dataType,
PolynomialFormat? format,
bool? fftMultiply,
}) {
if (other is Polynomial<T>) {
return mulPolynomial(other,
dataType: dataType, format: format, fftMultiply: fftMultiply);
} else if (other is T) {
return mulScalar(other as T, dataType: dataType, format: format);
} else {
throw ArgumentError.value(other, 'other', 'Invalid multiplication.');
}
}