Ejemplo n.º 1
0
 public override void VisitMatrixAdditionOperationElement(MatrixAdditionOperationElement element)
 {
     VisitElement(element.getLhs());
       VisitElement(element.getRhs());
       Thread threadObj = new Thread(new ThreadStart(MatrixAddition));
       threadObj.Start();
       threadObj.Join();
 }
Ejemplo n.º 2
0
 //----< VisitMatrixAdditionOperationElement >------------------------------
 public override void VisitMatrixAdditionOperationElement(MatrixAdditionOperationElement element)
 {
     VisitElement(element.getLhs());
     Console.Write("+ ");
     dele("+ ");
     VisitElement(element.getRhs());
     Console.Write(" ");
     dele(" ");
 }
Ejemplo n.º 3
0
 public abstract void VisitMatrixAdditionOperationElement(MatrixAdditionOperationElement element);
Ejemplo n.º 4
0
 //----< visit Matrix Addition Operation >------------------------------
 public override void VisitMatrixAdditionOperationElement(MatrixAdditionOperationElement element)
 {
     VisitElement(element.getLhs());
     VisitElement(element.getRhs());
     MatrixElement rhs = mStack.Pop();
     MatrixElement lhs = mStack.Pop();
     MatrixElement result = new MatrixElement();
     bool ret = lhs.Addition(lhs, rhs, ref result);
     mStack.Push(result);
 }