Aprepro 5.0x
Loading...
Searching...
No Matches
apr_builtin.cc File Reference
#include "apr_builtin.h"
#include "apr_symrec.h"
#include "enumerate.h"
#include <algorithm>
#include <cctype>
#include <cerrno>
#include <cfenv>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <ctime>
#include <fstream>
#include <stack>
#include <stdexcept>
#include <string>
#include <unordered_map>
#include <utility>
#include <vector>
#include <fmt/ostream.h>
#include <fmt/printf.h>
#include "apr_scanner.h"
#include "apr_tokenize.h"
#include "apr_util.h"
#include "aprepro.h"
#include "aprepro_parser.h"
#include <cassert>
#include <cstring>
#include <random>

Namespaces

namespace  anonymous_namespace{apr_builtin.cc}
 
namespace  SEAMS
 

Macros

#define PI   3.141592653589793238462643
 
#define math_errhandling   MATH_ERRNO
 
#define d2r(x)
 
#define r2d(x)
 
#define max(x, y)
 
#define min(x, y)
 

Functions

std::vector< std::string > & anonymous_namespace{apr_builtin.cc}::get_tokenized_strings (const char *string, const char *delm)
 
std::mt19937_64 anonymous_namespace{apr_builtin.cc}::rng (rd())
 
void anonymous_namespace{apr_builtin.cc}::reset_error ()
 
double SEAMS::do_time ()
 
double SEAMS::do_FtoC (double F)
 
double SEAMS::do_CtoF (double C)
 
double SEAMS::do_int (double x)
 
double SEAMS::do_nint (double x)
 
double SEAMS::do_dist (double x1, double y1, double x2, double y2)
 
double SEAMS::do_angle (double x1, double y1, double x2, double y2)
 
double SEAMS::do_angled (double x1, double y1, double x2, double y2)
 
double SEAMS::do_hypot (double x, double y)
 
double SEAMS::do_pow (double x, double y)
 
double SEAMS::do_max (double x, double y)
 
double SEAMS::do_min (double x, double y)
 
double SEAMS::do_d2r (double x)
 
double SEAMS::do_r2d (double x)
 
double SEAMS::do_sind (double x)
 
double SEAMS::do_sin (double x)
 
double SEAMS::do_cosd (double x)
 
double SEAMS::do_cos (double x)
 
double SEAMS::do_tand (double x)
 
double SEAMS::do_tan (double x)
 
double SEAMS::do_atan2d (double x, double y)
 
double SEAMS::do_atan2 (double x, double y)
 
double SEAMS::do_atand (double x)
 
double SEAMS::do_atan (double x)
 
double SEAMS::do_asind (double x)
 
double SEAMS::do_asin (double x)
 
double SEAMS::do_acosd (double x)
 
double SEAMS::do_acos (double x)
 
double SEAMS::do_srand (double seed)
 
double SEAMS::do_rand (double xl, double xh)
 
double SEAMS::do_rand_normal (double mean, double stddev)
 
double SEAMS::do_rand_lognormal (double mean, double stddev)
 
double SEAMS::do_rand_weibull (double alpha, double beta)
 
double SEAMS::do_sign (double x, double y)
 
double SEAMS::do_dim (double x, double y)
 
double SEAMS::do_fabs (double x)
 
double SEAMS::do_ceil (double x)
 
double SEAMS::do_cosh (double x)
 
double SEAMS::do_exp (double x)
 
double SEAMS::do_expm1 (double x)
 
double SEAMS::do_erf (double x)
 
double SEAMS::do_erfc (double x)
 
double SEAMS::do_floor (double x)
 
double SEAMS::do_fmod (double x, double y)
 
double SEAMS::do_log (double x)
 
double SEAMS::do_log10 (double x)
 
double SEAMS::do_sinh (double x)
 
double SEAMS::do_sqrt (double x)
 
double SEAMS::do_cbrt (double x)
 
double SEAMS::do_tanh (double x)
 
double SEAMS::do_polarX (double rad, double ang)
 
double SEAMS::do_polarY (double rad, double ang)
 
double SEAMS::do_lgamma (double val)
 
double SEAMS::do_tgamma (double val)
 
double SEAMS::do_juldayhms (double mon, double day, double year, double h, double mi, double se)
 
