operator / method

Vector<T> operator /(
  1. Object other
)

Returns a view of the element-wise division of this Vector by other.

Implementation

Vector<T> operator /(/* Vector<T>|T */ Object other) {
  if (other is Vector<T>) {
    return divVector(other);
  } else if (other is T) {
    return divScalar(other as T);
  } else {
    throw ArgumentError.value(other, 'other', 'Invalid scalar.');
  }
}