As Span<double> and IEnumerable<double> are not compatible, it is necessary to support Span version to make user code more effiecient.