500 lines
31 KiB
XML
500 lines
31 KiB
XML
|
|
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
|
||
|
|
<doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.13.2" xml:lang="en-US">
|
||
|
|
<compounddef id="vector__view_8hpp" kind="file" language="C++">
|
||
|
|
<compoundname>vector_view.hpp</compoundname>
|
||
|
|
<includes local="no">span</includes>
|
||
|
|
<includes local="no">ranges</includes>
|
||
|
|
<includes local="no">stdexcept</includes>
|
||
|
|
<includes local="no">type_traits</includes>
|
||
|
|
<includes refid="system__layout_8hpp" local="yes">serif/discretization/blocks/system_layout.hpp</includes>
|
||
|
|
<includes refid="errors_8hpp" local="yes">serif/utils/error/errors.hpp</includes>
|
||
|
|
<includedby refid="layout_8cpp" local="yes">src/compile_time_checks/serif/solver/preconditioner/layout.cpp</includedby>
|
||
|
|
<includedby refid="geometry_8hpp" local="yes">src/include/serif/backend/mfem/solver/admissibility/geometry.hpp</includedby>
|
||
|
|
<includedby refid="model_2state_8hpp" local="yes">src/include/serif/model/state.hpp</includedby>
|
||
|
|
<incdepgraph>
|
||
|
|
<node id="9">
|
||
|
|
<label>serif/discretization/blocks/base.hpp</label>
|
||
|
|
<link refid="base_8hpp"/>
|
||
|
|
</node>
|
||
|
|
<node id="6">
|
||
|
|
<label>serif/discretization/blocks/system_layout.hpp</label>
|
||
|
|
<link refid="system__layout_8hpp"/>
|
||
|
|
<childnode refid="7" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="8" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="2" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="5" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="9" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="10" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="1">
|
||
|
|
<label>src/include/serif/discretization/blocks/vector_view.hpp</label>
|
||
|
|
<link refid="vector__view_8hpp"/>
|
||
|
|
<childnode refid="2" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="3" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="4" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="5" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="6" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="17" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="34">
|
||
|
|
<label>serif/meta/enums.hpp</label>
|
||
|
|
<link refid="enums_8hpp"/>
|
||
|
|
<childnode refid="35" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="5" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="36" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="13">
|
||
|
|
<label>serif/utils/dependencies/binding.hpp</label>
|
||
|
|
<link refid="utils_2dependencies_2binding_8hpp"/>
|
||
|
|
<childnode refid="7" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="5" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="14" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="11">
|
||
|
|
<label>serif/utils/dependencies/detail/type_lists.hpp</label>
|
||
|
|
<link refid="type__lists_8hpp"/>
|
||
|
|
<childnode refid="7" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="8" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="5" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="12" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="12">
|
||
|
|
<label>serif/utils/dependencies/key_list.hpp</label>
|
||
|
|
<link refid="key__list_8hpp"/>
|
||
|
|
<childnode refid="5" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="13" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="14" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="16" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="10">
|
||
|
|
<label>serif/utils/dependencies/key_list_operations.hpp</label>
|
||
|
|
<link refid="key__list__operations_8hpp"/>
|
||
|
|
<childnode refid="8" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="5" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="11" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="33">
|
||
|
|
<label>serif/utils/error/codes.hpp</label>
|
||
|
|
<link refid="codes_8hpp"/>
|
||
|
|
<childnode refid="22" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="34" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="17">
|
||
|
|
<label>serif/utils/error/errors.hpp</label>
|
||
|
|
<link refid="errors_8hpp"/>
|
||
|
|
<childnode refid="18" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="19" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="20" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="21" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="22" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="23" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="24" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="25" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="29" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="33" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="37" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="29">
|
||
|
|
<label>serif/utils/misc/concepts/exceptions.hpp</label>
|
||
|
|
<link refid="utils_2misc_2concepts_2exceptions_8hpp"/>
|
||
|
|
<childnode refid="30" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="5" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="31" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="31">
|
||
|
|
<label>serif/utils/misc/concepts/numeric.hpp</label>
|
||
|
|
<link refid="numeric_8hpp"/>
|
||
|
|
<childnode refid="32" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="5" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="15">
|
||
|
|
<label>serif/utils/misc/std_helper/cleaning.hpp</label>
|
||
|
|
<link refid="cleaning_8hpp"/>
|
||
|
|
<childnode refid="5" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="25">
|
||
|
|
<label>serif/utils/misc/terminal/colors.hpp</label>
|
||
|
|
<link refid="colors_8hpp"/>
|
||
|
|
<childnode refid="18" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="20" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="26" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="27" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="28" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="14">
|
||
|
|
<label>serif/utils/misc/traits/type_uniqueness.hpp</label>
|
||
|
|
<link refid="traits_2type__uniqueness_8hpp"/>
|
||
|
|
<childnode refid="7" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="15" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="37">
|
||
|
|
<label>serif/utils/types/strings.hpp</label>
|
||
|
|
<link refid="types_2strings_8hpp"/>
|
||
|
|
<childnode refid="23" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="38" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="18" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="16">
|
||
|
|
<label>serif/utils/types/type_list.hpp</label>
|
||
|
|
<link refid="type__list_8hpp"/>
|
||
|
|
</node>
|
||
|
|
<node id="23">
|
||
|
|
<label>algorithm</label>
|
||
|
|
</node>
|
||
|
|
<node id="7">
|
||
|
|
<label>array</label>
|
||
|
|
</node>
|
||
|
|
<node id="32">
|
||
|
|
<label>concepts</label>
|
||
|
|
</node>
|
||
|
|
<node id="8">
|
||
|
|
<label>cstddef</label>
|
||
|
|
</node>
|
||
|
|
<node id="22">
|
||
|
|
<label>cstdint</label>
|
||
|
|
</node>
|
||
|
|
<node id="20">
|
||
|
|
<label>cstdio</label>
|
||
|
|
</node>
|
||
|
|
<node id="26">
|
||
|
|
<label>cstdlib</label>
|
||
|
|
</node>
|
||
|
|
<node id="30">
|
||
|
|
<label>exception</label>
|
||
|
|
</node>
|
||
|
|
<node id="19">
|
||
|
|
<label>format</label>
|
||
|
|
</node>
|
||
|
|
<node id="38">
|
||
|
|
<label>iostream</label>
|
||
|
|
</node>
|
||
|
|
<node id="36">
|
||
|
|
<label>magic_enum/magic_enum_all.hpp</label>
|
||
|
|
</node>
|
||
|
|
<node id="3">
|
||
|
|
<label>ranges</label>
|
||
|
|
</node>
|
||
|
|
<node id="2">
|
||
|
|
<label>span</label>
|
||
|
|
</node>
|
||
|
|
<node id="4">
|
||
|
|
<label>stdexcept</label>
|
||
|
|
</node>
|
||
|
|
<node id="21">
|
||
|
|
<label>string</label>
|
||
|
|
</node>
|
||
|
|
<node id="18">
|
||
|
|
<label>string_view</label>
|
||
|
|
</node>
|
||
|
|
<node id="5">
|
||
|
|
<label>type_traits</label>
|
||
|
|
</node>
|
||
|
|
<node id="28">
|
||
|
|
<label>unistd.h</label>
|
||
|
|
</node>
|
||
|
|
<node id="35">
|
||
|
|
<label>unordered_map</label>
|
||
|
|
</node>
|
||
|
|
<node id="27">
|
||
|
|
<label>utility</label>
|
||
|
|
</node>
|
||
|
|
<node id="24">
|
||
|
|
<label>version</label>
|
||
|
|
</node>
|
||
|
|
</incdepgraph>
|
||
|
|
<invincdepgraph>
|
||
|
|
<node id="17">
|
||
|
|
<label>src/compile_time_checks/serif/backend_independent.cpp</label>
|
||
|
|
<link refid="backend__independent_8cpp"/>
|
||
|
|
</node>
|
||
|
|
<node id="10">
|
||
|
|
<label>src/compile_time_checks/serif/model/state.cpp</label>
|
||
|
|
<link refid="state_8cpp"/>
|
||
|
|
</node>
|
||
|
|
<node id="2">
|
||
|
|
<label>src/compile_time_checks/serif/solver/preconditioner/layout.cpp</label>
|
||
|
|
<link refid="layout_8cpp"/>
|
||
|
|
</node>
|
||
|
|
<node id="13">
|
||
|
|
<label>src/include/serif/backend/mfem/model/equilibrium.hpp</label>
|
||
|
|
<link refid="backend_2mfem_2model_2equilibrium_8hpp"/>
|
||
|
|
<childnode refid="10" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="4" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="12">
|
||
|
|
<label>src/include/serif/backend/mfem/model/equilibrium_evaluator.hpp</label>
|
||
|
|
<link refid="equilibrium__evaluator_8hpp"/>
|
||
|
|
<childnode refid="13" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="11">
|
||
|
|
<label>src/include/serif/backend/mfem/model/state.hpp</label>
|
||
|
|
<link refid="backend_2mfem_2model_2state_8hpp"/>
|
||
|
|
<childnode refid="12" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="20">
|
||
|
|
<label>src/include/serif/backend/mfem/serialize/configuration.hpp</label>
|
||
|
|
<link refid="backend_2mfem_2serialize_2configuration_8hpp"/>
|
||
|
|
</node>
|
||
|
|
<node id="19">
|
||
|
|
<label>src/include/serif/backend/mfem/serialize/discretization.hpp</label>
|
||
|
|
<link refid="serialize_2discretization_8hpp"/>
|
||
|
|
<childnode refid="20" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="22">
|
||
|
|
<label>src/include/serif/backend/mfem/serialize/options.hpp</label>
|
||
|
|
<link refid="backend_2mfem_2serialize_2options_8hpp"/>
|
||
|
|
</node>
|
||
|
|
<node id="3">
|
||
|
|
<label>src/include/serif/backend/mfem/solver/admissibility/geometry.hpp</label>
|
||
|
|
<link refid="geometry_8hpp"/>
|
||
|
|
<childnode refid="4" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="5">
|
||
|
|
<label>src/include/serif/backend/mfem/solver/equilibrium.hpp</label>
|
||
|
|
<link refid="backend_2mfem_2solver_2equilibrium_8hpp"/>
|
||
|
|
<childnode refid="6" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="4">
|
||
|
|
<label>src/include/serif/backend/mfem/solver/nonlinear/stellar_problem.hpp</label>
|
||
|
|
<link refid="stellar__problem_8hpp"/>
|
||
|
|
<childnode refid="5" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="14">
|
||
|
|
<label>src/include/serif/backend/mfem/solver/seed/state.hpp</label>
|
||
|
|
<link refid="backend_2mfem_2solver_2seed_2state_8hpp"/>
|
||
|
|
<childnode refid="15" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="1">
|
||
|
|
<label>src/include/serif/discretization/blocks/vector_view.hpp</label>
|
||
|
|
<link refid="vector__view_8hpp"/>
|
||
|
|
<childnode refid="2" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="3" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="9" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="16">
|
||
|
|
<label>src/include/serif/model/model.hpp</label>
|
||
|
|
<link refid="model_2model_8hpp"/>
|
||
|
|
<childnode refid="17" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="9">
|
||
|
|
<label>src/include/serif/model/state.hpp</label>
|
||
|
|
<link refid="model_2state_8hpp"/>
|
||
|
|
<childnode refid="10" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="11" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="3" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="14" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="16" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="18" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="7">
|
||
|
|
<label>src/include/serif/solver/continuation/equilibrium.hpp</label>
|
||
|
|
<link refid="solver_2continuation_2equilibrium_8hpp"/>
|
||
|
|
<childnode refid="8" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="6">
|
||
|
|
<label>src/include/serif/solver/equilibrium.hpp</label>
|
||
|
|
<link refid="solver_2equilibrium_8hpp"/>
|
||
|
|
<childnode refid="7" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="8" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="15">
|
||
|
|
<label>src/include/serif/solver/seed/state.hpp</label>
|
||
|
|
<link refid="solver_2seed_2state_8hpp"/>
|
||
|
|
<childnode refid="8" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="8">
|
||
|
|
<label>src/include/serif/solver/solver.hpp</label>
|
||
|
|
<link refid="solver_2solver_8hpp"/>
|
||
|
|
</node>
|
||
|
|
<node id="18">
|
||
|
|
<label>src/include/serif/utils/serialize/model.hpp</label>
|
||
|
|
<link refid="utils_2serialize_2model_8hpp"/>
|
||
|
|
<childnode refid="19" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="21" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="23" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="21">
|
||
|
|
<label>src/include/serif/utils/serialize/numerics.hpp</label>
|
||
|
|
<link refid="numerics_8hpp"/>
|
||
|
|
<childnode refid="20" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="22" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="23" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="24">
|
||
|
|
<label>src/include/serif/utils/serialize/serialize.hpp</label>
|
||
|
|
<link refid="serialize_8hpp"/>
|
||
|
|
<childnode refid="17" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="23">
|
||
|
|
<label>src/include/serif/utils/serialize/solver.hpp</label>
|
||
|
|
<link refid="utils_2serialize_2solver_8hpp"/>
|
||
|
|
<childnode refid="24" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
</invincdepgraph>
|
||
|
|
<innerclass refid="classserif_1_1discretization_1_1blocks_1_1_block_vector_view" prot="public">serif::discretization::blocks::BlockVectorView</innerclass>
|
||
|
|
<innernamespace refid="namespaceserif">serif</innernamespace>
|
||
|
|
<innernamespace refid="namespaceserif_1_1discretization">serif::discretization</innernamespace>
|
||
|
|
<innernamespace refid="namespaceserif_1_1discretization_1_1blocks">serif::discretization::blocks</innernamespace>
|
||
|
|
<briefdescription>
|
||
|
|
<para>This file includes a class for viewing some SystemLayout as a span of coefficients without copying the underlying storage. </para>
|
||
|
|
</briefdescription>
|
||
|
|
<detaileddescription>
|
||
|
|
<para><simplesect kind="author"><para>Emily M. Boudreaux </para>
|
||
|
|
</simplesect>
|
||
|
|
</para>
|
||
|
|
</detaileddescription>
|
||
|
|
<programlisting>
|
||
|
|
<codeline lineno="1"><highlight class="preprocessor">#pragma<sp/>once</highlight><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="2"><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="9"><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="10"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><span></highlight><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="11"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><ranges></highlight><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="12"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><stdexcept></highlight><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="13"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><type_traits></highlight><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="14"><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="15"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>"<ref refid="system__layout_8hpp" kindref="compound">serif/discretization/blocks/system_layout.hpp</ref>"</highlight><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="16"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>"<ref refid="errors_8hpp" kindref="compound">serif/utils/error/errors.hpp</ref>"</highlight><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="17"><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="18"><highlight class="normal"></highlight><highlight class="keyword">namespace<sp/></highlight><highlight class="normal"><ref refid="namespaceserif_1_1discretization_1_1blocks" kindref="compound">serif::discretization::blocks</ref></highlight></codeline>
|
||
|
|
<codeline lineno="19"><highlight class="normal">{</highlight></codeline>
|
||
|
|
<codeline lineno="32"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><sp/><RepresentedValueKind<sp/>Kind,<sp/>SystemLayoutType<sp/>Layout,<sp/></highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>Scalar<sp/>=<sp/></highlight><highlight class="keywordtype">double</highlight><highlight class="normal">></highlight></codeline>
|
||
|
|
<codeline lineno="33"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">requires</highlight><highlight class="normal">(<ref refid="namespaceserif_1_1solver_1_1preconditioner_1_1checks_1ae448d9c52432cf59dd1795980f1829bc" kindref="member">Kind</ref><sp/>==<sp/><ref refid="namespaceserif_1_1discretization_1_1blocks_1aca74ff25d2168fcdec080e03ebc023eaa2063c1608d6e0baf80249c42e2be5804" kindref="member">RepresentedValueKind::value</ref><sp/>||<sp/><ref refid="namespaceserif_1_1solver_1_1preconditioner_1_1checks_1ae448d9c52432cf59dd1795980f1829bc" kindref="member">Kind</ref><sp/>==<sp/><ref refid="namespaceserif_1_1discretization_1_1blocks_1aca74ff25d2168fcdec080e03ebc023eaa4db598f63d4aea6a3c8eaddfe5c2b1e9" kindref="member">RepresentedValueKind::residual</ref>)</highlight></codeline>
|
||
|
|
<codeline lineno="34" refid="classserif_1_1discretization_1_1blocks_1_1_block_vector_view" refkind="compound"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">class</highlight><highlight class="normal"><sp/><ref refid="classserif_1_1discretization_1_1blocks_1_1_block_vector_view_1a33dc11460a096a75aa726c97f23a2d64" kindref="member">BlockVectorView</ref><sp/></highlight><highlight class="keyword">final</highlight><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="35"><highlight class="normal"><sp/><sp/><sp/><sp/>{</highlight></codeline>
|
||
|
|
<codeline lineno="36"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">public</highlight><highlight class="normal">:</highlight></codeline>
|
||
|
|
<codeline lineno="37"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">using<sp/></highlight><highlight class="normal"><ref refid="classserif_1_1discretization_1_1blocks_1_1_block_vector_view_1a7cd2f4e8ddc18a6a5593f39bc07339fa" kindref="member">LayoutType</ref><sp/>=<sp/>std::remove_cvref_t<Layout>;<sp/><sp/><sp/><sp/></highlight></codeline>
|
||
|
|
<codeline lineno="38"><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="49"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classserif_1_1discretization_1_1blocks_1_1_block_vector_view_1a33dc11460a096a75aa726c97f23a2d64" kindref="member">BlockVectorView</ref>(</highlight></codeline>
|
||
|
|
<codeline lineno="50"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classserif_1_1discretization_1_1blocks_1_1_block_vector_view_1a7cd2f4e8ddc18a6a5593f39bc07339fa" kindref="member">LayoutType</ref>&<sp/>layout,</highlight></codeline>
|
||
|
|
<codeline lineno="51"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::span<Scalar><sp/>values</highlight></codeline>
|
||
|
|
<codeline lineno="52"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>)<sp/>:</highlight></codeline>
|
||
|
|
<codeline lineno="53"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classserif_1_1discretization_1_1blocks_1_1_block_vector_view_1a9ad36f4ffe5d658184d5d1d67a3a2930" kindref="member">m_layout</ref>(layout),</highlight></codeline>
|
||
|
|
<codeline lineno="54"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classserif_1_1discretization_1_1blocks_1_1_block_vector_view_1a4f9b098d87c9b2d9e6448de527a9c7fb" kindref="member">m_values</ref>(values)<sp/>{</highlight></codeline>
|
||
|
|
<codeline lineno="55"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>std::size_t<sp/>required<sp/>=<sp/>layout.template<sp/>total_size<Kind>();</highlight></codeline>
|
||
|
|
<codeline lineno="56"><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="57"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="namespaceserif_1_1utils_1_1errors_1a7fefa3a63ca7895a875f2672026df02d" kindref="member">utils::errors::serif_ensure<utils::errors::SERiFErrorCode::INVALID_DOF_COUNT, std::domain_error></ref>(values.size()<sp/>==<sp/>required,<sp/></highlight><highlight class="stringliteral">"Packed<sp/>storage<sp/>has<sp/>{}<sp/>coefficients<sp/>but<sp/>the<sp/>system<sp/>layout<sp/>requires<sp/>{}.<sp/>Bind<sp/>the<sp/>matching<sp/>state<sp/>or<sp/>residual<sp/>vector."</highlight><highlight class="normal">,<sp/>values.size(),<sp/>required);</highlight></codeline>
|
||
|
|
<codeline lineno="58"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||
|
|
<codeline lineno="59"><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="63"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classserif_1_1discretization_1_1blocks_1_1_block_vector_view_1a33dc11460a096a75aa726c97f23a2d64" kindref="member">BlockVectorView</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classserif_1_1discretization_1_1blocks_1_1_block_vector_view_1a7cd2f4e8ddc18a6a5593f39bc07339fa" kindref="member">LayoutType</ref>&&,<sp/>std::span<Scalar>)<sp/>=<sp/></highlight><highlight class="keyword">delete</highlight><highlight class="normal">;</highlight></codeline>
|
||
|
|
<codeline lineno="64"><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="68"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><sp/><</highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>Range></highlight></codeline>
|
||
|
|
<codeline lineno="69"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">requires</highlight><highlight class="normal">(!std::is_lvalue_reference_v<Range><sp/>&&<sp/>!std::ranges::borrowed_range<Range>)</highlight></codeline>
|
||
|
|
<codeline lineno="70"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classserif_1_1discretization_1_1blocks_1_1_block_vector_view_1a33dc11460a096a75aa726c97f23a2d64" kindref="member">BlockVectorView</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classserif_1_1discretization_1_1blocks_1_1_block_vector_view_1a7cd2f4e8ddc18a6a5593f39bc07339fa" kindref="member">LayoutType</ref>&,<sp/>Range&&)<sp/>=<sp/></highlight><highlight class="keyword">delete</highlight><highlight class="normal">;</highlight></codeline>
|
||
|
|
<codeline lineno="71"><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="79"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><sp/><</highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>Coordinate></highlight></codeline>
|
||
|
|
<codeline lineno="80"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">requires</highlight><highlight class="normal"><sp/><ref refid="conceptserif_1_1utils_1_1dependencies_1_1_contains_key" kindref="compound">utils::dependencies::ContainsKey<Coordinate, typename LayoutType::template Coordinates<Kind></ref>></highlight></codeline>
|
||
|
|
<codeline lineno="81"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>[[nodiscard]]<sp/>std::span<Scalar><sp/><ref refid="classserif_1_1discretization_1_1blocks_1_1_block_vector_view_1adf7002207edd57e456be9e93b185cb56" kindref="member">get</ref>()</highlight><highlight class="keyword"><sp/>const</highlight></codeline>
|
||
|
|
<codeline lineno="82"><highlight class="keyword"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="normal">{</highlight></codeline>
|
||
|
|
<codeline lineno="83"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>std::size_t<sp/>offset<sp/>=<sp/><ref refid="classserif_1_1discretization_1_1blocks_1_1_block_vector_view_1a9ad36f4ffe5d658184d5d1d67a3a2930" kindref="member">m_layout</ref>.template<sp/>offset<Kind,<sp/>Coordinate>();</highlight></codeline>
|
||
|
|
<codeline lineno="84"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>std::size_t<sp/>count<sp/>=<sp/><ref refid="classserif_1_1discretization_1_1blocks_1_1_block_vector_view_1a9ad36f4ffe5d658184d5d1d67a3a2930" kindref="member">m_layout</ref>.template<sp/>size<Kind,<sp/>Coordinate>();</highlight></codeline>
|
||
|
|
<codeline lineno="85"><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="86"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="namespaceserif_1_1utils_1_1errors_1a7fefa3a63ca7895a875f2672026df02d" kindref="member">utils::errors::serif_ensure<utils::errors::SERiFErrorCode::INVALID_DOF_COUNT></ref>(offset<sp/><=<sp/><ref refid="classserif_1_1discretization_1_1blocks_1_1_block_vector_view_1a4f9b098d87c9b2d9e6448de527a9c7fb" kindref="member">m_values</ref>.size()<sp/>&&<sp/>count<sp/><=<sp/><ref refid="classserif_1_1discretization_1_1blocks_1_1_block_vector_view_1a4f9b098d87c9b2d9e6448de527a9c7fb" kindref="member">m_values</ref>.size()<sp/>-<sp/>offset,</highlight><highlight class="stringliteral">"The<sp/>system<sp/>layout<sp/>changed<sp/>after<sp/>this<sp/>vector<sp/>view<sp/>was<sp/>bound.<sp/>Rebind<sp/>the<sp/>view<sp/>to<sp/>matching<sp/>storage."</highlight><highlight class="normal">);</highlight></codeline>
|
||
|
|
<codeline lineno="87"><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="88"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classserif_1_1discretization_1_1blocks_1_1_block_vector_view_1a4f9b098d87c9b2d9e6448de527a9c7fb" kindref="member">m_values</ref>.subspan(offset,<sp/>count);</highlight></codeline>
|
||
|
|
<codeline lineno="89"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||
|
|
<codeline lineno="90"><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="91"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">private</highlight><highlight class="normal">:</highlight></codeline>
|
||
|
|
<codeline lineno="92"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classserif_1_1discretization_1_1blocks_1_1_block_vector_view_1a7cd2f4e8ddc18a6a5593f39bc07339fa" kindref="member">LayoutType</ref>&<sp/><ref refid="classserif_1_1discretization_1_1blocks_1_1_block_vector_view_1a9ad36f4ffe5d658184d5d1d67a3a2930" kindref="member">m_layout</ref>;<sp/></highlight></codeline>
|
||
|
|
<codeline lineno="93"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::span<Scalar><sp/><ref refid="classserif_1_1discretization_1_1blocks_1_1_block_vector_view_1a4f9b098d87c9b2d9e6448de527a9c7fb" kindref="member">m_values</ref>;<sp/></highlight></codeline>
|
||
|
|
<codeline lineno="94"><highlight class="normal"><sp/><sp/><sp/><sp/>};</highlight></codeline>
|
||
|
|
<codeline lineno="95"><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="102"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><sp/><SystemLayoutType<sp/>Layout,<sp/></highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>Scalar<sp/>=<sp/></highlight><highlight class="keywordtype">double</highlight><highlight class="normal">></highlight></codeline>
|
||
|
|
<codeline lineno="103"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">using<sp/></highlight><highlight class="normal"><ref refid="namespaceserif_1_1discretization_1_1blocks_1aaf621ef3cd1e663131647a86d13e5990" kindref="member">StateView</ref><sp/>=<sp/><ref refid="classserif_1_1discretization_1_1blocks_1_1_block_vector_view" kindref="compound">BlockVectorView<RepresentedValueKind::value, Layout, Scalar></ref>;</highlight></codeline>
|
||
|
|
<codeline lineno="104"><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="111"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><sp/><SystemLayoutType<sp/>Layout,<sp/></highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>Scalar<sp/>=<sp/></highlight><highlight class="keywordtype">double</highlight><highlight class="normal">></highlight></codeline>
|
||
|
|
<codeline lineno="112"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">using<sp/></highlight><highlight class="normal"><ref refid="namespaceserif_1_1discretization_1_1blocks_1a1ee29035ab1c1c9e232b42e92ff8514d" kindref="member">ResidualView</ref><sp/>=<sp/><ref refid="classserif_1_1discretization_1_1blocks_1_1_block_vector_view" kindref="compound">BlockVectorView<RepresentedValueKind::residual, Layout, Scalar></ref>;</highlight></codeline>
|
||
|
|
<codeline lineno="113"><highlight class="normal">}<sp/></highlight><highlight class="comment">//<sp/>namespace<sp/>serif::discretization::blocks</highlight><highlight class="normal"></highlight></codeline>
|
||
|
|
</programlisting>
|
||
|
|
<location file="src/include/serif/discretization/blocks/vector_view.hpp"/>
|
||
|
|
</compounddef>
|
||
|
|
</doxygen>
|