The scaled function template takes
a scaling factor alpha and
an mdspanx, and
returns a new read-only mdspan with the same domain as x,
that represents the elementwise product of alpha
with each element of x.
template<class ScalingFactor,
class ElementType, class Extents, class Layout, class Accessor>constexprauto scaled(ScalingFactor alpha, mdspan<ElementType, Extents, Layout, Accessor> x);