-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using GDB to print Blitz++ Array #43
Comments
Thanks! @slayoo |
While there might be some ways of achieving higher-level understanding of Blitz++ arrays from gdb, here the low-level one should be enough, i.e.: #include <blitz/array.h>
using T = blitz::Array<float,2>;
void fun(T &arg)
{
arg = 3;
}
int main()
{
T a(3,3);
a = 1,2,3,
4,5,6,
7,8,9;
fun(a);
}
So from NumPy perspective, there would be no difference between Blitz++ or any other array that uses contiguous memory as storage (non-contiguous cases can likely also be handled as NumPy offers similar flexibility as Blitz when it comes to defining memory ordering, strides, etc). Note that the referenced gdb_numpy module is Python 2 code hence will likely not be compatible out of the box with current gdb installation. HTH |
let me close this one - please reopen if needed |
Does anyone know how to use GDB to print Blitz++ Array?
Thanks!
The text was updated successfully, but these errors were encountered: