|
| template<typename R> |
| std::size_t | mtl::detail::logm_impl::table_index () |
| template<typename R> |
| R | mtl::detail::logm_impl::adl::call_log (const R &x) |
| template<typename R> |
| R | mtl::detail::logm_impl::adl::call_atan2 (const R &y, const R &x) |
| template<typename R> |
| R | mtl::detail::logm_impl::adl::call_atanh (const R &x) |
| template<typename R> |
| R | mtl::detail::logm_impl::log_lapy2 (const R &x, const R &y) |
| | log sqrt(x^2 + y^2).
|
| template<typename R> |
| std::complex< R > | mtl::detail::logm_impl::clog (const std::complex< R > &z) |
| | The principal logarithm of a complex number: log|z| + i arg z.
|
| template<typename T> |
| real_of< T >::type | mtl::detail::logm_impl::one_norm (const mat::dense2D< T > &M) |
| | ||M||_1 of a dense square matrix: the largest column sum of |m_ij|, with a complex entry measured as |re| + |im| as LAPACK's cabs1 does.
|
| template<typename R> |
| bool | mtl::detail::logm_impl::alpha_within (const std::array< R, 6 > &nrm, int p, const R &theta) |
| | alpha_p(X) <= theta, as ||X^p|| <= theta^p and ||X^(p+1)|| <= theta^(p+1), from the norms nrm[p] = ||X^p||_1.
|
| template<typename Accumulator, typename T> |
| std::array< typename real_of< T >::type, 6 > | mtl::detail::logm_impl::power_norms (const mat::dense2D< T > &Tm) |
| | The norms ||(T - I)^p||_1 for p = 1..5.
|
| template<typename T> |
| std::vector< std::complex< typename real_of< T >::type > > | mtl::detail::logm_impl::eigenvalues_of (const mat::dense2D< T > &Tm) |
| | The eigenvalues of quasi-triangular T, as complex numbers: a 1x1 block t, and a 2x2 block [a b; c a] as a +- i sqrt|b| sqrt|c|.
|
| template<typename T> |
| T | mtl::detail::logm_impl::briggs (T a, int k) |
| | a^(1/2^k) - 1 without the cancellation of forming the root first: (a - 1) / prod_{j=1}^{k} (1 + a^(1/2^j)) (Al-Mohy 2012; SciPy's _briggs_helper_function).
|
| template<typename T> |
| mat::dense2D< T > | mtl::detail::logm_impl::solve_quasi_triangular (const mat::dense2D< T > &M, const mat::dense2D< T > &B, const std::vector< std::size_t > &blocks) |
| | Solve M Y = B for M upper quasi-triangular with the diagonal blocks blocks (start indices, then n), by block back substitution; a 2x2 block is solved by Gaussian elimination with partial pivoting.
|
| template<typename R> |
| void | mtl::detail::logm_impl::gauss_legendre (int m, std::vector< R > &x, std::vector< R > &w) |
| | The m-point Gauss-Legendre rule on [0, 1], in R: Newton on the Legendre recurrence from double-precision starting values, so the nodes and weights carry R's own precision.
|
| template<typename R> |
| void | mtl::detail::logm_impl::log_block2 (const R &a, const R &b, const R &c, R(&l)[2][2]) |
| | log of a real 2x2 block [a b; c a] with b c < 0: log(rho) I + (theta / mu) N, N = [0 b; c 0], since N^2 = -mu^2 I; rho = |a + i mu|, theta = arg(a + i mu).
|
| template<typename T> |
| T | mtl::detail::logm_impl::superdiagonal_log (const T &l1, const T &l2, const T &t) |
| | The (1,2) entry of log([l1 t; 0 l2]) (Higham 2008, (11.28), with SciPy's test for well-separated eigenvalues).
|
| void | mtl::detail::logm_impl::no_principal_log (const char *who) |
| template<typename Accumulator, typename T> |
| mat::dense2D< T > | mtl::detail::logm_impl::log_quasi_triangular (const mat::dense2D< T > &T0, const char *who) |
| | log of quasi-triangular (real) or triangular (complex) T, the principal branch.
|
| template<typename Accumulator = void, FieldMatrix M> |
| auto | mtl::logm (const M &A) |
| | The principal logarithm of a square matrix: the X with exp(X) = A whose eigenvalues have imaginary parts in (-pi, pi), as a dense2D of A's element type.
|