Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ tri_inverse()

template<matrix_cl_view matrix_view = matrix_cl_view::Entire, typename T , require_matrix_cl_st< std::is_floating_point, T > * = nullptr>
plain_type_t< T > stan::math::tri_inverse ( const T &  A)
inline

Computes the inverse of a triangular matrix.

For a full guide to how this works and fits into Cholesky decompositions, see the reference report here and kernel doc here.

Parameters
Amatrix on the OpenCL device
Returns
the inverse of A
Exceptions
<code>std::invalid_argument</code>if the matrix is not square

Definition at line 40 of file tri_inverse.hpp.