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