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);
 }