27#include <ATen/core/Tensor.h>
29#include "neml2/misc/types.h"
39ATensor
assemble(
const ATensor & v_scattered,
const ATensor & dof_map,
Size ndof);
42void assemble_(ATensor & v,
const ATensor & v_scattered,
const ATensor & dof_map);
Definition assemble.cxx:31
ATensor assemble(const ATensor &v_scattered, const ATensor &dof_map, Size ndof)
This is the inverse operation of scatter. It assembles a scattered vector into a tensor given a DOF m...
Definition assemble.cxx:33
void assemble_(ATensor &v, const ATensor &v_scattered, const ATensor &dof_map)
In-place version of assemble.
Definition assemble.cxx:41
int64_t Size
Definition types.h:65