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
#include <iostream> | |
#include "stan/math.hpp" | |
#include "stan/math/fwd/mat.hpp" | |
using namespace stan::math; | |
template<typename T1, typename T2> | |
std::vector<typename stan::return_type<T1, T2>::type > ode(const double& t, | |
const std::vector<T1>& u, | |
const std::vector<T2>& D, |
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
#include <stan/math/rev/core.hpp> | |
#include <test/unit/math/rev/mat/util.hpp> | |
#include <gtest/gtest.h> | |
#include <algorithm> | |
#include <sstream> | |
#include <tuple> | |
#include <vector> | |
#include <chrono> | |
namespace stan { |
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
#include <stan/math/rev/core.hpp> | |
#include <test/unit/math/rev/mat/util.hpp> | |
#include <gtest/gtest.h> | |
#include <algorithm> | |
#include <random> | |
#include <sstream> | |
#include <tuple> | |
namespace stan { | |
namespace math { |
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
These are all the files in stan/math/prim/fun that reference apply_scalar_unity: | |
acosh.hpp | |
acos.hpp | |
approx.hpp | |
asinh.hpp | |
asin.hpp | |
atanh.hpp | |
atan.hpp | |
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
MatrixExponential | |
accumulator | |
add | |
add_diag | |
append_col | |
append_row | |
assign | |
autocorrelation | |
autocovariance | |
block |
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
#include <benchmark/benchmark.h> | |
#include <stan/math.hpp> | |
#include <utility> | |
// Just to kick off the stack allocation | |
static void geometric_series(benchmark::State& state) { | |
using stan::math::var; | |
for (auto _ : state) { | |
auto start = std::chrono::high_resolution_clock::now(); | |
var r = 1.0; |
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
adj_jac_apply - deprecated | |
# Fully converted to var<mat> | |
softmax | |
dot_self | |
columns_dot_self | |
determinant | |
inverse | |
sum | |
multiply |
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
#include <benchmark/benchmark.h> | |
#include <stan/math.hpp> | |
#include <utility> | |
static void toss_me(benchmark::State& state) { | |
using stan::math::var; | |
Eigen::Matrix<double, -1, -1> x_vals = Eigen::MatrixXd::Random(256, 256); | |
Eigen::Matrix<double, -1, -1> y_vals = Eigen::MatrixXd::Random(256, 256); | |
using stan::math::var; | |
using stan::math::sum; |
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
#include <benchmark/benchmark.h> | |
#include <stan/math.hpp> | |
#include <utility> | |
static void toss_me(benchmark::State& state) { | |
using stan::math::var; | |
Eigen::Matrix<double, -1, -1> x_vals = Eigen::MatrixXd::Random(256, 256); | |
Eigen::Matrix<double, -1, -1> y_vals = Eigen::MatrixXd::Random(256, 256); | |
using stan::math::var; | |
using stan::math::sum; |
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
#include <benchmark/benchmark.h> | |
#include <stan/math.hpp> | |
#include <utility> | |
static void toss_me(benchmark::State& state) { | |
using stan::math::var; | |
Eigen::Matrix<double, -1, -1> x_vals = Eigen::MatrixXd::Random(256, 256); | |
Eigen::Matrix<double, -1, -1> y_vals = Eigen::MatrixXd::Random(256, 256); | |
using stan::math::var; | |
using stan::math::sum; |