mirror of
https://github.com/triqs/dft_tools
synced 2024-11-01 19:53:45 +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)
30 lines
789 B
ReStructuredText
30 lines
789 B
ReStructuredText
.. highlight:: c
|
|
|
|
.. _Lazy:
|
|
|
|
Interaction with CLEF expressions
|
|
============================================
|
|
|
|
* The containers and their view classes can be used with the :doc:`../clef/contents` library:
|
|
|
|
* They can be called with CLEF expressions.
|
|
* :doc:`Automatic assignment<../clef/assign>` has been set up.
|
|
|
|
* Using the CLEF library offers a quick and efficient way to fill an array with multiple advantages:
|
|
|
|
* It is simpler and more readeable than a series of for loops.
|
|
* It is usually more optimal since the for loops are automatically written in the TraversalOrder of the array.
|
|
|
|
|
|
* **Example**:
|
|
|
|
.. triqs_example:: ./lazy_0.cpp
|
|
.. note::
|
|
The syntax uses a <<, not = since the array is not assigned to an expression
|
|
but filled by the evaluation thereof.
|
|
|
|
|
|
|
|
|
|
|