src/utils/procedure/ProcedureFactory.java
private Node defineNode(MMatrix matrix) throws MatrixException {
        boolean isSingleNode = false;
        for (Matrix singleMatrix : matrix.values()) {
            if (constantMatrices.contains(singleMatrix)) {
                isSingleNode = true;
                break;
            }
        }
        Node node = nodeRegister.defineNode(matrix, isSingleNode, currentExpressionID);
        for (Integer index : currentProcedureData.inputMatrices.keySet()) {
            if (currentProcedureData.inputMatrices == matrix) currentProcedureData.inputNodes.put(index, node);
        }
        currentProcedureData.nodes.add(node);
        return node;
    }
/**
     * Defines node for procedure. Sets input and result nodes as non-constant nodes.
     *
     * @param matrix matrix for node.
     * @return defined node.
     * @throws MatrixException throws exception if matrix operation fails.
     */
Defines node for procedure. Sets input and result nodes as non-constant nodes.
@param matrix matrix for node.
@return defined node.
@throws MatrixException throws exception if matrix operation fails.
Defines node for procedure . Sets input and result nodes as non - constant nodes . @param matrix matrix for node . @return defined node . @throws MatrixException throws exception if matrix operation fails .
private Node defineNode(MMatrix matrix) throws MatrixException {
        boolean isSingleNode = false;
        for (Matrix singleMatrix : matrix.values()) {
            if (constantMatrices.contains(singleMatrix)) {
                isSingleNode = true;
                break;
            }
        }
        Node node = nodeRegister.defineNode(matrix, isSingleNode, currentExpressionID);
        for (Integer index : currentProcedureData.inputMatrices.keySet()) {
            if (currentProcedureData.inputMatrices == matrix) currentProcedureData.inputNodes.put(index, node);
        }
        currentProcedureData.nodes.add(node);
        return node;
    }
private Node defineNode ( MMatrix matrix ) throws MatrixException { boolean isSingleNode = false ; for ( Matrix singleMatrix : matrix . values ( ) ) { if ( constantMatrices . contains ( singleMatrix ) ) { isSingleNode = true ; break ; } } Node node = nodeRegister . defineNode ( matrix , isSingleNode , currentExpressionID ) ; for ( Integer index : currentProcedureData . inputMatrices . keySet ( ) ) { if ( currentProcedureData . inputMatrices == matrix ) currentProcedureData . inputNodes . put ( index , node ) ; } currentProcedureData . nodes . add ( node ) ; return node ; }
Defines node for procedure.
Defines node for procedure .