SparseVector<T>.ElementwiseMultiplyInPlace Method

Definition

Namespace: Numerics.NET.LinearAlgebra
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.7.0

Overload List

ElementwiseMultiplyInPlace(Vector<T>) Multiplies the components of this instance by the corresponding components of another vector.
ElementwiseMultiplyInPlace(Vector<T>, SparseElementwiseMode) Multiplies this vector in-place element-wise by another vector.

ElementwiseMultiplyInPlace(Vector<T>)

Multiplies the components of this instance by the corresponding components of another vector.
C#
public override Vector<T> ElementwiseMultiplyInPlace(
	Vector<T> vector
)

Parameters

vector  Vector<T>
A Vector<T>.

Return Value

Vector<T>
A reference to this instance.

Exceptions

ArgumentNullException

vector is null.

DimensionMismatchException

The length of vector does not equal the length of this instance.

ElementwiseMultiplyInPlace(Vector<T>, SparseElementwiseMode)

Multiplies this vector in-place element-wise by another vector.
C#
public override Vector<T> ElementwiseMultiplyInPlace(
	Vector<T> vector,
	SparseElementwiseMode mode
)

Parameters

vector  Vector<T>
A vector.
mode  SparseElementwiseMode
The sparse element-wise arithmetic mode. This parameter affects sparse operands only.

Return Value

Vector<T>
A reference to this instance.

Remarks

In Strict mode, sparse operands are treated as logical dense vectors. If this instance is sparse, it may be fully materialized while preserving the same instance.

Exceptions

ArgumentNullException

vector is null.

ArgumentOutOfRangeExceptionmode is not a valid SparseElementwiseMode value.
DimensionMismatchException

The length of vector does not equal the length of this instance.

See Also