Skip to content

Instantly share code, notes, and snippets.

View SteveBronder's full-sized avatar
⚔️
Chillin

Steve Bronder SteveBronder

⚔️
Chillin
View GitHub Profile
##
## For this the tests are done with vars on both side, vars on the lhs, and vars on the rhs.
## The tests with varmat in them means they used var<Eigen>.
2020-08-26T00:17:49-04:00
Running callback/columns_dot_product
Run on (2 X 1607.98 MHz CPU s)
CPU Caches:
L1 Data 32 KiB (x1)
L1 Instruction 32 KiB (x1)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#include <benchmark/benchmark.h>
#include <stan/math.hpp>
#include <iostream>
using namespace stan::math;
using namespace Eigen;
using namespace std;
static void softmax_bench(benchmark::State& state) {
const int N = state.range(0);
// Code generated by %%NAME%% %%VERSION%%
#include <stan/model/model_header.hpp>
namespace tester_model_namespace {
inline void validate_positive_index(const char *var_name, const char *expr,
int val) {
if (val < 1) {
std::stringstream msg;
msg << "Found dimension size less than one in simplex declaration"
#include <benchmark/benchmark.h>
#include <stan/math/mix.hpp>
#include <utility>
#include <vector>
#include <type_traits>
namespace stan {
namespace math {
------------------------------------------------------------
make -j25 generate-tests -s
------------------------------------------------------------
make -j25 test/prob/double_exponential/double_exponential_cdf_log_00000_generated_ffd_test test/prob/double_exponential/double_exponential_cdf_00000_generated_fd_test test/prob/double_exponential/double_exponential_00000_generated_v_test test/prob/double_exponential/double_exponential_ccdf_log_00000_generated_ffv_test test/prob/double_exponential/double_exponential_ccdf_log_00000_generated_fd_test test/prob/double_exponential/double_exponential_cdf_00000_generated_fv_test test/prob/double_exponential/double_exponential_cdf_log_00000_generated_ffv_test test/prob/double_exponential/double_exponential_cdf_00000_generated_v_test test/prob/double_exponential/double_exponential_00000_generated_fd_test test/prob/double_exponential/double_exponential_cdf_log_00000_generated_fv_test test/prob/double_exponential/double_exponential_cdf_00000_generated_ffv_test test/prob/do
#!/bin/bash -e
usage() {
echo "=====!!!WARNING!!!===="
echo "This will clean all repos involved! Use only on a clean checkout."
echo "$0 \"<arguments to runPerformanceTests.py>\" <reference-cmdstan-git-hash> <cmdstan_pr_or_hash> <stan_pr> <math_pr>"
}
write_makelocal() {
echo "CXXFLAGS += -march=native -mtune=native -g -Wno-ignored-attributes" > make/local
// Code generated by stanc 458a7933
#include <stan/model/model_header.hpp>
namespace bernoulli_model_namespace {
inline void validate_positive_index(const char* var_name, const char* expr,
int val) {
if (val < 1) {
std::stringstream msg;
// Fails with examples/bernoulli/bernoulli.hpp:25001: error: stray ‘\’ in program
// Code generated by stanc 458a7933
#include <stan/model/model_header.hpp>
namespace bernoulli_model_namespace {
inline void validate_positive_index(const char* var_name, const char* expr,
int val) {
if (val < 1) {
std::stringstream msg;
functions{
int[] vecequals(int[] a, int test, int comparison){ //do indices of a match test condition?
int check[size(a)];
for(i in 1:size(check)){
if(comparison) check[i] = (test==a[i]) ? 1 : 0;
if(comparison==0) check[i] = (test==a[i]) ? 0 :1;
}
return(check);
}