add primitive double array variation of NDArray