public void putArrayForVarName(String varName, INDArray arr) {
    """
	Adds an ndarray for a given vertex id.
	Use {@link #updateArrayForVarName(String, INDArray)}
	if the array already exists.
	
	@param varName the vertex id to add
	@param arr     the array to add
	@throws {@link ND4JIllegalStateException} when the array already exists.
    """
        if (varName == null)
            throw new ND4JIllegalStateException("No null names allowed!");

        if (variableNameToArr.containsKey(varName)) {
            throw new ND4JIllegalStateException("Array for " + varName + " already exists!");
        }

        variableNameToArr.put(varName, arr);
    }
public void putArrayForVarName(String varName, INDArray arr) {
        if (varName == null)
            throw new ND4JIllegalStateException("No null names allowed!");

        if (variableNameToArr.containsKey(varName)) {
            throw new ND4JIllegalStateException("Array for " + varName + " already exists!");
        }

        variableNameToArr.put(varName, arr);
    }
public void putArrayForVarName ( String varName , INDArray arr ) { if ( varName == null ) throw new ND4JIllegalStateException ( "No null names allowed!" ) ; if ( variableNameToArr . containsKey ( varName ) ) { throw new ND4JIllegalStateException ( "Array for " + varName + " already exists!" ) ; } variableNameToArr . put ( varName , arr ) ; }
Adds an ndarray for a given vertex id.
Use {@link #updateArrayForVarName(String, INDArray)}
if the array already exists.

@param varName the vertex id to add
@param arr     the array to add
@throws {@link ND4JIllegalStateException} when the array already exists.
Adds an ndarray for a given vertex id . Use { @link #updateArrayForVarName ( String INDArray ) } if the array already exists .