mirror of
https://github.com/triqs/dft_tools
synced 2024-12-27 06:43:40 +01:00
edd1ff4529
A first general restructuration of the doc according to the pattern [tour|tutorial|reference]. In the reference part, objects are documented per topic. In each topic, [definition|c++|python|hdf5] (not yet implemented)
26 lines
620 B
ReStructuredText
26 lines
620 B
ReStructuredText
.. highlight:: c
|
|
|
|
.. _arr_rebind:
|
|
|
|
rebind
|
|
==================================
|
|
|
|
* **Synopsis** for X_view (X=array, matrix, vector):
|
|
|
|
.. cpp:function:: void rebind(array_view const & a)
|
|
|
|
* **Synopsis** for X_const_view (X=array, matrix, vector):
|
|
|
|
.. cpp:function:: void rebind(array_view const & a)
|
|
.. cpp:function:: void rebind(array_const_view const & a)
|
|
|
|
* **Effect**:
|
|
|
|
Rebinds the view
|
|
|
|
After this method, the view points to the same as *a*.
|
|
Following the :ref:`memory management rules <arr_view_memory>`, if nothing else views the
|
|
data originally pointed to by the view, this data is destroyed.
|
|
|
|
|