mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-27 07:32:02 +00:00
Merge branch 'pybind:master' into master
This commit is contained in:
commit
5cec6315a2
4
.github/workflows/pip.yml
vendored
4
.github/workflows/pip.yml
vendored
@ -98,13 +98,13 @@ jobs:
|
|||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v3
|
||||||
|
|
||||||
- name: Publish standard package
|
- name: Publish standard package
|
||||||
uses: pypa/gh-action-pypi-publish@v1.5.0
|
uses: pypa/gh-action-pypi-publish@v1.5.1
|
||||||
with:
|
with:
|
||||||
password: ${{ secrets.pypi_password }}
|
password: ${{ secrets.pypi_password }}
|
||||||
packages_dir: standard/
|
packages_dir: standard/
|
||||||
|
|
||||||
- name: Publish global package
|
- name: Publish global package
|
||||||
uses: pypa/gh-action-pypi-publish@v1.5.0
|
uses: pypa/gh-action-pypi-publish@v1.5.1
|
||||||
with:
|
with:
|
||||||
password: ${{ secrets.pypi_password_global }}
|
password: ${{ secrets.pypi_password_global }}
|
||||||
packages_dir: global/
|
packages_dir: global/
|
||||||
|
@ -473,7 +473,7 @@ following:
|
|||||||
{ 2, 4 }, // shape (rows, cols)
|
{ 2, 4 }, // shape (rows, cols)
|
||||||
{ sizeof(uint8_t) * 4, sizeof(uint8_t) } // strides in bytes
|
{ sizeof(uint8_t) * 4, sizeof(uint8_t) } // strides in bytes
|
||||||
);
|
);
|
||||||
})
|
});
|
||||||
|
|
||||||
This approach is meant for providing a ``memoryview`` for a C/C++ buffer not
|
This approach is meant for providing a ``memoryview`` for a C/C++ buffer not
|
||||||
managed by Python. The user is responsible for managing the lifetime of the
|
managed by Python. The user is responsible for managing the lifetime of the
|
||||||
@ -489,7 +489,7 @@ We can also use ``memoryview::from_memory`` for a simple 1D contiguous buffer:
|
|||||||
buffer, // buffer pointer
|
buffer, // buffer pointer
|
||||||
sizeof(uint8_t) * 8 // buffer size
|
sizeof(uint8_t) * 8 // buffer size
|
||||||
);
|
);
|
||||||
})
|
});
|
||||||
|
|
||||||
.. versionchanged:: 2.6
|
.. versionchanged:: 2.6
|
||||||
``memoryview::from_memory`` added.
|
``memoryview::from_memory`` added.
|
||||||
|
Loading…
Reference in New Issue
Block a user