math icon indicating copy to clipboard operation
math copied to clipboard

The Stan Math Library is a C++ template library for automatic differentiation of any order using forward, reverse, and mixed modes. It includes a range of built-in functions for probabilistic modelin...

Results 196 math issues
Sort by recently updated
recently updated
newest added

## Description Ratcliff's Diffusion Decision Model (DDM) is a popular model for jointly modelling binary responses and their associated response times. The DDM exists in several parameterizations, and currently Stan...

## Description Unit vector transforms should work with a zero-length unconstrained vector. ## Example The size-1 unit vector is just a constant `[1]'`. This should be the result of transforming...

feature
code cleanup
good first issue

Provide a reverse-mode specialization for `quad_form_diag`.

feature
good first issue

## Description After #2559 is merged, it'd be nice to refactor the implementations. * [ ] Single Jacobian-templated implementation. Those are going to look as follows. ``` template inline auto...

code cleanup

## Summary Optimize kernel generator so it can use `matrix_cl`'s move assignment where possible instead of copying the data. ## Tests Added a test to check that the new optimization...

Implement one or more forms of the matrix normal distribution. The general distribution is of the form ``` matrix_normal(matrix[N, P] y | matrix[N, P] mu, cov_matrix[N, N] SigmaRow, cov_matrix[P, P]...

feature
new function

The `multi_normal` lpdf relies on autodiff but the `multi_normal_cholesky` has derivatives. It makes sense to just call `multi_normal_cholesky` once the Cholesky decomposition is taken of the covariance matrix in the...

## Description For the `var` our current rules are that if any of the inputs are `var` the output will also be `var`. But there's several functions like `pow()` which...

## Description I think it would be nice to have a global logger or something of the sort that only does certain checks if a log level is set. This...

## Description We need to be more careful with our include orders when constructing classes. A good example is in the [`accumulator`](https://github.com/stan-dev/math/blob/develop/stan/math/prim/fun/accumulator.hpp) class where we call `stan::math::sum()`. On develop, the...