Skip to content

Commit

Permalink
misleading comment corrected (strides in buffer_info is bytes and not…
Browse files Browse the repository at this point in the history
… number of entries) (pybind#1958)
  • Loading branch information
rikigigi authored and wjakob committed Oct 18, 2019
1 parent de5a29c commit 6c29cbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/pybind11/buffer_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ struct buffer_info {
std::string format; // For homogeneous buffers, this should be set to format_descriptor<T>::format()
ssize_t ndim = 0; // Number of dimensions
std::vector<ssize_t> shape; // Shape of the tensor (1 entry per dimension)
std::vector<ssize_t> strides; // Number of entries between adjacent entries (for each per dimension)
std::vector<ssize_t> strides; // Number of bytes between adjacent entries (for each per dimension)

buffer_info() { }

Expand Down

0 comments on commit 6c29cbf

Please sign in to comment.