예제 #1
0
 public override BaseMathEntity MatrixMultiply(BaseMathEntity x)
 {
     if (x is Vector)
     {
         return((this) & ((Vector)x));
     }
     return(base.Add(x));
 }
예제 #2
0
 public override BaseMathEntity Subtract(BaseMathEntity x)
 {
     if (x is Vector)
     {
         return((this) - ((Vector)x));
     }
     return(base.Add(x));
 }
예제 #3
0
 public override BaseMathEntity Add(BaseMathEntity x)
 {
     if (x is Number)
     {
         return((this) + ((Number)x));
     }
     return(base.Add(x));
 }
예제 #4
0
 public override BaseMathEntity Multiply(BaseMathEntity x)
 {
     if (x is Number)
     {
         return((this) * ((Number)x));
     }
     else if (x is Vector)
     {
         return(((Vector)x) * (this));
     }
     return(base.Add(x));
 }
예제 #5
0
 public virtual BaseMathEntity MatrixMultiply(BaseMathEntity x)
 {
     throw new Exception("Operation not implemented");
 }
예제 #6
0
 public virtual BaseMathEntity Subtract(BaseMathEntity x)
 {
     throw new Exception("Operation not implemented");
 }
예제 #7
0
 public override BaseMathEntity MatrixMultiply(BaseMathEntity x)
 {
     return(Multiply(x));
 }