eric6/ThirdParty/Pygments/pygments/lexers/_stan_builtins.py

changeset 7547
21b0534faebc
parent 6942
2602857055c5
child 7701
25f42e208e08
equal deleted inserted replaced
7546:bf5f777260a6 7547:21b0534faebc
2 """ 2 """
3 pygments.lexers._stan_builtins 3 pygments.lexers._stan_builtins
4 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 4 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5 5
6 This file contains the names of functions for Stan used by 6 This file contains the names of functions for Stan used by
7 ``pygments.lexers.math.StanLexer. This is for Stan language version 2.8.0. 7 ``pygments.lexers.math.StanLexer. This is for Stan language version 2.17.0.
8 8
9 :copyright: Copyright 2006-2017 by the Pygments team, see AUTHORS. 9 :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS.
10 :license: BSD, see LICENSE for details. 10 :license: BSD, see LICENSE for details.
11 """ 11 """
12 12
13 KEYWORDS = ( 13 KEYWORDS = (
14 'break',
15 'continue',
14 'else', 16 'else',
15 'for', 17 'for',
16 'if', 18 'if',
17 'in', 19 'in',
18 'increment_log_prob',
19 'integrate_ode',
20 'lp__',
21 'print', 20 'print',
22 'reject', 21 'reject',
23 'return', 22 'return',
24 'while' 23 'while',
25 ) 24 )
26 25
27 TYPES = ( 26 TYPES = (
28 'cholesky_factor_corr', 27 'cholesky_factor_corr',
29 'cholesky_factor_cov', 28 'cholesky_factor_cov',
33 'matrix', 32 'matrix',
34 'ordered', 33 'ordered',
35 'positive_ordered', 34 'positive_ordered',
36 'real', 35 'real',
37 'row_vector', 36 'row_vector',
38 'row_vectormatrix',
39 'simplex', 37 'simplex',
40 'unit_vector', 38 'unit_vector',
41 'vector', 39 'vector',
42 'void') 40 'void',
41 )
43 42
44 FUNCTIONS = ( 43 FUNCTIONS = (
45 'Phi',
46 'Phi_approx',
47 'abs', 44 'abs',
48 'acos', 45 'acos',
49 'acosh', 46 'acosh',
47 'algebra_solver',
48 'append_array',
50 'append_col', 49 'append_col',
51 'append_row', 50 'append_row',
52 'asin', 51 'asin',
53 'asinh', 52 'asinh',
54 'atan', 53 'atan',
55 'atan2', 54 'atan2',
56 'atanh', 55 'atanh',
57 'bernoulli_ccdf_log',
58 'bernoulli_cdf', 56 'bernoulli_cdf',
59 'bernoulli_cdf_log', 57 'bernoulli_lccdf',
60 'bernoulli_log', 58 'bernoulli_lcdf',
61 'bernoulli_logit_log', 59 'bernoulli_logit_lpmf',
60 'bernoulli_logit_rng',
61 'bernoulli_lpmf',
62 'bernoulli_rng', 62 'bernoulli_rng',
63 'bessel_first_kind', 63 'bessel_first_kind',
64 'bessel_second_kind', 64 'bessel_second_kind',
65 'beta_binomial_ccdf_log',
66 'beta_binomial_cdf', 65 'beta_binomial_cdf',
67 'beta_binomial_cdf_log', 66 'beta_binomial_lccdf',
68 'beta_binomial_log', 67 'beta_binomial_lcdf',
68 'beta_binomial_lpmf',
69 'beta_binomial_rng', 69 'beta_binomial_rng',
70 'beta_ccdf_log',
71 'beta_cdf', 70 'beta_cdf',
72 'beta_cdf_log', 71 'beta_lccdf',
73 'beta_log', 72 'beta_lcdf',
73 'beta_lpdf',
74 'beta_rng', 74 'beta_rng',
75 'binary_log_loss', 75 'binary_log_loss',
76 'binomial_ccdf_log',
77 'binomial_cdf', 76 'binomial_cdf',
78 'binomial_cdf_log',
79 'binomial_coefficient_log', 77 'binomial_coefficient_log',
80 'binomial_log', 78 'binomial_lccdf',
81 'binomial_logit_log', 79 'binomial_lcdf',
80 'binomial_logit_lpmf',
81 'binomial_lpmf',
82 'binomial_rng', 82 'binomial_rng',
83 'block', 83 'block',
84 'categorical_log', 84 'categorical_logit_lpmf',
85 'categorical_logit_log', 85 'categorical_logit_rng',
86 'categorical_lpmf',
86 'categorical_rng', 87 'categorical_rng',
87 'cauchy_ccdf_log',
88 'cauchy_cdf', 88 'cauchy_cdf',
89 'cauchy_cdf_log', 89 'cauchy_lccdf',
90 'cauchy_log', 90 'cauchy_lcdf',
91 'cauchy_lpdf',
91 'cauchy_rng', 92 'cauchy_rng',
92 'cbrt', 93 'cbrt',
93 'ceil', 94 'ceil',
94 'chi_square_ccdf_log',
95 'chi_square_cdf', 95 'chi_square_cdf',
96 'chi_square_cdf_log', 96 'chi_square_lccdf',
97 'chi_square_log', 97 'chi_square_lcdf',
98 'chi_square_lpdf',
98 'chi_square_rng', 99 'chi_square_rng',
99 'cholesky_decompose', 100 'cholesky_decompose',
101 'choose',
100 'col', 102 'col',
101 'cols', 103 'cols',
102 'columns_dot_product', 104 'columns_dot_product',
103 'columns_dot_self', 105 'columns_dot_self',
104 'cos', 106 'cos',
105 'cosh', 107 'cosh',
108 'cov_exp_quad',
106 'crossprod', 109 'crossprod',
107 'csr_extract_u', 110 'csr_extract_u',
108 'csr_extract_v', 111 'csr_extract_v',
109 'csr_extract_w', 112 'csr_extract_w',
110 'csr_matrix_times_vector', 113 'csr_matrix_times_vector',
115 'diag_post_multiply', 118 'diag_post_multiply',
116 'diag_pre_multiply', 119 'diag_pre_multiply',
117 'diagonal', 120 'diagonal',
118 'digamma', 121 'digamma',
119 'dims', 122 'dims',
120 'dirichlet_log', 123 'dirichlet_lpdf',
121 'dirichlet_rng', 124 'dirichlet_rng',
122 'distance', 125 'distance',
123 'dot_product', 126 'dot_product',
124 'dot_self', 127 'dot_self',
125 'double_exponential_ccdf_log',
126 'double_exponential_cdf', 128 'double_exponential_cdf',
127 'double_exponential_cdf_log', 129 'double_exponential_lccdf',
128 'double_exponential_log', 130 'double_exponential_lcdf',
131 'double_exponential_lpdf',
129 'double_exponential_rng', 132 'double_exponential_rng',
130 'e', 133 'e',
131 'eigenvalues_sym', 134 'eigenvalues_sym',
132 'eigenvectors_sym', 135 'eigenvectors_sym',
133 'erf', 136 'erf',
134 'erfc', 137 'erfc',
135 'exp', 138 'exp',
136 'exp2', 139 'exp2',
137 'exp_mod_normal_ccdf_log',
138 'exp_mod_normal_cdf', 140 'exp_mod_normal_cdf',
139 'exp_mod_normal_cdf_log', 141 'exp_mod_normal_lccdf',
140 'exp_mod_normal_log', 142 'exp_mod_normal_lcdf',
143 'exp_mod_normal_lpdf',
141 'exp_mod_normal_rng', 144 'exp_mod_normal_rng',
142 'expm1', 145 'expm1',
143 'exponential_ccdf_log',
144 'exponential_cdf', 146 'exponential_cdf',
145 'exponential_cdf_log', 147 'exponential_lccdf',
146 'exponential_log', 148 'exponential_lcdf',
149 'exponential_lpdf',
147 'exponential_rng', 150 'exponential_rng',
148 'fabs', 151 'fabs',
149 'falling_factorial', 152 'falling_factorial',
150 'fdim', 153 'fdim',
151 'floor', 154 'floor',
152 'fma', 155 'fma',
153 'fmax', 156 'fmax',
154 'fmin', 157 'fmin',
155 'fmod', 158 'fmod',
156 'frechet_ccdf_log',
157 'frechet_cdf', 159 'frechet_cdf',
158 'frechet_cdf_log', 160 'frechet_lccdf',
159 'frechet_log', 161 'frechet_lcdf',
162 'frechet_lpdf',
160 'frechet_rng', 163 'frechet_rng',
161 'gamma_ccdf_log',
162 'gamma_cdf', 164 'gamma_cdf',
163 'gamma_cdf_log', 165 'gamma_lccdf',
164 'gamma_log', 166 'gamma_lcdf',
167 'gamma_lpdf',
165 'gamma_p', 168 'gamma_p',
166 'gamma_q', 169 'gamma_q',
167 'gamma_rng', 170 'gamma_rng',
168 'gaussian_dlm_obs_log', 171 'gaussian_dlm_obs_lpdf',
169 'get_lp', 172 'get_lp',
170 'gumbel_ccdf_log',
171 'gumbel_cdf', 173 'gumbel_cdf',
172 'gumbel_cdf_log', 174 'gumbel_lccdf',
173 'gumbel_log', 175 'gumbel_lcdf',
176 'gumbel_lpdf',
174 'gumbel_rng', 177 'gumbel_rng',
175 'head', 178 'head',
176 'hypergeometric_log', 179 'hypergeometric_lpmf',
177 'hypergeometric_rng', 180 'hypergeometric_rng',
178 'hypot', 181 'hypot',
179 'if_else', 182 'inc_beta',
180 'int_step', 183 'int_step',
184 'integrate_ode',
185 'integrate_ode_bdf',
186 'integrate_ode_rk45',
181 'inv', 187 'inv',
182 'inv_chi_square_ccdf_log',
183 'inv_chi_square_cdf', 188 'inv_chi_square_cdf',
184 'inv_chi_square_cdf_log', 189 'inv_chi_square_lccdf',
185 'inv_chi_square_log', 190 'inv_chi_square_lcdf',
191 'inv_chi_square_lpdf',
186 'inv_chi_square_rng', 192 'inv_chi_square_rng',
187 'inv_cloglog', 193 'inv_cloglog',
188 'inv_gamma_ccdf_log',
189 'inv_gamma_cdf', 194 'inv_gamma_cdf',
190 'inv_gamma_cdf_log', 195 'inv_gamma_lccdf',
191 'inv_gamma_log', 196 'inv_gamma_lcdf',
197 'inv_gamma_lpdf',
192 'inv_gamma_rng', 198 'inv_gamma_rng',
193 'inv_logit', 199 'inv_logit',
194 'inv_phi', 200 'inv_Phi',
195 'inv_sqrt', 201 'inv_sqrt',
196 'inv_square', 202 'inv_square',
197 'inv_wishart_log', 203 'inv_wishart_lpdf',
198 'inv_wishart_rng', 204 'inv_wishart_rng',
199 'inverse', 205 'inverse',
200 'inverse_spd', 206 'inverse_spd',
201 'is_inf', 207 'is_inf',
202 'is_nan', 208 'is_nan',
203 'lbeta', 209 'lbeta',
210 'lchoose',
204 'lgamma', 211 'lgamma',
205 'lkj_corr_cholesky_log', 212 'lkj_corr_cholesky_lpdf',
206 'lkj_corr_cholesky_rng', 213 'lkj_corr_cholesky_rng',
207 'lkj_corr_log', 214 'lkj_corr_lpdf',
208 'lkj_corr_rng', 215 'lkj_corr_rng',
209 'lmgamma', 216 'lmgamma',
217 'lmultiply',
210 'log', 218 'log',
211 'log10', 219 'log10',
212 'log1m', 220 'log1m',
213 'log1m_exp', 221 'log1m_exp',
214 'log1m_inv_logit', 222 'log1m_inv_logit',
221 'log_inv_logit', 229 'log_inv_logit',
222 'log_mix', 230 'log_mix',
223 'log_rising_factorial', 231 'log_rising_factorial',
224 'log_softmax', 232 'log_softmax',
225 'log_sum_exp', 233 'log_sum_exp',
226 'logistic_ccdf_log',
227 'logistic_cdf', 234 'logistic_cdf',
228 'logistic_cdf_log', 235 'logistic_lccdf',
229 'logistic_log', 236 'logistic_lcdf',
237 'logistic_lpdf',
230 'logistic_rng', 238 'logistic_rng',
231 'logit', 239 'logit',
232 'lognormal_ccdf_log',
233 'lognormal_cdf', 240 'lognormal_cdf',
234 'lognormal_cdf_log', 241 'lognormal_lccdf',
235 'lognormal_log', 242 'lognormal_lcdf',
243 'lognormal_lpdf',
236 'lognormal_rng', 244 'lognormal_rng',
237 'machine_precision', 245 'machine_precision',
246 'matrix_exp',
238 'max', 247 'max',
248 'mdivide_left_spd',
239 'mdivide_left_tri_low', 249 'mdivide_left_tri_low',
250 'mdivide_right_spd',
240 'mdivide_right_tri_low', 251 'mdivide_right_tri_low',
241 'mean', 252 'mean',
242 'min', 253 'min',
243 'modified_bessel_first_kind', 254 'modified_bessel_first_kind',
244 'modified_bessel_second_kind', 255 'modified_bessel_second_kind',
245 'multi_gp_cholesky_log', 256 'multi_gp_cholesky_lpdf',
246 'multi_gp_log', 257 'multi_gp_lpdf',
247 'multi_normal_cholesky_log', 258 'multi_normal_cholesky_lpdf',
248 'multi_normal_cholesky_rng', 259 'multi_normal_cholesky_rng',
249 'multi_normal_log', 260 'multi_normal_lpdf',
250 'multi_normal_prec_log', 261 'multi_normal_prec_lpdf',
251 'multi_normal_rng', 262 'multi_normal_rng',
252 'multi_student_t_log', 263 'multi_student_t_lpdf',
253 'multi_student_t_rng', 264 'multi_student_t_rng',
254 'multinomial_log', 265 'multinomial_lpmf',
255 'multinomial_rng', 266 'multinomial_rng',
256 'multiply_log', 267 'multiply_log',
257 'multiply_lower_tri_self_transpose', 268 'multiply_lower_tri_self_transpose',
258 'neg_binomial_2_ccdf_log',
259 'neg_binomial_2_cdf', 269 'neg_binomial_2_cdf',
260 'neg_binomial_2_cdf_log', 270 'neg_binomial_2_lccdf',
261 'neg_binomial_2_log', 271 'neg_binomial_2_lcdf',
262 'neg_binomial_2_log_log', 272 'neg_binomial_2_log_lpmf',
263 'neg_binomial_2_log_rng', 273 'neg_binomial_2_log_rng',
274 'neg_binomial_2_lpmf',
264 'neg_binomial_2_rng', 275 'neg_binomial_2_rng',
265 'neg_binomial_ccdf_log',
266 'neg_binomial_cdf', 276 'neg_binomial_cdf',
267 'neg_binomial_cdf_log', 277 'neg_binomial_lccdf',
268 'neg_binomial_log', 278 'neg_binomial_lcdf',
279 'neg_binomial_lpmf',
269 'neg_binomial_rng', 280 'neg_binomial_rng',
270 'negative_infinity', 281 'negative_infinity',
271 'normal_ccdf_log',
272 'normal_cdf', 282 'normal_cdf',
273 'normal_cdf_log', 283 'normal_lccdf',
274 'normal_log', 284 'normal_lcdf',
285 'normal_lpdf',
275 'normal_rng', 286 'normal_rng',
276 'not_a_number', 287 'not_a_number',
277 'num_elements', 288 'num_elements',
278 'ordered_logistic_log', 289 'ordered_logistic_lpmf',
279 'ordered_logistic_rng', 290 'ordered_logistic_rng',
280 'owens_t', 291 'owens_t',
281 'pareto_ccdf_log',
282 'pareto_cdf', 292 'pareto_cdf',
283 'pareto_cdf_log', 293 'pareto_lccdf',
284 'pareto_log', 294 'pareto_lcdf',
295 'pareto_lpdf',
285 'pareto_rng', 296 'pareto_rng',
286 'pareto_type_2_ccdf_log',
287 'pareto_type_2_cdf', 297 'pareto_type_2_cdf',
288 'pareto_type_2_cdf_log', 298 'pareto_type_2_lccdf',
289 'pareto_type_2_log', 299 'pareto_type_2_lcdf',
300 'pareto_type_2_lpdf',
290 'pareto_type_2_rng', 301 'pareto_type_2_rng',
302 'Phi',
303 'Phi_approx',
291 'pi', 304 'pi',
292 'poisson_ccdf_log',
293 'poisson_cdf', 305 'poisson_cdf',
294 'poisson_cdf_log', 306 'poisson_lccdf',
295 'poisson_log', 307 'poisson_lcdf',
296 'poisson_log_log', 308 'poisson_log_lpmf',
297 'poisson_log_rng', 309 'poisson_log_rng',
310 'poisson_lpmf',
298 'poisson_rng', 311 'poisson_rng',
299 'positive_infinity', 312 'positive_infinity',
300 'pow', 313 'pow',
314 'print',
301 'prod', 315 'prod',
302 'qr_Q', 316 'qr_Q',
303 'qr_R', 317 'qr_R',
304 'quad_form', 318 'quad_form',
305 'quad_form_diag', 319 'quad_form_diag',
306 'quad_form_sym', 320 'quad_form_sym',
307 'rank', 321 'rank',
308 'rayleigh_ccdf_log',
309 'rayleigh_cdf', 322 'rayleigh_cdf',
310 'rayleigh_cdf_log', 323 'rayleigh_lccdf',
311 'rayleigh_log', 324 'rayleigh_lcdf',
325 'rayleigh_lpdf',
312 'rayleigh_rng', 326 'rayleigh_rng',
327 'reject',
313 'rep_array', 328 'rep_array',
314 'rep_matrix', 329 'rep_matrix',
315 'rep_row_vector', 330 'rep_row_vector',
316 'rep_vector', 331 'rep_vector',
317 'rising_factorial', 332 'rising_factorial',
318 'round', 333 'round',
319 'row', 334 'row',
320 'rows', 335 'rows',
321 'rows_dot_product', 336 'rows_dot_product',
322 'rows_dot_self', 337 'rows_dot_self',
323 'scaled_inv_chi_square_ccdf_log',
324 'scaled_inv_chi_square_cdf', 338 'scaled_inv_chi_square_cdf',
325 'scaled_inv_chi_square_cdf_log', 339 'scaled_inv_chi_square_lccdf',
326 'scaled_inv_chi_square_log', 340 'scaled_inv_chi_square_lcdf',
341 'scaled_inv_chi_square_lpdf',
327 'scaled_inv_chi_square_rng', 342 'scaled_inv_chi_square_rng',
328 'sd', 343 'sd',
329 'segment', 344 'segment',
330 'sin', 345 'sin',
331 'singular_values', 346 'singular_values',
332 'sinh', 347 'sinh',
333 'size', 348 'size',
334 'skew_normal_ccdf_log',
335 'skew_normal_cdf', 349 'skew_normal_cdf',
336 'skew_normal_cdf_log', 350 'skew_normal_lccdf',
337 'skew_normal_log', 351 'skew_normal_lcdf',
352 'skew_normal_lpdf',
338 'skew_normal_rng', 353 'skew_normal_rng',
339 'softmax', 354 'softmax',
340 'sort_asc', 355 'sort_asc',
341 'sort_desc', 356 'sort_desc',
342 'sort_indices_asc', 357 'sort_indices_asc',
344 'sqrt', 359 'sqrt',
345 'sqrt2', 360 'sqrt2',
346 'square', 361 'square',
347 'squared_distance', 362 'squared_distance',
348 'step', 363 'step',
349 'student_t_ccdf_log',
350 'student_t_cdf', 364 'student_t_cdf',
351 'student_t_cdf_log', 365 'student_t_lccdf',
352 'student_t_log', 366 'student_t_lcdf',
367 'student_t_lpdf',
353 'student_t_rng', 368 'student_t_rng',
354 'sub_col', 369 'sub_col',
355 'sub_row', 370 'sub_row',
356 'sum', 371 'sum',
357 'tail', 372 'tail',
358 'tan', 373 'tan',
359 'tanh', 374 'tanh',
375 'target',
360 'tcrossprod', 376 'tcrossprod',
361 'tgamma', 377 'tgamma',
362 'to_array_1d', 378 'to_array_1d',
363 'to_array_2d', 379 'to_array_2d',
364 'to_matrix', 380 'to_matrix',
367 'trace', 383 'trace',
368 'trace_gen_quad_form', 384 'trace_gen_quad_form',
369 'trace_quad_form', 385 'trace_quad_form',
370 'trigamma', 386 'trigamma',
371 'trunc', 387 'trunc',
372 'uniform_ccdf_log',
373 'uniform_cdf', 388 'uniform_cdf',
374 'uniform_cdf_log', 389 'uniform_lccdf',
375 'uniform_log', 390 'uniform_lcdf',
391 'uniform_lpdf',
376 'uniform_rng', 392 'uniform_rng',
377 'variance', 393 'variance',
378 'von_mises_log', 394 'von_mises_lpdf',
379 'von_mises_rng', 395 'von_mises_rng',
380 'weibull_ccdf_log',
381 'weibull_cdf', 396 'weibull_cdf',
382 'weibull_cdf_log', 397 'weibull_lccdf',
383 'weibull_log', 398 'weibull_lcdf',
399 'weibull_lpdf',
384 'weibull_rng', 400 'weibull_rng',
385 'wiener_log', 401 'wiener_lpdf',
386 'wishart_log', 402 'wishart_lpdf',
387 'wishart_rng' 403 'wishart_rng',
388 ) 404 )
389 405
390 DISTRIBUTIONS = ( 406 DISTRIBUTIONS = (
391 'bernoulli', 407 'bernoulli',
392 'bernoulli_logit', 408 'bernoulli_logit',
436 'student_t', 452 'student_t',
437 'uniform', 453 'uniform',
438 'von_mises', 454 'von_mises',
439 'weibull', 455 'weibull',
440 'wiener', 456 'wiener',
441 'wishart' 457 'wishart',
442 ) 458 )
443 459
444 RESERVED = ( 460 RESERVED = (
445 'alignas', 461 'alignas',
446 'alignof', 462 'alignof',
467 'default', 483 'default',
468 'delete', 484 'delete',
469 'do', 485 'do',
470 'double', 486 'double',
471 'dynamic_cast', 487 'dynamic_cast',
488 'else',
472 'enum', 489 'enum',
473 'explicit', 490 'explicit',
474 'export', 491 'export',
475 'extern', 492 'extern',
476 'false', 493 'false',
477 'false',
478 'float', 494 'float',
495 'for',
479 'friend', 496 'friend',
480 'fvar', 497 'fvar',
481 'goto', 498 'goto',
499 'if',
500 'in',
482 'inline', 501 'inline',
483 'int', 502 'int',
484 'long', 503 'long',
504 'lp__',
485 'mutable', 505 'mutable',
486 'namespace', 506 'namespace',
487 'new', 507 'new',
488 'noexcept', 508 'noexcept',
489 'not', 509 'not',
496 'protected', 516 'protected',
497 'public', 517 'public',
498 'register', 518 'register',
499 'reinterpret_cast', 519 'reinterpret_cast',
500 'repeat', 520 'repeat',
521 'return',
501 'short', 522 'short',
502 'signed', 523 'signed',
503 'sizeof', 524 'sizeof',
525 'STAN_MAJOR',
526 'STAN_MATH_MAJOR',
527 'STAN_MATH_MINOR',
528 'STAN_MATH_PATCH',
529 'STAN_MINOR',
530 'STAN_PATCH',
504 'static', 531 'static',
505 'static_assert', 532 'static_assert',
506 'static_cast', 533 'static_cast',
507 'struct', 534 'struct',
508 'switch', 535 'switch',
509 'template', 536 'template',
510 'then', 537 'then',
511 'this', 538 'this',
512 'thread_local', 539 'thread_local',
513 'throw', 540 'throw',
514 'true',
515 'true', 541 'true',
516 'try', 542 'try',
517 'typedef', 543 'typedef',
518 'typeid', 544 'typeid',
519 'typename', 545 'typename',
524 'var', 550 'var',
525 'virtual', 551 'virtual',
526 'void', 552 'void',
527 'volatile', 553 'volatile',
528 'wchar_t', 554 'wchar_t',
555 'while',
529 'xor', 556 'xor',
530 'xor_eq' 557 'xor_eq',
531 ) 558 )
532

eric ide

mercurial