Skip to content

Commit

Permalink
Add PyArrayMultiIterObject
Browse files Browse the repository at this point in the history
  • Loading branch information
termoshtt committed Apr 21, 2017
1 parent 208e623 commit a6d1219
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions numpy-sys/src/pyarrayiter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,15 @@ pub struct PyArrayIterObject {
pub limits_sizes: [npy_intp; 32usize],
pub translate: npy_iter_get_dataptr_t,
}

#[repr(C)]
#[derive(Clone, Copy)]
pub struct PyArrayMultiIterObject {
pub ob_base: PyObject,
pub numiter: ::std::os::raw::c_int,
pub size: npy_intp,
pub index: npy_intp,
pub nd: ::std::os::raw::c_int,
pub dimensions: [npy_intp; 32usize],
pub iters: [*mut PyArrayIterObject; 32usize],
}

0 comments on commit a6d1219

Please sign in to comment.