Click or drag to resize

DoubleVectorSubtract(DoubleVector, Double, DoubleVector) Method

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

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

Parameters

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