.. index:: pair: struct; gpr::linalg::BackendTraits .. _doxid-structgpr_1_1linalg_1_1_backend_traits: template struct gpr::linalg::BackendTraits ========================================== .. toctree:: :hidden: Description of a local dense backend. Specialised once per backend tag. ``matrix_type`` and ``vector_type`` are the operand types of the operation set. Host backends use :ref:`EigenMatrix ` and Eigen::VectorXd. A backend whose operands stay in device memory between calls names its resident matrix type and sets ``resident``. ``resident`` is true only when an operation set call reads and writes operands in ``memory`` without staging through host memory. ``retains_factor`` is true when the backend's :ref:`BackendContext ` keeps a copy of the physical host factor in ``memory`` between solves, so repeated solves against one factor upload it once. Operands and results still cross the host interface unless ``resident`` is also set.