template<typename T>
class stan::math::vari_value< T, require_matrix_cl_t< T > >
The variable implementation for matrix_cl
.
This class is complete (not abstract) and may be used for constants.
A variable implementation is constructed with a constant value. It also stores the adjoint for storing the partial derivative with respect to the root of the derivative tree.
Definition at line 178 of file vari.hpp.
|
template<typename S , require_convertible_t< S &, T > * = nullptr> |
| vari_value (S &&x) |
| Construct a matrix_cl variable implementation from a value.
|
|
template<typename S , require_eigen_t< S > * = nullptr, require_vt_same< T, S > * = nullptr> |
| vari_value (const S &x) |
| Construct a matrix_cl variable implementation from an Eigen value.
|
|
template<typename S , require_convertible_t< S &, T > * = nullptr> |
| vari_value (S &&x, bool stacked) |
| Construct an matrix_cl variable implementation from a value.
|
|
void | set_zero_adjoint () final |
| Set the adjoint value of this variable to 0.
|
|
const auto & | val () const |
| Return a constant reference to the value of this vari.
|
|
auto & | val_op () |
|
auto & | adj () |
| Return a reference to the derivative of the root expression with respect to this expression.
|
|
auto & | adj () const |
|
auto & | adj_op () |
|
auto | block (int row, int col, int rows, int cols) |
| Returns a view into a block of matrix.
|
|
auto | transpose () |
| Returns a transposed view into the matrix.
|
|
auto | as_column_vector_or_scalar () |
| Returns column vector view into the row or column vector.
|
|
auto | reverse () |
| Returns reverse view into the row or column vector.
|
|
template<typename RowIndex , typename ColIndex > |
auto | index (const RowIndex &row_index, const ColIndex &col_index) |
| Return indexed view into a matrix.
|
|
const Eigen::Index | rows () const |
| Return the number of rows for this class's val_ member.
|
|
const Eigen::Index | cols () const |
| Return the number of columns for this class's val_ member.
|
|
const Eigen::Index | size () const |
| Return the size of this class's val_ member.
|
|
virtual void | chain () |
| Apply the chain rule to this variable based on the variables on which it depends.
|
|