| FloatSparseVectorAdd(FloatSparseVector, FloatVector) 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(
FloatSparseVector x,
FloatVector y
)
Public Shared Function Add (
x As FloatSparseVector,
y As FloatVector
) As FloatVector
public:
static FloatVector^ Add(
FloatSparseVector^ x,
FloatVector^ y
)
static member Add :
x : FloatSparseVector *
y : FloatVector -> FloatVector
Parameters
- x FloatSparseVector
- A sparse vector.
- y FloatVector
- A dense vector.
Return Value
FloatVectorA new vector containing the sum
x + y.
Remarks u[i] = x[i] + y[i]
See Also