MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
Loading...
Searching...
No Matches
device_fallback.hpp File Reference
#include <cstddef>
#include <type_traits>
#include <vector>
#include <mtl/memory/copy.hpp>

Namespaces

namespace  mtl
namespace  mtl::interface
namespace  mtl::interface::detail

Functions

template<typename Saved = void, typename M, typename Factor, typename Reject, typename HostFactor>
int mtl::interface::detail::factor_or_fall_back (M &A, Factor &&factor, Reject &&rejects, HostFactor &&host_factor)
 factor(src, diag, status) runs the device factorization of A (from src, a device copy of A, or of A in place: A equals src when it starts), writes the factor's n diagonal entries to diag and the library's status to status (0 on success).