.. index:: pair: struct; rgpot::nlist::Table .. _doxid-structrgpot_1_1nlist_1_1_table: struct rgpot::nlist::Table ========================== .. toctree:: :hidden: Overview ~~~~~~~~ Owning table. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include struct Table { // fields std::vector :target:`first`; std::vector :target:`second`; std::vector :target:`shift`; std::vector :target:`vector`; std::vector :target:`distance`; std::vector :target:`mask`; int :target:`device` = 0; bool :target:`stored` = false; // methods std::size_t :target:`size`() const; std::span :ref:`column_major_vectors`() const; :ref:`View` :target:`view`() const; }; .. _details-structrgpot_1_1nlist_1_1_table: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Owning table. The arrays are the storage a caller can wrap without copying. ``device`` is 0 for host memory. A GPU fill would use the same layout and a non-zero device id; this build fills host memory. Methods ------- .. index:: pair: function; column_major_vectors .. _doxid-structrgpot_1_1nlist_1_1_table_1acc494bc1fd08f8bedf7ca6ffc766e72f: .. ref-code-block:: cpp :class: doxyrest-title-code-block std::span column_major_vectors() const ``vector`` as a Fortran ``(3, npairs)`` array. Pair ``p`` is ``x, y, z`` at elements ``3p``, ``3p+1``, ``3p+2``. Same memory as ``vector``.