| FloatSparseVectorAdd(FloatVector, FloatSparseVector) Method |
Adds a dense vector to a sparse vector. The result is a dense vector.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public static FloatVector Add(
FloatVector y,
FloatSparseVector x
)
Public Shared Function Add (
y As FloatVector,
x As FloatSparseVector
) As FloatVector
public:
static FloatVector^ Add(
FloatVector^ y,
FloatSparseVector^ x
)
static member Add :
y : FloatVector *
x : FloatSparseVector -> FloatVector
Parameters
- y FloatVector
- A dense vector.
- x FloatSparseVector
- A sparse vector.
Return Value
FloatVectorA new vector containing the sum
x + y.
Remarks u[i] = x[i] + y[i]
See Also