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

◆ identity_free()

template<typename T , typename... Types, require_all_not_var_matrix_t< T, Types... > * = nullptr>
auto stan::math::identity_free ( T &&  x,
Types &&  ... 
)
inline

Returns the result of applying the inverse of the identity constraint transform to the input.

Returns the result of applying the identity constraint transform to the input.

This promotes the input to the least upper bound of the input types.

Template Parameters
Ttype of value to promote
TypesOther types.
Parameters
[in]xvalue to promote
Returns
value

For any of the inputs being a var_value type this promotes the input x to var_value.

Template Parameters
TAny type.
TypesAny type with one of T and Types being a var_value matrix.
Parameters
[in]xobject
Returns
transformed input

Definition at line 22 of file identity_free.hpp.