Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
_stan_builtins.py649 linesDownload Raw Back to lexers
1"""2    pygments.lexers._stan_builtins3    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~4 5    This file contains the names of functions for Stan used by6    ``pygments.lexers.math.StanLexer. This is for Stan language version 2.29.0.7 8    :copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS.9    :license: BSD, see LICENSE for details.10"""11 12KEYWORDS = (13    'break',14    'continue',15    'else',16    'for',17    'if',18    'in',19    'print',20    'reject',21    'return',22    'while',23)24 25TYPES = (26    'cholesky_factor_corr',27    'cholesky_factor_cov',28    'corr_matrix',29    'cov_matrix',30    'int',31    'matrix',32    'ordered',33    'positive_ordered',34    'real',35    'row_vector',36    'simplex',37    'unit_vector',38    'vector',39    'void',40    'array',41    'complex'42)43 44FUNCTIONS = (45    'abs',46    'acos',47    'acosh',48    'add_diag',49    'algebra_solver',50    'algebra_solver_newton',51    'append_array',52    'append_col',53    'append_row',54    'arg',55    'asin',56    'asinh',57    'atan',58    'atan2',59    'atanh',60    'bernoulli_cdf',61    'bernoulli_lccdf',62    'bernoulli_lcdf',63    'bernoulli_logit_glm_lpmf',64    'bernoulli_logit_glm_lupmf',65    'bernoulli_logit_glm_rng',66    'bernoulli_logit_lpmf',67    'bernoulli_logit_lupmf',68    'bernoulli_logit_rng',69    'bernoulli_lpmf',70    'bernoulli_lupmf',71    'bernoulli_rng',72    'bessel_first_kind',73    'bessel_second_kind',74    'beta',75    'beta_binomial_cdf',76    'beta_binomial_lccdf',77    'beta_binomial_lcdf',78    'beta_binomial_lpmf',79    'beta_binomial_lupmf',80    'beta_binomial_rng',81    'beta_cdf',82    'beta_lccdf',83    'beta_lcdf',84    'beta_lpdf',85    'beta_lupdf',86    'beta_proportion_lccdf',87    'beta_proportion_lcdf',88    'beta_proportion_rng',89    'beta_rng',90    'binary_log_loss',91    'binomial_cdf',92    'binomial_coefficient_log',93    'binomial_lccdf',94    'binomial_lcdf',95    'binomial_logit_lpmf',96    'binomial_logit_lupmf',97    'binomial_lpmf',98    'binomial_lupmf',99    'binomial_rng',100    'block',101    'categorical_logit_glm_lpmf',102    'categorical_logit_glm_lupmf',103    'categorical_logit_lpmf',104    'categorical_logit_lupmf',105    'categorical_logit_rng',106    'categorical_lpmf',107    'categorical_lupmf',108    'categorical_rng',109    'cauchy_cdf',110    'cauchy_lccdf',111    'cauchy_lcdf',112    'cauchy_lpdf',113    'cauchy_lupdf',114    'cauchy_rng',115    'cbrt',116    'ceil',117    'chi_square_cdf',118    'chi_square_lccdf',119    'chi_square_lcdf',120    'chi_square_lpdf',121    'chi_square_lupdf',122    'chi_square_rng',123    'chol2inv',124    'cholesky_decompose',125    'choose',126    'col',127    'cols',128    'columns_dot_product',129    'columns_dot_self',130    'conj',131    'cos',132    'cosh',133    'cov_exp_quad',134    'crossprod',135    'csr_extract_u',136    'csr_extract_v',137    'csr_extract_w',138    'csr_matrix_times_vector',139    'csr_to_dense_matrix',140    'cumulative_sum',141    'dae',142    'dae_tol',143    'determinant',144    'diag_matrix',145    'diag_post_multiply',146    'diag_pre_multiply',147    'diagonal',148    'digamma',149    'dims',150    'dirichlet_lpdf',151    'dirichlet_lupdf',152    'dirichlet_rng',153    'discrete_range_cdf',154    'discrete_range_lccdf',155    'discrete_range_lcdf',156    'discrete_range_lpmf',157    'discrete_range_lupmf',158    'discrete_range_rng',159    'distance',160    'dot_product',161    'dot_self',162    'double_exponential_cdf',163    'double_exponential_lccdf',164    'double_exponential_lcdf',165    'double_exponential_lpdf',166    'double_exponential_lupdf',167    'double_exponential_rng',168    'e',169    'eigenvalues_sym',170    'eigenvectors_sym',171    'erf',172    'erfc',173    'exp',174    'exp2',175    'exp_mod_normal_cdf',176    'exp_mod_normal_lccdf',177    'exp_mod_normal_lcdf',178    'exp_mod_normal_lpdf',179    'exp_mod_normal_lupdf',180    'exp_mod_normal_rng',181    'expm1',182    'exponential_cdf',183    'exponential_lccdf',184    'exponential_lcdf',185    'exponential_lpdf',186    'exponential_lupdf',187    'exponential_rng',188    'fabs',189    'falling_factorial',190    'fdim',191    'floor',192    'fma',193    'fmax',194    'fmin',195    'fmod',196    'frechet_cdf',197    'frechet_lccdf',198    'frechet_lcdf',199    'frechet_lpdf',200    'frechet_lupdf',201    'frechet_rng',202    'gamma_cdf',203    'gamma_lccdf',204    'gamma_lcdf',205    'gamma_lpdf',206    'gamma_lupdf',207    'gamma_p',208    'gamma_q',209    'gamma_rng',210    'gaussian_dlm_obs_lpdf',211    'gaussian_dlm_obs_lupdf',212    'generalized_inverse',213    'get_imag',214    'get_lp',215    'get_real',216    'gumbel_cdf',217    'gumbel_lccdf',218    'gumbel_lcdf',219    'gumbel_lpdf',220    'gumbel_lupdf',221    'gumbel_rng',222    'head',223    'hmm_hidden_state_prob',224    'hmm_latent_rng',225    'hmm_marginal',226    'hypergeometric_lpmf',227    'hypergeometric_lupmf',228    'hypergeometric_rng',229    'hypot',230    'identity_matrix',231    'inc_beta',232    'int_step',233    'integrate_1d',234    'integrate_ode',235    'integrate_ode_adams',236    'integrate_ode_bdf',237    'integrate_ode_rk45',238    'inv',239    'inv_chi_square_cdf',240    'inv_chi_square_lccdf',241    'inv_chi_square_lcdf',242    'inv_chi_square_lpdf',243    'inv_chi_square_lupdf',244    'inv_chi_square_rng',245    'inv_cloglog',246    'inv_erfc',247    'inv_gamma_cdf',248    'inv_gamma_lccdf',249    'inv_gamma_lcdf',250    'inv_gamma_lpdf',251    'inv_gamma_lupdf',252    'inv_gamma_rng',253    'inv_logit',254    'inv_Phi',255    'inv_sqrt',256    'inv_square',257    'inv_wishart_lpdf',258    'inv_wishart_lupdf',259    'inv_wishart_rng',260    'inverse',261    'inverse_spd',262    'is_inf',263    'is_nan',264    'lambert_w0',265    'lambert_wm1',266    'lbeta',267    'lchoose',268    'ldexp',269    'lgamma',270    'linspaced_array',271    'linspaced_int_array',272    'linspaced_row_vector',273    'linspaced_vector',274    'lkj_corr_cholesky_lpdf',275    'lkj_corr_cholesky_lupdf',276    'lkj_corr_cholesky_rng',277    'lkj_corr_lpdf',278    'lkj_corr_lupdf',279    'lkj_corr_rng',280    'lmgamma',281    'lmultiply',282    'log',283    'log10',284    'log1m',285    'log1m_exp',286    'log1m_inv_logit',287    'log1p',288    'log1p_exp',289    'log2',290    'log_determinant',291    'log_diff_exp',292    'log_falling_factorial',293    'log_inv_logit',294    'log_inv_logit_diff',295    'log_mix',296    'log_modified_bessel_first_kind',297    'log_rising_factorial',298    'log_softmax',299    'log_sum_exp',300    'logistic_cdf',301    'logistic_lccdf',302    'logistic_lcdf',303    'logistic_lpdf',304    'logistic_lupdf',305    'logistic_rng',306    'logit',307    'loglogistic_cdf',308    'loglogistic_lpdf',309    'loglogistic_rng',310    'lognormal_cdf',311    'lognormal_lccdf',312    'lognormal_lcdf',313    'lognormal_lpdf',314    'lognormal_lupdf',315    'lognormal_rng',316    'machine_precision',317    'map_rect',318    'matrix_exp',319    'matrix_exp_multiply',320    'matrix_power',321    'max',322    'mdivide_left_spd',323    'mdivide_left_tri_low',324    'mdivide_right_spd',325    'mdivide_right_tri_low',326    'mean',327    'min',328    'modified_bessel_first_kind',329    'modified_bessel_second_kind',330    'multi_gp_cholesky_lpdf',331    'multi_gp_cholesky_lupdf',332    'multi_gp_lpdf',333    'multi_gp_lupdf',334    'multi_normal_cholesky_lpdf',335    'multi_normal_cholesky_lupdf',336    'multi_normal_cholesky_rng',337    'multi_normal_lpdf',338    'multi_normal_lupdf',339    'multi_normal_prec_lpdf',340    'multi_normal_prec_lupdf',341    'multi_normal_rng',342    'multi_student_t_lpdf',343    'multi_student_t_lupdf',344    'multi_student_t_rng',345    'multinomial_logit_lpmf',346    'multinomial_logit_lupmf',347    'multinomial_logit_rng',348    'multinomial_lpmf',349    'multinomial_lupmf',350    'multinomial_rng',351    'multiply_log',352    'multiply_lower_tri_self_transpose',353    'neg_binomial_2_cdf',354    'neg_binomial_2_lccdf',355    'neg_binomial_2_lcdf',356    'neg_binomial_2_log_glm_lpmf',357    'neg_binomial_2_log_glm_lupmf',358    'neg_binomial_2_log_lpmf',359    'neg_binomial_2_log_lupmf',360    'neg_binomial_2_log_rng',361    'neg_binomial_2_lpmf',362    'neg_binomial_2_lupmf',363    'neg_binomial_2_rng',364    'neg_binomial_cdf',365    'neg_binomial_lccdf',366    'neg_binomial_lcdf',367    'neg_binomial_lpmf',368    'neg_binomial_lupmf',369    'neg_binomial_rng',370    'negative_infinity',371    'norm',372    'normal_cdf',373    'normal_id_glm_lpdf',374    'normal_id_glm_lupdf',375    'normal_lccdf',376    'normal_lcdf',377    'normal_lpdf',378    'normal_lupdf',379    'normal_rng',380    'not_a_number',381    'num_elements',382    'ode_adams',383    'ode_adams_tol',384    'ode_adjoint_tol_ctl',385    'ode_bdf',386    'ode_bdf_tol',387    'ode_ckrk',388    'ode_ckrk_tol',389    'ode_rk45',390    'ode_rk45_tol',391    'one_hot_array',392    'one_hot_int_array',393    'one_hot_row_vector',394    'one_hot_vector',395    'ones_array',396    'ones_int_array',397    'ones_row_vector',398    'ones_vector',399    'ordered_logistic_glm_lpmf',400    'ordered_logistic_glm_lupmf',401    'ordered_logistic_lpmf',402    'ordered_logistic_lupmf',403    'ordered_logistic_rng',404    'ordered_probit_lpmf',405    'ordered_probit_lupmf',406    'ordered_probit_rng',407    'owens_t',408    'pareto_cdf',409    'pareto_lccdf',410    'pareto_lcdf',411    'pareto_lpdf',412    'pareto_lupdf',413    'pareto_rng',414    'pareto_type_2_cdf',415    'pareto_type_2_lccdf',416    'pareto_type_2_lcdf',417    'pareto_type_2_lpdf',418    'pareto_type_2_lupdf',419    'pareto_type_2_rng',420    'Phi',421    'Phi_approx',422    'pi',423    'poisson_cdf',424    'poisson_lccdf',425    'poisson_lcdf',426    'poisson_log_glm_lpmf',427    'poisson_log_glm_lupmf',428    'poisson_log_lpmf',429    'poisson_log_lupmf',430    'poisson_log_rng',431    'poisson_lpmf',432    'poisson_lupmf',433    'poisson_rng',434    'polar',435    'positive_infinity',436    'pow',437    'print',438    'prod',439    'proj',440    'qr_Q',441    'qr_R',442    'qr_thin_Q',443    'qr_thin_R',444    'quad_form',445    'quad_form_diag',446    'quad_form_sym',447    'quantile',448    'rank',449    'rayleigh_cdf',450    'rayleigh_lccdf',451    'rayleigh_lcdf',452    'rayleigh_lpdf',453    'rayleigh_lupdf',454    'rayleigh_rng',455    'reduce_sum',456    'reject',457    'rep_array',458    'rep_matrix',459    'rep_row_vector',460    'rep_vector',461    'reverse',462    'rising_factorial',463    'round',464    'row',465    'rows',466    'rows_dot_product',467    'rows_dot_self',468    'scale_matrix_exp_multiply',469    'scaled_inv_chi_square_cdf',470    'scaled_inv_chi_square_lccdf',471    'scaled_inv_chi_square_lcdf',472    'scaled_inv_chi_square_lpdf',473    'scaled_inv_chi_square_lupdf',474    'scaled_inv_chi_square_rng',475    'sd',476    'segment',477    'sin',478    'singular_values',479    'sinh',480    'size',481    'skew_double_exponential_cdf',482    'skew_double_exponential_lccdf',483    'skew_double_exponential_lcdf',484    'skew_double_exponential_lpdf',485    'skew_double_exponential_lupdf',486    'skew_double_exponential_rng',487    'skew_normal_cdf',488    'skew_normal_lccdf',489    'skew_normal_lcdf',490    'skew_normal_lpdf',491    'skew_normal_lupdf',492    'skew_normal_rng',493    'softmax',494    'sort_asc',495    'sort_desc',496    'sort_indices_asc',497    'sort_indices_desc',498    'sqrt',499    'sqrt2',500    'square',501    'squared_distance',502    'std_normal_cdf',503    'std_normal_lccdf',504    'std_normal_lcdf',505    'std_normal_lpdf',506    'std_normal_lupdf',507    'std_normal_rng',508    'step',509    'student_t_cdf',510    'student_t_lccdf',511    'student_t_lcdf',512    'student_t_lpdf',513    'student_t_lupdf',514    'student_t_rng',515    'sub_col',516    'sub_row',517    'sum',518    'svd_U',519    'svd_V',520    'symmetrize_from_lower_tri',521    'tail',522    'tan',523    'tanh',524    'target',525    'tcrossprod',526    'tgamma',527    'to_array_1d',528    'to_array_2d',529    'to_complex',530    'to_matrix',531    'to_row_vector',532    'to_vector',533    'trace',534    'trace_gen_quad_form',535    'trace_quad_form',536    'trigamma',537    'trunc',538    'uniform_cdf',539    'uniform_lccdf',540    'uniform_lcdf',541    'uniform_lpdf',542    'uniform_lupdf',543    'uniform_rng',544    'uniform_simplex',545    'variance',546    'von_mises_cdf',547    'von_mises_lccdf',548    'von_mises_lcdf',549    'von_mises_lpdf',550    'von_mises_lupdf',551    'von_mises_rng',552    'weibull_cdf',553    'weibull_lccdf',554    'weibull_lcdf',555    'weibull_lpdf',556    'weibull_lupdf',557    'weibull_rng',558    'wiener_lpdf',559    'wiener_lupdf',560    'wishart_lpdf',561    'wishart_lupdf',562    'wishart_rng',563    'zeros_array',564    'zeros_int_array',565    'zeros_row_vector'566)567 568DISTRIBUTIONS = (569    'bernoulli',570    'bernoulli_logit',571    'bernoulli_logit_glm',572    'beta',573    'beta_binomial',574    'binomial',575    'binomial_logit',576    'categorical',577    'categorical_logit',578    'categorical_logit_glm',579    'cauchy',580    'chi_square',581    'dirichlet',582    'discrete_range',583    'double_exponential',584    'exp_mod_normal',585    'exponential',586    'frechet',587    'gamma',588    'gaussian_dlm_obs',589    'gumbel',590    'hypergeometric',591    'inv_chi_square',592    'inv_gamma',593    'inv_wishart',594    'lkj_corr',595    'lkj_corr_cholesky',596    'logistic',597    'loglogistic',598    'lognormal',599    'multi_gp',600    'multi_gp_cholesky',601    'multi_normal',602    'multi_normal_cholesky',603    'multi_normal_prec',604    'multi_student_t',605    'multinomial',606    'multinomial_logit',607    'neg_binomial',608    'neg_binomial_2',609    'neg_binomial_2_log',610    'neg_binomial_2_log_glm',611    'normal',612    'normal_id_glm',613    'ordered_logistic',614    'ordered_logistic_glm',615    'ordered_probit',616    'pareto',617    'pareto_type_2',618    'poisson',619    'poisson_log',620    'poisson_log_glm',621    'rayleigh',622    'scaled_inv_chi_square',623    'skew_double_exponential',624    'skew_normal',625    'std_normal',626    'student_t',627    'uniform',628    'von_mises',629    'weibull',630    'wiener',631    'wishart',632)633 634RESERVED = (635    'repeat',636    'until',637    'then',638    'true',639    'false',640    'var',641    'struct',642    'typedef',643    'export',644    'auto',645    'extern',646    'var',647    'static',648)649 
codekingpro/portable-devtools · Team Ai