![]() |
Stan Math Library
5.1.0
Automatic Differentiation
|
#include <vari.hpp>
Public Types | |
using | value_type = T |
Public Member Functions | |
void | set_zero_adjoint () final |
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. | |
Static Public Member Functions | |
static void * | operator new (size_t nbytes) noexcept |
Allocate memory from the underlying memory pool. | |
static void | operator delete (void *) noexcept |
Delete a pointer from the underlying memory pool. | |
Public Attributes | |
T | val_ |
The value of this variable. | |
T | adj_ |
The adjoint of this variable, which is the partial derivative of this variable with respect to the root variable. | |
Static Public Attributes | |
static constexpr int | RowsAtCompileTime {-1} |
Rows at compile time. | |
static constexpr int | ColsAtCompileTime {-1} |
Columns at compile time. | |