public static bool TryMatchFirst(Signal output, Port port, CoalescedTreeNode tree, out Match match) { if (tree == null) { throw new ArgumentNullException("tree"); } match = tree.MatchFirst(output, port); return(match != null); }
public static Match MatchFirst(Signal output, Port port, CoalescedTreeNode tree) { if (tree == null) { throw new ArgumentNullException("tree"); } Match res = tree.MatchFirst(output, port); if (res == null) { throw new MathNet.Symbolics.Exceptions.NotFoundException(); } return(res); }