Opening the ndarray in c++