예제 #1
0
 public TreeBuilderContext(ExpressionTree tree) : base(tree)
 {
     ExpressionTree = tree;
     TreeNodeStack  = new Stack <ITreeNode>();
     TreeNodeStack.Push(Tree);
     TensorQueue        = new Queue <Tensor>();
     TensorIndicesQueue = new Queue <Index>();
 }
예제 #2
0
 public TensorExpressionVisitor(Expression expr, Tensor lhs, bool visit = true)
 {
     LinqExpression = expr;
     Tree           = new ExpressionTree(lhs);
     Context        = new TreeBuilderContext(Tree);
     if (visit)
     {
         Visit();
     }
 }
예제 #3
0
 public ExpressionTreeException(ExpressionTree tree, ITreeNode node, string message) : this(tree, message)
 {
     ExpressionTree = tree;
     TreeNode       = node;
 }
예제 #4
0
 public ExpressionTreeException(ExpressionTree tree, string message) : base(message)
 {
     ExpressionTree = tree;
 }