Strategy DesignPatern: This is the abstract class that defines what will happen, then specific instance (that depends on the execuion=operation type (CPU/GPU/cublas..)) will execute the queried operation
Пример #1
0
 public override void Validate(MyValidator validator)
 {
     validator.AssertError(MyMatrixOps.Validate(Operation, A, B, Output), this, "Wrong matrix dimensions for the specific operation");
 }
Пример #2
0
 public override void UpdateMemoryBlocks()
 {
     Output = MyMatrixOps.SetupResultSize(Operation, A, B, Output);
 }