Stan  2.5.0
probability, sampling & optimization
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions
print.hpp File Reference
#include <algorithm>
#include <iostream>
#include <iomanip>
#include <ios>
#include <stan/mcmc/chains.hpp>

Go to the source code of this file.

Functions

void compute_width_and_precision (double value, int sig_figs, int &width, int &precision)
 
int compute_width (double value, int sig_figs)
 
int compute_precision (double value, int sig_figs, bool scientific)
 
int calculate_column_width (const Eigen::VectorXd &x, const std::string &name, const int sig_figs, std::ios_base::fmtflags &format)
 
Eigen::VectorXi calculate_column_widths (const Eigen::MatrixXd &values, const Eigen::Matrix< std::string, Eigen::Dynamic, 1 > &headers, const int sig_figs, Eigen::Matrix< std::ios_base::fmtflags, Eigen::Dynamic, 1 > &formats)
 
void print_usage ()
 
bool is_matrix (const std::string &parameter_name)
 
std::string base_param_name (stan::mcmc::chains<> &chains, const int index)
 
std::string matrix_index (stan::mcmc::chains<> &chains, const int index)
 
std::vector< int > dimensions (stan::mcmc::chains<> &chains, const int start_index)
 
void next_index (std::vector< int > &index, const std::vector< int > &dims)
 
int matrix_index (std::vector< int > &index, const std::vector< int > &dims)
 

Function Documentation

std::string base_param_name ( stan::mcmc::chains<> &  chains,
const int  index 
)

Definition at line 120 of file print.hpp.

int calculate_column_width ( const Eigen::VectorXd &  x,
const std::string &  name,
const int  sig_figs,
std::ios_base::fmtflags &  format 
)

Definition at line 54 of file print.hpp.

Eigen::VectorXi calculate_column_widths ( const Eigen::MatrixXd &  values,
const Eigen::Matrix< std::string, Eigen::Dynamic, 1 > &  headers,
const int  sig_figs,
Eigen::Matrix< std::ios_base::fmtflags, Eigen::Dynamic, 1 > &  formats 
)

Definition at line 87 of file print.hpp.

int compute_precision ( double  value,
int  sig_figs,
bool  scientific 
)

Definition at line 40 of file print.hpp.

int compute_width ( double  value,
int  sig_figs 
)

Definition at line 33 of file print.hpp.

void compute_width_and_precision ( double  value,
int  sig_figs,
int &  width,
int &  precision 
)

Definition at line 10 of file print.hpp.

std::vector<int> dimensions ( stan::mcmc::chains<> &  chains,
const int  start_index 
)

Definition at line 130 of file print.hpp.

bool is_matrix ( const std::string &  parameter_name)

Definition at line 116 of file print.hpp.

std::string matrix_index ( stan::mcmc::chains<> &  chains,
const int  index 
)

Definition at line 125 of file print.hpp.

int matrix_index ( std::vector< int > &  index,
const std::vector< int > &  dims 
)

Definition at line 183 of file print.hpp.

void next_index ( std::vector< int > &  index,
const std::vector< int > &  dims 
)

Definition at line 156 of file print.hpp.

void print_usage ( )

Definition at line 100 of file print.hpp.


     [ Stan Home Page ] © 2011–2014, Stan Development Team.