vec


function vec(x:NumericLike) -> NumericVectorLike

Vectorize.

  • x Argument.

Returns If x is a scalar then returns a vector with a single element. If x is a vector then returns it as-is. If x is a matrix then forms a vector by stacking its columns atop one another.

See also mat