Click or drag to resize

DoubleVectorSubtract(Double, DoubleVector, DoubleVector) Method

Subtracts a vector from a scalar and puts the result into another vector.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public static void Subtract(
	double s,
	DoubleVector u,
	DoubleVector v
)

Parameters

s  Double
A scalar.
u  DoubleVector
A vector.
v  DoubleVector
A vector to hold the result.
Exceptions
ExceptionCondition
MismatchedSizeExceptionThrown if the two vectors are not of the same length.
Remarks
u[i] = s - v[i]
See Also