stedc_secular.hh
Go to the documentation of this file.
1#pragma once
2
5
6namespace batchlas {
7
8// `converged_out`: whether the root met its tolerance (a release-mode assert used to be
9// the only check). NOT defaulted: these are SYCL_EXTERNAL, and a default would let a
10// new call site drop the status silently.
11// evidence: docs/perf/stedc.md#stedc-convergence-reporting-through-info
12template <typename T>
13SYCL_EXTERNAL T sec_solve_ext_roc(const int32_t dd,
14 const VectorView<T>& D,
15 const VectorView<T>& z,
16 const T p,
17 bool& converged_out);
18
19template <typename T>
20SYCL_EXTERNAL T sec_solve_roc(int32_t dd,
21 const VectorView<T>& d,
22 const VectorView<T>& z,
23 const T& rho,
24 const int32_t k,
25 bool& converged_out);
26
27template <typename T>
29 const VectorView<T>& d,
30 const VectorView<T>& v,
32 const VectorView<T>& lambdas,
33 const Span<int32_t>& n_reduced,
34 const Span<T> rho,
35 const T& tol_factor = 10.0,
36 int32_t* info = nullptr,
37 int64_t info_nodes_per_item = 1);
38
39} // namespace batchlas
Non-owning view of a batch of matrices: the argument type of every entry point.
Definition matrix.hh:485
Non-owning view of a batch of strided vectors: the vector argument type of the entry points.
Definition matrix.hh:1754
All positional dense entry points (blas/functions/*.hh) plus their option-struct spellings.
The batched containers: Matrix (owning), MatrixView (non-owning), KernelMatrixView (device-side),...
SYCL_EXTERNAL T sec_solve_ext_roc(const int32_t dd, const VectorView< T > &D, const VectorView< T > &z, const T p, bool &converged_out)
Event secular_solver(Queue &ctx, const VectorView< T > &d, const VectorView< T > &v, const MatrixView< T, MatrixFormat::Dense > &Qprime, const VectorView< T > &lambdas, const Span< int32_t > &n_reduced, const Span< T > rho, const T &tol_factor=10.0, int32_t *info=nullptr, int64_t info_nodes_per_item=1)
SYCL_EXTERNAL T sec_solve_roc(int32_t dd, const VectorView< T > &d, const VectorView< T > &z, const T &rho, const int32_t k, bool &converged_out)
Completion handle of enqueued work, returned by every entry point.
Where BatchLAS work runs: a device, a backend, an ordered SYCL queue and a workspace arena.
Non-owning view of size() contiguous elements of type T.
Definition sycl-span.hh:39