41 assert(
c.size() >= 2 &&
c.size()%2 == 0);
54 while (
idx<
int(
c.size()) &&
int(
c[
idx])<=
i);
66 assert(
c.size() >= 2 &&
c.size()%2 == 0);
68 Eigen::ArrayXi
dofs = Eigen::ArrayXi::LinSpaced(
N, 0,
N-1);
69 Eigen::ArrayXi
map = -Eigen::ArrayXi::Ones(
N);
73 for (
size_t i = 1;
i <
c.size()-1;
i += 2){
96template<
typename VecType>
100 const std::vector<std::pair<size_t,size_t>> &
sec
107 for (
size_t i=0;
i <
sec.size();
i++){
@ Matrix
Definition basis.hpp:67
VecType replaceSectionsVector(const VecType &V, const VecType &Z, const std::vector< std::pair< size_t, size_t > > &sec)
Replace sections of vector V by values from vector Z into vector V; the sections are determined by 's...
Definition BChandlers.hpp:97
Eigen::ArrayXi create_mapDOF(const std::vector< size_t > &c, const size_t N)
Create a map from DOFs 0..N-1 to values obtained by cutting the DOFs corresponding to c (as per offse...
Definition BChandlers.hpp:65
int offsetIndex(const std::vector< size_t > &c, const int &i)
Function to offset and index i according to a vector c0,c1,...,c2n of increasing numbers.
Definition BChandlers.hpp:40
Definition ddr-magnetostatics.hpp:41