forked from stan-dev/stan
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request stan-dev#447 from stan-dev/feature/issue-443-reorg…
…anize-agrad Fixes stan-dev#443.
- Loading branch information
Showing
606 changed files
with
1,536 additions
and
1,477 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
#ifndef STAN_AGRAD_HPP | ||
#define STAN_AGRAD_HPP | ||
#ifndef __STAN__AGRAD_HPP__ | ||
#define __STAN__AGRAD_HPP__ | ||
|
||
#include <stan/agrad/agrad.hpp> | ||
#include <stan/agrad/matrix.hpp> | ||
#include <stan/agrad/rev/error_handling/matrix/check_pos_definite.hpp> | ||
#include <stan/agrad/partials_vari.hpp> | ||
// This header shouldn't be included directly. | ||
// For reverse mode autodiff, include: | ||
// #include <stan/agrad/rev.hpp> | ||
// #include <stan/agrad/rev/matrix.hpp> | ||
// For forward mode autodiff, include: | ||
// #include <stan/agrad/fwd.hpp> | ||
// #include <stan/agrad/fwd/matrix.hpp> | ||
|
||
#endif |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#ifndef __STAN__AGRAD__FWD_HPP__ | ||
#define __STAN__AGRAD__FWD_HPP__ | ||
|
||
//fvar | ||
#include <stan/agrad/fwd/fvar.hpp> | ||
#include <stan/agrad/fwd/numeric_limits.hpp> | ||
#include <stan/agrad/fwd/operators.hpp> | ||
#include <stan/agrad/fwd/functions.hpp> | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
#ifndef __STAN__AGRAD__FWD__FUNCTIONS_HPP__ | ||
#define __STAN__AGRAD__FWD__FUNCTIONS_HPP__ | ||
|
||
#include <stan/agrad/fwd/functions/Phi.hpp> | ||
#include <stan/agrad/fwd/functions/abs.hpp> | ||
#include <stan/agrad/fwd/functions/acos.hpp> | ||
#include <stan/agrad/fwd/functions/acosh.hpp> | ||
#include <stan/agrad/fwd/functions/asin.hpp> | ||
#include <stan/agrad/fwd/functions/asinh.hpp> | ||
#include <stan/agrad/fwd/functions/atan.hpp> | ||
#include <stan/agrad/fwd/functions/atan2.hpp> | ||
#include <stan/agrad/fwd/functions/atanh.hpp> | ||
#include <stan/agrad/fwd/functions/bessel_first_kind.hpp> | ||
#include <stan/agrad/fwd/functions/bessel_second_kind.hpp> | ||
#include <stan/agrad/fwd/functions/binary_log_loss.hpp> | ||
#include <stan/agrad/fwd/functions/binomial_coefficient_log.hpp> | ||
#include <stan/agrad/fwd/functions/cbrt.hpp> | ||
#include <stan/agrad/fwd/functions/ceil.hpp> | ||
#include <stan/agrad/fwd/functions/cos.hpp> | ||
#include <stan/agrad/fwd/functions/cosh.hpp> | ||
#include <stan/agrad/fwd/functions/digamma.hpp> | ||
#include <stan/agrad/fwd/functions/erf.hpp> | ||
#include <stan/agrad/fwd/functions/erfc.hpp> | ||
#include <stan/agrad/fwd/functions/exp.hpp> | ||
#include <stan/agrad/fwd/functions/exp2.hpp> | ||
#include <stan/agrad/fwd/functions/expm1.hpp> | ||
#include <stan/agrad/fwd/functions/fabs.hpp> | ||
#include <stan/agrad/fwd/functions/falling_factorial.hpp> | ||
#include <stan/agrad/fwd/functions/fdim.hpp> | ||
#include <stan/agrad/fwd/functions/floor.hpp> | ||
#include <stan/agrad/fwd/functions/fma.hpp> | ||
#include <stan/agrad/fwd/functions/fmax.hpp> | ||
#include <stan/agrad/fwd/functions/fmin.hpp> | ||
#include <stan/agrad/fwd/functions/fmod.hpp> | ||
#include <stan/agrad/fwd/functions/gamma_p.hpp> | ||
#include <stan/agrad/fwd/functions/gamma_q.hpp> | ||
#include <stan/agrad/fwd/functions/hypot.hpp> | ||
#include <stan/agrad/fwd/functions/inv.hpp> | ||
#include <stan/agrad/fwd/functions/inv_cloglog.hpp> | ||
#include <stan/agrad/fwd/functions/inv_logit.hpp> | ||
#include <stan/agrad/fwd/functions/inv_sqrt.hpp> | ||
#include <stan/agrad/fwd/functions/inv_square.hpp> | ||
#include <stan/agrad/fwd/functions/lbeta.hpp> | ||
#include <stan/agrad/fwd/functions/lgamma.hpp> | ||
#include <stan/agrad/fwd/functions/lmgamma.hpp> | ||
#include <stan/agrad/fwd/functions/log.hpp> | ||
#include <stan/agrad/fwd/functions/log10.hpp> | ||
#include <stan/agrad/fwd/functions/log1m.hpp> | ||
#include <stan/agrad/fwd/functions/log1m_exp.hpp> | ||
#include <stan/agrad/fwd/functions/log1m_inv_logit.hpp> | ||
#include <stan/agrad/fwd/functions/log1p.hpp> | ||
#include <stan/agrad/fwd/functions/log1p_exp.hpp> | ||
#include <stan/agrad/fwd/functions/log2.hpp> | ||
#include <stan/agrad/fwd/functions/log_diff_exp.hpp> | ||
#include <stan/agrad/fwd/functions/log_falling_factorial.hpp> | ||
#include <stan/agrad/fwd/functions/log_inv_logit.hpp> | ||
#include <stan/agrad/fwd/functions/log_rising_factorial.hpp> | ||
#include <stan/agrad/fwd/functions/log_sum_exp.hpp> | ||
#include <stan/agrad/fwd/functions/logit.hpp> | ||
#include <stan/agrad/fwd/functions/modified_bessel_first_kind.hpp> | ||
#include <stan/agrad/fwd/functions/modified_bessel_second_kind.hpp> | ||
#include <stan/agrad/fwd/functions/multiply_log.hpp> | ||
#include <stan/agrad/fwd/functions/owens_t.hpp> | ||
#include <stan/agrad/fwd/functions/pow.hpp> | ||
#include <stan/agrad/fwd/functions/rising_factorial.hpp> | ||
#include <stan/agrad/fwd/functions/round.hpp> | ||
#include <stan/agrad/fwd/functions/sin.hpp> | ||
#include <stan/agrad/fwd/functions/sinh.hpp> | ||
#include <stan/agrad/fwd/functions/sqrt.hpp> | ||
#include <stan/agrad/fwd/functions/square.hpp> | ||
#include <stan/agrad/fwd/functions/tan.hpp> | ||
#include <stan/agrad/fwd/functions/tanh.hpp> | ||
#include <stan/agrad/fwd/functions/tgamma.hpp> | ||
#include <stan/agrad/fwd/functions/trunc.hpp> | ||
|
||
#endif |
4 changes: 2 additions & 2 deletions
4
src/stan/agrad/fwd/Phi.hpp → src/stan/agrad/fwd/functions/Phi.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/stan/agrad/fwd/abs.hpp → src/stan/agrad/fwd/functions/abs.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/stan/agrad/fwd/acos.hpp → src/stan/agrad/fwd/functions/acos.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/stan/agrad/fwd/acosh.hpp → src/stan/agrad/fwd/functions/acosh.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/stan/agrad/fwd/asin.hpp → src/stan/agrad/fwd/functions/asin.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/stan/agrad/fwd/asinh.hpp → src/stan/agrad/fwd/functions/asinh.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/stan/agrad/fwd/atan.hpp → src/stan/agrad/fwd/functions/atan.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/stan/agrad/fwd/atan2.hpp → src/stan/agrad/fwd/functions/atan2.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/stan/agrad/fwd/atanh.hpp → src/stan/agrad/fwd/functions/atanh.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/stan/agrad/fwd/bessel_first_kind.hpp → ...agrad/fwd/functions/bessel_first_kind.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/stan/agrad/fwd/bessel_second_kind.hpp → ...grad/fwd/functions/bessel_second_kind.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/stan/agrad/fwd/binary_log_loss.hpp → ...n/agrad/fwd/functions/binary_log_loss.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...an/agrad/fwd/binomial_coefficient_log.hpp → ...wd/functions/binomial_coefficient_log.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/stan/agrad/fwd/cbrt.hpp → src/stan/agrad/fwd/functions/cbrt.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/stan/agrad/fwd/ceil.hpp → src/stan/agrad/fwd/functions/ceil.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/stan/agrad/fwd/cos.hpp → src/stan/agrad/fwd/functions/cos.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/stan/agrad/fwd/cosh.hpp → src/stan/agrad/fwd/functions/cosh.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/stan/agrad/fwd/digamma.hpp → src/stan/agrad/fwd/functions/digamma.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.