public void updateArrayForVarName(String varName, INDArray arr) {
        if (!variableNameToArr.containsKey(varName)) {
            throw new ND4JIllegalStateException("Array for " + varName + " does not exist. Please use putArrayForVertexId instead.");
        }

        variableNameToArr.put(varName, arr);
        reverseArrayLookup.put(arr, getVariable(varName));
    }
public void updateArrayForVarName(String varName, INDArray arr) {
        if (!variableNameToArr.containsKey(varName)) {
            throw new ND4JIllegalStateException("Array for " + varName + " does not exist. Please use putArrayForVertexId instead.");
        }

        variableNameToArr.put(varName, arr);
        reverseArrayLookup.put(arr, getVariable(varName));
    }
public void updateArrayForVarName ( String varName , INDArray arr ) { if ( ! variableNameToArr . containsKey ( varName ) ) { throw new ND4JIllegalStateException ( "Array for " + varName + " does not exist. Please use putArrayForVertexId instead." ) ; } variableNameToArr . put ( varName , arr ) ; reverseArrayLookup . put ( arr , getVariable ( varName ) ) ; }
Update the ndarray for the given vertex id.

@param varName
@param arr
@throws {@link ND4JIllegalStateException} when the array does not exist.
Update the ndarray for the given vertex id .