Sparse Vector<T>.Elementwise Multiply In Place Method
Definition
Namespace: Numerics.NET.LinearAlgebra
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.7.0
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.7.0
Overload List
| Elementwise | Multiplies the components of this instance by the corresponding components of another vector. |
| Elementwise | 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.
public override Vector<T> ElementwiseMultiplyInPlace(
Vector<T> vector
)Parameters
Return Value
Vector<T>A reference to this instance.
Exceptions
| Argument | vector is null. |
| Dimension | 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.
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
| Argument | vector is null. |
| Argument | mode is not a valid SparseElementwiseMode value. |
| Dimension | The length of vector does not equal the length of this instance. |