Instance Method

sum()

Returns the sum of the scalars in the vector.

Declaration

func sum() -> Scalar
Available when Scalar conforms to FloatingPoint.