Package org.flag4j.core.dense_base
Interface DenseVectorMixin
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Computes the element-wise addition between this vector and the specified vector and stores the result in this vector.void
Computes the element-wise addition between this vector and the specified vector and stores the result in this vector.void
Computes the element-wise subtraction between this vector and the specified vector and stores the result in this vector.void
Computes the element-wise subtraction between this vector and the specified vector and stores the result in this vector.
-
Method Details
-
addEq
Computes the element-wise addition between this vector and the specified vector and stores the result in this vector.- Parameters:
B
- Vector to add to this vector.- Throws:
IllegalArgumentException
- If this vector and the specified vector have different lengths.
-
addEq
Computes the element-wise addition between this vector and the specified vector and stores the result in this vector.- Parameters:
B
- Vector to add to this vector.- Throws:
IllegalArgumentException
- If this vector and the specified vector have different lengths.
-
subEq
Computes the element-wise subtraction between this vector and the specified vector and stores the result in this vector.- Parameters:
B
- Vector to subtract this vector.- Throws:
IllegalArgumentException
- If this vector and the specified vector have different lengths.
-
subEq
Computes the element-wise subtraction between this vector and the specified vector and stores the result in this vector.- Parameters:
B
- Vector to subtract this vector.- Throws:
IllegalArgumentException
- If this vector and the specified vector have different lengths.
-