question: public static SparseGradient createVariable ( final int idx , final double value ) { return new SparseGradient ( value , Collections . singletonMap ( idx , 1.0 ) ) ; }
target:  Factory method creating an independent variable.