src/utils/procedure/ProcedureFactory.java
private void endProcedure(ProcedureData procedureData, MMatrix outputMatrices) throws MatrixException {
        if (!nodeRegister.contains(outputMatrices)) {
            for (Integer index : outputMatrices.keySet()) {
                if (!nodeRegister.contains(outputMatrices.get(index))) throw new MatrixException("Setting of output node failed. No node corresponding output matrix is found.");
                procedureData.outputNodes.put(index, nodeRegister.getNode(outputMatrices.get(index)));
            }
        } else procedureData.outputNodes.put(0, nodeRegister.getNode(outputMatrices));
        defineGradientPath(procedureData);
        currentProcedureData = null;
    }
/**
     * Finalizes building current procedure.
     *
     * @param outputMatrices output matrices.
     * @throws MatrixException throws exception if setting of output matrix and node fails.
     */
Finalizes building current procedure.
@param outputMatrices output matrices.
@throws MatrixException throws exception if setting of output matrix and node fails.
Finalizes building current procedure . @param outputMatrices output matrices . @throws MatrixException throws exception if setting of output matrix and node fails .
private void endProcedure(ProcedureData procedureData, MMatrix outputMatrices) throws MatrixException {
        if (!nodeRegister.contains(outputMatrices)) {
            for (Integer index : outputMatrices.keySet()) {
                if (!nodeRegister.contains(outputMatrices.get(index))) throw new MatrixException("Setting of output node failed. No node corresponding output matrix is found.");
                procedureData.outputNodes.put(index, nodeRegister.getNode(outputMatrices.get(index)));
            }
        } else procedureData.outputNodes.put(0, nodeRegister.getNode(outputMatrices));
        defineGradientPath(procedureData);
        currentProcedureData = null;
    }
private void endProcedure ( ProcedureData procedureData , MMatrix outputMatrices ) throws MatrixException { if ( ! nodeRegister . contains ( outputMatrices ) ) { for ( Integer index : outputMatrices . keySet ( ) ) { if ( ! nodeRegister . contains ( outputMatrices . get ( index ) ) ) throw new MatrixException ( "Setting of output node failed. No node corresponding output matrix is found." ) ; procedureData . outputNodes . put ( index , nodeRegister . getNode ( outputMatrices . get ( index ) ) ) ; } } else procedureData . outputNodes . put ( 0 , nodeRegister . getNode ( outputMatrices ) ) ; defineGradientPath ( procedureData ) ; currentProcedureData = null ; }
Finalizes building current procedure.
Finalizes building current procedure .