Example #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>();
 }
Example #2
0
 public TensorExpressionVisitor(Expression expr, Tensor lhs, bool visit = true)
 {
     LinqExpression = expr;
     Tree           = new ExpressionTree(lhs);
     Context        = new TreeBuilderContext(Tree);
     if (visit)
     {
         Visit();
     }
 }
Example #3
0
 public ExpressionTreeException(ExpressionTree tree, ITreeNode node, string message) : this(tree, message)
 {
     ExpressionTree = tree;
     TreeNode       = node;
 }
Example #4
0
 public ExpressionTreeException(ExpressionTree tree, string message) : base(message)
 {
     ExpressionTree = tree;
 }