hp-FEM
Adaptive hp-FEM suite for nano-optics
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
sparse_assembler.hpp File Reference
#include <cstddef>
#include <span>
#include <vector>
#include <Eigen/SparseCore>
#include "hpfem/core/types.hpp"
Include dependency graph for sparse_assembler.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  hpfem::assembly::SparseAssembler
 

Namespaces

namespace  hpfem
 
namespace  hpfem::assembly
 

Functions

void hpfem::assembly::scatter (Vector &global, std::span< const Index > dofs, const Vector &local)
 Adds the element vector local to global at the positions dofs.
 
Vector hpfem::assembly::gather (const Vector &global, std::span< const Index > dofs)
 Gathers global at the positions dofs into a dense vector.
 

Detailed Description

Accumulation of element contributions into a global sparse matrix (COO → CSR) and scatter of element vectors. See docs/theory/scalar-fem.md#assembly.