rana-cli/wakatime/packages/pygments/lexers/_stan_builtins.py

533 lines
9.9 KiB
Python
Raw Normal View History

# -*- coding: utf-8 -*-
"""
2014-12-01 06:10:30 +00:00
pygments.lexers._stan_builtins
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2014-12-01 06:10:30 +00:00
This file contains the names of functions for Stan used by
2016-06-13 14:41:17 +00:00
``pygments.lexers.math.StanLexer. This is for Stan language version 2.8.0.
2016-06-13 14:41:17 +00:00
:copyright: Copyright 2006-2015 by the Pygments team, see AUTHORS.
2014-12-01 06:10:30 +00:00
:license: BSD, see LICENSE for details.
"""
2014-12-01 06:10:30 +00:00
KEYWORDS = (
'else',
'for',
'if',
'in',
'increment_log_prob',
2016-06-13 14:41:17 +00:00
'integrate_ode',
2014-12-01 06:10:30 +00:00
'lp__',
'print',
2016-06-13 14:41:17 +00:00
'reject',
2014-12-01 06:10:30 +00:00
'return',
2016-06-13 14:41:17 +00:00
'while'
2014-12-01 06:10:30 +00:00
)
2014-12-01 06:10:30 +00:00
TYPES = (
'cholesky_factor_corr',
'cholesky_factor_cov',
'corr_matrix',
'cov_matrix',
'int',
'matrix',
'ordered',
'positive_ordered',
'real',
'row_vector',
2016-06-13 14:41:17 +00:00
'row_vectormatrix',
'simplex',
'unit_vector',
2014-12-01 06:10:30 +00:00
'vector',
2016-06-13 14:41:17 +00:00
'void')
2014-12-01 06:10:30 +00:00
FUNCTIONS = (
'Phi',
'Phi_approx',
'abs',
'acos',
'acosh',
2016-06-13 14:41:17 +00:00
'append_col',
'append_row',
'asin',
'asinh',
'atan',
'atan2',
'atanh',
2014-12-01 06:10:30 +00:00
'bernoulli_ccdf_log',
'bernoulli_cdf',
2014-12-01 06:10:30 +00:00
'bernoulli_cdf_log',
'bernoulli_log',
'bernoulli_logit_log',
'bernoulli_rng',
2014-12-01 06:10:30 +00:00
'bessel_first_kind',
'bessel_second_kind',
'beta_binomial_ccdf_log',
'beta_binomial_cdf',
2014-12-01 06:10:30 +00:00
'beta_binomial_cdf_log',
'beta_binomial_log',
'beta_binomial_rng',
2014-12-01 06:10:30 +00:00
'beta_ccdf_log',
'beta_cdf',
2014-12-01 06:10:30 +00:00
'beta_cdf_log',
'beta_log',
'beta_rng',
'binary_log_loss',
2014-12-01 06:10:30 +00:00
'binomial_ccdf_log',
'binomial_cdf',
2014-12-01 06:10:30 +00:00
'binomial_cdf_log',
'binomial_coefficient_log',
'binomial_log',
'binomial_logit_log',
'binomial_rng',
'block',
'categorical_log',
2014-12-01 06:10:30 +00:00
'categorical_logit_log',
'categorical_rng',
2014-12-01 06:10:30 +00:00
'cauchy_ccdf_log',
'cauchy_cdf',
2014-12-01 06:10:30 +00:00
'cauchy_cdf_log',
'cauchy_log',
'cauchy_rng',
'cbrt',
'ceil',
2014-12-01 06:10:30 +00:00
'chi_square_ccdf_log',
'chi_square_cdf',
'chi_square_cdf_log',
'chi_square_log',
'chi_square_rng',
'cholesky_decompose',
'col',
'cols',
2014-12-01 06:10:30 +00:00
'columns_dot_product',
'columns_dot_self',
'cos',
'cosh',
'crossprod',
2016-06-13 14:41:17 +00:00
'csr_extract_u',
'csr_extract_v',
'csr_extract_w',
'csr_matrix_times_vector',
'csr_to_dense_matrix',
'cumulative_sum',
'determinant',
'diag_matrix',
'diag_post_multiply',
'diag_pre_multiply',
'diagonal',
2014-12-01 06:10:30 +00:00
'digamma',
'dims',
'dirichlet_log',
'dirichlet_rng',
2014-12-01 06:10:30 +00:00
'distance',
'dot_product',
'dot_self',
2014-12-01 06:10:30 +00:00
'double_exponential_ccdf_log',
'double_exponential_cdf',
'double_exponential_cdf_log',
'double_exponential_log',
'double_exponential_rng',
'e',
'eigenvalues_sym',
'eigenvectors_sym',
'erf',
'erfc',
'exp',
'exp2',
2014-12-01 06:10:30 +00:00
'exp_mod_normal_ccdf_log',
'exp_mod_normal_cdf',
2014-12-01 06:10:30 +00:00
'exp_mod_normal_cdf_log',
'exp_mod_normal_log',
'exp_mod_normal_rng',
'expm1',
2014-12-01 06:10:30 +00:00
'exponential_ccdf_log',
'exponential_cdf',
2014-12-01 06:10:30 +00:00
'exponential_cdf_log',
'exponential_log',
'exponential_rng',
'fabs',
2014-12-01 06:10:30 +00:00
'falling_factorial',
'fdim',
'floor',
'fma',
'fmax',
'fmin',
'fmod',
2016-06-13 14:41:17 +00:00
'frechet_ccdf_log',
'frechet_cdf',
'frechet_cdf_log',
'frechet_log',
'frechet_rng',
2014-12-01 06:10:30 +00:00
'gamma_ccdf_log',
'gamma_cdf',
'gamma_cdf_log',
'gamma_log',
2014-12-01 06:10:30 +00:00
'gamma_p',
'gamma_q',
'gamma_rng',
2014-12-01 06:10:30 +00:00
'gaussian_dlm_obs_log',
2016-06-13 14:41:17 +00:00
'get_lp',
2014-12-01 06:10:30 +00:00
'gumbel_ccdf_log',
'gumbel_cdf',
2014-12-01 06:10:30 +00:00
'gumbel_cdf_log',
'gumbel_log',
'gumbel_rng',
2014-12-01 06:10:30 +00:00
'head',
'hypergeometric_log',
'hypergeometric_rng',
'hypot',
'if_else',
'int_step',
2014-12-01 06:10:30 +00:00
'inv',
'inv_chi_square_ccdf_log',
'inv_chi_square_cdf',
2014-12-01 06:10:30 +00:00
'inv_chi_square_cdf_log',
'inv_chi_square_log',
'inv_chi_square_rng',
'inv_cloglog',
2014-12-01 06:10:30 +00:00
'inv_gamma_ccdf_log',
'inv_gamma_cdf',
2014-12-01 06:10:30 +00:00
'inv_gamma_cdf_log',
'inv_gamma_log',
'inv_gamma_rng',
'inv_logit',
2016-06-13 14:41:17 +00:00
'inv_phi',
2014-12-01 06:10:30 +00:00
'inv_sqrt',
'inv_square',
'inv_wishart_log',
'inv_wishart_rng',
'inverse',
2014-12-01 06:10:30 +00:00
'inverse_spd',
2016-06-13 14:41:17 +00:00
'is_inf',
'is_nan',
'lbeta',
'lgamma',
'lkj_corr_cholesky_log',
'lkj_corr_cholesky_rng',
'lkj_corr_log',
'lkj_corr_rng',
'lmgamma',
'log',
'log10',
'log1m',
2014-12-01 06:10:30 +00:00
'log1m_exp',
'log1m_inv_logit',
'log1p',
'log1p_exp',
'log2',
'log_determinant',
2014-12-01 06:10:30 +00:00
'log_diff_exp',
'log_falling_factorial',
'log_inv_logit',
2016-06-13 14:41:17 +00:00
'log_mix',
2014-12-01 06:10:30 +00:00
'log_rising_factorial',
'log_softmax',
'log_sum_exp',
2014-12-01 06:10:30 +00:00
'logistic_ccdf_log',
'logistic_cdf',
2014-12-01 06:10:30 +00:00
'logistic_cdf_log',
'logistic_log',
'logistic_rng',
'logit',
2014-12-01 06:10:30 +00:00
'lognormal_ccdf_log',
'lognormal_cdf',
2014-12-01 06:10:30 +00:00
'lognormal_cdf_log',
'lognormal_log',
'lognormal_rng',
2014-12-01 06:10:30 +00:00
'machine_precision',
'max',
'mdivide_left_tri_low',
'mdivide_right_tri_low',
'mean',
'min',
2014-12-01 06:10:30 +00:00
'modified_bessel_first_kind',
'modified_bessel_second_kind',
2016-06-13 14:41:17 +00:00
'multi_gp_cholesky_log',
2014-12-01 06:10:30 +00:00
'multi_gp_log',
'multi_normal_cholesky_log',
2014-12-01 06:10:30 +00:00
'multi_normal_cholesky_rng',
'multi_normal_log',
'multi_normal_prec_log',
'multi_normal_rng',
'multi_student_t_log',
'multi_student_t_rng',
'multinomial_log',
'multinomial_rng',
'multiply_log',
'multiply_lower_tri_self_transpose',
2016-06-13 14:41:17 +00:00
'neg_binomial_2_ccdf_log',
'neg_binomial_2_cdf',
'neg_binomial_2_cdf_log',
2014-12-01 06:10:30 +00:00
'neg_binomial_2_log',
'neg_binomial_2_log_log',
'neg_binomial_2_log_rng',
'neg_binomial_2_rng',
'neg_binomial_ccdf_log',
'neg_binomial_cdf',
2014-12-01 06:10:30 +00:00
'neg_binomial_cdf_log',
'neg_binomial_log',
'neg_binomial_rng',
'negative_infinity',
2014-12-01 06:10:30 +00:00
'normal_ccdf_log',
'normal_cdf',
2014-12-01 06:10:30 +00:00
'normal_cdf_log',
'normal_log',
'normal_rng',
'not_a_number',
2016-06-13 14:41:17 +00:00
'num_elements',
'ordered_logistic_log',
'ordered_logistic_rng',
'owens_t',
2014-12-01 06:10:30 +00:00
'pareto_ccdf_log',
'pareto_cdf',
2014-12-01 06:10:30 +00:00
'pareto_cdf_log',
'pareto_log',
'pareto_rng',
2016-06-13 14:41:17 +00:00
'pareto_type_2_ccdf_log',
'pareto_type_2_cdf',
'pareto_type_2_cdf_log',
'pareto_type_2_log',
'pareto_type_2_rng',
'pi',
2014-12-01 06:10:30 +00:00
'poisson_ccdf_log',
'poisson_cdf',
2014-12-01 06:10:30 +00:00
'poisson_cdf_log',
'poisson_log',
'poisson_log_log',
2016-06-13 14:41:17 +00:00
'poisson_log_rng',
'poisson_rng',
'positive_infinity',
'pow',
'prod',
2014-12-01 06:10:30 +00:00
'qr_Q',
'qr_R',
'quad_form',
'quad_form_diag',
'quad_form_sym',
'rank',
'rayleigh_ccdf_log',
'rayleigh_cdf',
'rayleigh_cdf_log',
'rayleigh_log',
'rayleigh_rng',
'rep_array',
'rep_matrix',
'rep_row_vector',
'rep_vector',
2014-12-01 06:10:30 +00:00
'rising_factorial',
'round',
'row',
'rows',
2014-12-01 06:10:30 +00:00
'rows_dot_product',
'rows_dot_self',
'scaled_inv_chi_square_ccdf_log',
'scaled_inv_chi_square_cdf',
2014-12-01 06:10:30 +00:00
'scaled_inv_chi_square_cdf_log',
'scaled_inv_chi_square_log',
'scaled_inv_chi_square_rng',
'sd',
2014-12-01 06:10:30 +00:00
'segment',
'sin',
'singular_values',
'sinh',
'size',
2014-12-01 06:10:30 +00:00
'skew_normal_ccdf_log',
'skew_normal_cdf',
2014-12-01 06:10:30 +00:00
'skew_normal_cdf_log',
'skew_normal_log',
'skew_normal_rng',
'softmax',
2014-12-01 06:10:30 +00:00
'sort_asc',
'sort_desc',
'sort_indices_asc',
'sort_indices_desc',
'sqrt',
'sqrt2',
'square',
2014-12-01 06:10:30 +00:00
'squared_distance',
'step',
2014-12-01 06:10:30 +00:00
'student_t_ccdf_log',
'student_t_cdf',
2014-12-01 06:10:30 +00:00
'student_t_cdf_log',
'student_t_log',
'student_t_rng',
2014-12-01 06:10:30 +00:00
'sub_col',
'sub_row',
'sum',
2014-12-01 06:10:30 +00:00
'tail',
'tan',
'tanh',
'tcrossprod',
'tgamma',
2014-12-01 06:10:30 +00:00
'to_array_1d',
'to_array_2d',
'to_matrix',
'to_row_vector',
'to_vector',
'trace',
2014-12-01 06:10:30 +00:00
'trace_gen_quad_form',
'trace_quad_form',
'trigamma',
'trunc',
2014-12-01 06:10:30 +00:00
'uniform_ccdf_log',
'uniform_cdf',
'uniform_cdf_log',
'uniform_log',
'uniform_rng',
'variance',
2014-12-01 06:10:30 +00:00
'von_mises_log',
'von_mises_rng',
'weibull_ccdf_log',
'weibull_cdf',
2014-12-01 06:10:30 +00:00
'weibull_cdf_log',
'weibull_log',
'weibull_rng',
2016-06-13 14:41:17 +00:00
'wiener_log',
'wishart_log',
2016-06-13 14:41:17 +00:00
'wishart_rng'
2014-12-01 06:10:30 +00:00
)
2014-12-01 06:10:30 +00:00
DISTRIBUTIONS = (
'bernoulli',
'bernoulli_logit',
'beta',
'beta_binomial',
'binomial',
'binomial_logit',
'categorical',
2014-12-01 06:10:30 +00:00
'categorical_logit',
'cauchy',
'chi_square',
'dirichlet',
'double_exponential',
'exp_mod_normal',
'exponential',
2016-06-13 14:41:17 +00:00
'frechet',
'gamma',
2014-12-01 06:10:30 +00:00
'gaussian_dlm_obs',
'gumbel',
'hypergeometric',
'inv_chi_square',
'inv_gamma',
'inv_wishart',
'lkj_corr',
'lkj_corr_cholesky',
'logistic',
'lognormal',
2014-12-01 06:10:30 +00:00
'multi_gp',
2016-06-13 14:41:17 +00:00
'multi_gp_cholesky',
'multi_normal',
'multi_normal_cholesky',
'multi_normal_prec',
'multi_student_t',
'multinomial',
'neg_binomial',
2014-12-01 06:10:30 +00:00
'neg_binomial_2',
'neg_binomial_2_log',
'normal',
'ordered_logistic',
'pareto',
2016-06-13 14:41:17 +00:00
'pareto_type_2',
'poisson',
'poisson_log',
2014-12-01 06:10:30 +00:00
'rayleigh',
'scaled_inv_chi_square',
'skew_normal',
'student_t',
'uniform',
2014-12-01 06:10:30 +00:00
'von_mises',
'weibull',
2016-06-13 14:41:17 +00:00
'wiener',
'wishart'
2014-12-01 06:10:30 +00:00
)
2014-12-01 06:10:30 +00:00
RESERVED = (
'alignas',
'alignof',
'and',
'and_eq',
'asm',
'auto',
'bitand',
'bitor',
'bool',
'break',
'case',
'catch',
'char',
'char16_t',
'char32_t',
'class',
'compl',
'const',
'const_cast',
'constexpr',
'continue',
'decltype',
'default',
'delete',
'do',
'double',
'dynamic_cast',
'enum',
'explicit',
'export',
'extern',
'false',
'false',
'float',
'friend',
2014-12-01 06:10:30 +00:00
'fvar',
'goto',
'inline',
'int',
'long',
'mutable',
'namespace',
'new',
'noexcept',
'not',
'not_eq',
'nullptr',
'operator',
'or',
'or_eq',
'private',
'protected',
'public',
'register',
'reinterpret_cast',
'repeat',
'short',
'signed',
'sizeof',
'static',
'static_assert',
'static_cast',
'struct',
'switch',
'template',
'then',
'this',
'thread_local',
'throw',
'true',
'true',
'try',
'typedef',
'typeid',
'typename',
'union',
'unsigned',
'until',
'using',
2014-12-01 06:10:30 +00:00
'var',
'virtual',
'void',
'volatile',
'wchar_t',
'xor',
2016-06-13 14:41:17 +00:00
'xor_eq'
2014-12-01 06:10:30 +00:00
)
2016-06-13 14:41:17 +00:00