0

I have saved a 2D matrix in a numpy file (.npy) in python.
Is there a way I can access the same from C++ and possibly read in the values in a stl vector?

This is vaguely relevant. But here you make the call from python. I want to read the matrix file independently in c++.

Any suggestions?

2
Contributors
3
Replies
4
Views
6 Years
Discussion Span
Last Post by madval88
0

Yeah I had seen that. I was really trying to avoid parsing a binary file.
But thanks anyway!

0

Ok I think the easiest solution is to save it as a csv file and read it from c++. This avoids the confusion of reading in binary files!

Edited by madval88: n/a

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.