MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
Loading...
Searching...
No Matches
restriction.hpp File Reference
#include <stdexcept>
#include <cstddef>
#include <mtl/detail/exceptions.hpp>
#include <mtl/vec/dense_vector.hpp>
#include <mtl/mat/compressed2D.hpp>
#include <mtl/mat/inserter.hpp>
#include <mtl/math/identity.hpp>
#include <mtl/math/accumulator_traits.hpp>
#include <type_traits>

Namespaces

namespace  mtl
namespace  mtl::itl
namespace  mtl::itl::mg

Functions

mat::compressed2D< double > mtl::itl::mg::make_restriction_1d (std::size_t n_fine)
 Builds a 1D full-weighting restriction matrix (fine -> coarse).
template<typename Accumulator = void, typename Value>
vec::dense_vector< Value > mtl::itl::mg::restrict (const mat::compressed2D< Value > &R, const vec::dense_vector< Value > &fine)
 Restriction: project fine-grid vector to coarse grid.