Run() public method

public Run ( MatOperation operation, MyMemoryBlock A ) : void
operation MatOperation
A MyMemoryBlock
return void
Example #1
0
 public override void Execute()
 {
     //mat_opCublas.Run(Owner.Operation, Owner.A, Owner.B, Owner.Output);
     if (Owner.B != null)
     {
         mat_operation.Run(Owner.Operation, Owner.A, Owner.B, Owner.Output);
     }
     else
     {
         mat_operation.Run(Owner.Operation, Owner.A, 1, Owner.Output);
     }
 }
Example #2
0
 public override void Execute()
 {
     if (Owner.B != null)
     {
         mat_operation.Run(Owner.Operation, Owner.A, Owner.B, Owner.Output);
     }
     else
     {
         if (float.IsNaN(DataInput0))
         {
             mat_operation.Run(Owner.Operation, Owner.A, Owner.Output);
         }
         else
         {
             mat_operation.Run(Owner.Operation, Owner.A, DataInput0, Owner.Output);
         }
     }
 }