Mundy: Multibody Nonlocal Dynamics Version of the Day
Loading...
Searching...
No Matches
mundy::VectorBackend Concept Reference

Concept for a backend's vector-level operations: size, axpby, a plain inner product, and deep_copy.

#include <solver_backends.hpp>

Concept definition

template<class Backend, class Vector>
concept VectorBackend = requires(Vector& y, const Vector& x, impl::vector_value_type<Vector> a) {
{ Backend::size(x) } -> std::convertible_to<size_t>;
{ Backend::axpby(a, x, a, y) } -> std::same_as<void>;
{ Backend::template dot<impl::vector_value_type<Vector>>(x, x) };
{ Backend::deep_copy(y, x) };
}
Concept for a backend's vector-level operations: size, axpby, a plain inner product,...
Definition solver_backends.hpp:59
AVector< T, N, Array< T, N > > Vector
Type alias for a vector with the default accessor (Array<T, N>) This prevents the need to write AVect...
Definition Vector.hpp:534
constexpr auto dot(const AQuaternion< U, Accessor1 > &q1, const AQuaternion< T, Accessor2 > &q2)
Get the dot product of two quaternions.
Definition Quaternion.hpp:731