Inserting double value into a INDArray

Hi all
i want to insert double values into INDArray by INDArray.putScalar(int shape, double value), but after that the values in the INDArraty are float. I know it was a bug that has been debugged before. but i still get this bug.
I use ND4j-native-platform version 1.0.0-beta7.
what should i do???

@vahed-p generally you would use the indexing api to do this. (INDArray.put(indices…)

where an index can be found from NDArrayIndex.all(), NDArrayIndex.interval(…)

Using putScalar directly is pretty slow.