double SEAMS::do_julday (double mon, double day, double year)
 
double SEAMS::do_log1p (double x)
 
double SEAMS::do_acosh (double x)
 
double SEAMS::do_asinh (double x)
 
double SEAMS::do_atanh (double x)
 
double SEAMS::do_rows (const array *arr)
 
double SEAMS::do_cols (const array *arr)
 
const char * SEAMS::do_version ()
 
const char * SEAMS::do_get_date ()
 
const char * SEAMS::do_get_iso_date ()
 
const char * SEAMS::do_get_time ()
 
const char * SEAMS::do_tolower (char *string)
 
const char * SEAMS::do_toupper (char *string)
 
const char * SEAMS::do_tostring (double x)
 
const char * SEAMS::do_output (char *filename)
 
const char * SEAMS::do_append (char *filename)
 
double SEAMS::do_word_count (char *string, char *delm)
 
double SEAMS::do_find_word (char *word, char *string, char *delm)
 
const char * SEAMS::do_get_word (double n, char *string, char *delm)
 
const char * SEAMS::do_file_to_string (char *filename)
 
const char * SEAMS::do_getenv (char *env)
 
double SEAMS::do_strtod (char *string)
 
const char * SEAMS::do_dumpsym ()
 
const char * SEAMS::do_dumpsym_json ()
 
const char * SEAMS::do_dumpfunc ()
 
const char * SEAMS::do_dumpvar ()
 
const char * SEAMS::do_dumpsym1 (char *pre)
 
const char * SEAMS::do_dumpfunc1 (char *pre)
 
const char * SEAMS::do_dumpvar1 (char *pre)
 
double SEAMS::do_option (char *option, double value)
 
const char * SEAMS::do_include_path (char *new_path)
 
const char * SEAMS::do_intout (double intval)
 
const char * SEAMS::do_format (double var, char *format)
 
const char * SEAMS::do_execute (char *string)
 
const char * SEAMS::do_rescan (char *string)
 
const char * SEAMS::do_import (char *string)
 
const char * SEAMS::do_if (double x)
 
const char * SEAMS::do_notif (double x)
 
const char * SEAMS::do_elseif (double x)
 
const char * SEAMS::do_str_if (char *string)
 
const char * SEAMS::do_str_notif (char *string)
 
const char * SEAMS::do_str_elseif (char *string)
 
const char * SEAMS::do_switch (double x)
 
const char * SEAMS::do_case (double x)
 
const char * SEAMS::do_extract (char *string, char *begin, char *end)
 
const char * SEAMS::do_get_temp_filename ()
 
const char * SEAMS::do_error (char *error_string)
 
const char * SEAMS::do_print_array (const array *my_array_data)
 
const char * SEAMS::do_delete (char *string)
 
arraySEAMS::do_make_array (double rows, double cols)
 
arraySEAMS::do_make_array_init (double rows, double cols, double init)
 
arraySEAMS::do_identity (double size)
 
arraySEAMS::do_linear_array (double init, double final, double count)
 
arraySEAMS::do_transpose (const array *a)
 
arraySEAMS::do_principal (const array *a)
 
arraySEAMS::do_csv_array1 (const char *filename)
 
arraySEAMS::do_csv_array (const char *filename, double skip)
 
arraySEAMS::do_csv_array2 (const char *filename, const char *comment)
 
arraySEAMS::do_array_from_string (const char *string, const char *delm)
 
arraySEAMS::do_sym_tensor_from_string (const char *string, const char *delm)
 

Variables

std::unordered_map< size_t, std::vector< std::string > > anonymous_namespace{apr_builtin.cc}::tokenized_strings
 
std::random_device anonymous_namespace{apr_builtin.cc}::rd
 

Macro Definition Documentation

◆ d2r

#define d2r ( x)
Value:
((x) * PI / 180.)
#define PI
Definition apr_builtin.cc:45

◆ math_errhandling

#define math_errhandling   MATH_ERRNO

◆ max

#define max ( x,
y )
Value:
(x) > (y) ? (x) : (y)

◆ min

#define min ( x,
y )
Value:
(x) < (y) ? (x) : (y)

◆ PI

#define PI   3.141592653589793238462643

◆ r2d

#define r2d ( x)
Value:
((x) * 180. / PI)