The main changes are as follows:
1) Use portable datatypes (e.g. "unsigned int" is not guaranteed to be 32 bits but "uint32_t" is).
2) It is no longer necessary to manually free the data. In fact "delete" or "destruct" is not called anywhere now. Memory is freed when objects go out of scope.
3) std::vector is used in place of arrays, and also for "shape" parameters.
Unfortunately, the API is now different (see example1.cpp) and also C++11 is needed.
I haven't spent much time with this code in a while (since school, actually...) but saw you cleaned up a bunch of issues. Apologies for the extreme delay....thank you!
The main changes are as follows: 1) Use portable datatypes (e.g. "unsigned int" is not guaranteed to be 32 bits but "uint32_t" is). 2) It is no longer necessary to manually free the data. In fact "delete" or "destruct" is not called anywhere now. Memory is freed when objects go out of scope. 3) std::vector is used in place of arrays, and also for "shape" parameters.
Unfortunately, the API is now different (see example1.cpp) and also C++11 is needed.