Click or drag to resize

DoubleVectorAdd(Double, DoubleVector, DoubleVector) Method

Adds a scalar and 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 Add(
	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