public override string DelimitedText(char delimiter) => string.Join(string.Empty, $"{LeftOp.Trim()}{delimiter}".PadRight(OpNameLen), $"{RightOp.Trim()}{delimiter}".PadRight(OpNameLen), $"{OpCount.ToString()}{delimiter}".PadRight(MetricLen), $"{LeftTime}{delimiter}".PadRight(MetricLen), $"{RightTime}{delimiter}".PadRight(MetricLen), Ratio);
public static IMatrix operator *(Matrix LeftOp, double dScalar) { return(LeftOp.ScalarMultiply(dScalar)); }
public static IMatrix operator -(Matrix LeftOp, Matrix RightOp) { return(LeftOp.Subtract(RightOp)); }
public static IMatrix operator *(Matrix LeftOp, Matrix RightOp) { return(LeftOp.Multiply(RightOp)); }
//Notes that not all languages support operator overloading - (ie. Java does not) //Some languages will restrict the operators that can be overloaded //Some languages require that certain operators be overloaded in pairs public static IMatrix operator +(Matrix LeftOp, Matrix RightOp) { return(LeftOp.Add(RightOp)); }