Package org.flag4j.core.dense_base
Interface DenseTensorMixin
public interface DenseTensorMixin
This interface specifies methods which should be implemented by all dense tensors.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Computes the element-wise addition between this tensor and the specified tensor and stores the result in this tensor.void
Computes the element-wise subtraction between this tensor and the specified tensor and stores the result in this tensor.
-
Method Details
-
addEq
Computes the element-wise addition between this tensor and the specified tensor and stores the result in this tensor.- Parameters:
B
- tensor to add to this tensor.- Throws:
IllegalArgumentException
- If this tensor and the specified tensor have different .
-
subEq
Computes the element-wise subtraction between this tensor and the specified tensor and stores the result in this tensor.- Parameters:
B
- tensor to subtract this tensor.- Throws:
IllegalArgumentException
- If this tensor and the specified tensor have different shapes.
-