public override BaseMathEntity MatrixMultiply(BaseMathEntity x) { if (x is Vector) { return((this) & ((Vector)x)); } return(base.Add(x)); }
public override BaseMathEntity Subtract(BaseMathEntity x) { if (x is Vector) { return((this) - ((Vector)x)); } return(base.Add(x)); }
public override BaseMathEntity Add(BaseMathEntity x) { if (x is Number) { return((this) + ((Number)x)); } return(base.Add(x)); }
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)); }
public virtual BaseMathEntity MatrixMultiply(BaseMathEntity x) { throw new Exception("Operation not implemented"); }
public virtual BaseMathEntity Subtract(BaseMathEntity x) { throw new Exception("Operation not implemented"); }
public override BaseMathEntity MatrixMultiply(BaseMathEntity x) { return(Multiply(x)); }