Ejemplo n.º 1
0
 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);
Ejemplo n.º 2
0
 public static IMatrix operator *(Matrix LeftOp, double dScalar)
 {
     return(LeftOp.ScalarMultiply(dScalar));
 }
Ejemplo n.º 3
0
 public static IMatrix operator -(Matrix LeftOp, Matrix RightOp)
 {
     return(LeftOp.Subtract(RightOp));
 }
Ejemplo n.º 4
0
 public static IMatrix operator *(Matrix LeftOp, Matrix RightOp)
 {
     return(LeftOp.Multiply(RightOp));
 }
Ejemplo n.º 5
0
        //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));
        }