Stan Math Library
2.11.0
reverse mode automatic differentiation
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
stan
math
prim
mat.hpp
Go to the documentation of this file.
1
#ifndef STAN_MATH_PRIM_MAT_HPP
2
#define STAN_MATH_PRIM_MAT_HPP
3
4
#include <
stan/math/prim/arr/meta/get.hpp
>
5
#include <
stan/math/prim/arr/meta/index_type.hpp
>
6
#include <
stan/math/prim/arr/meta/is_vector.hpp
>
7
#include <
stan/math/prim/arr/meta/length.hpp
>
8
9
#include <
stan/math/prim/mat/meta/container_view.hpp
>
10
#include <
stan/math/prim/mat/meta/get.hpp
>
11
#include <
stan/math/prim/mat/meta/index_type.hpp
>
12
#include <
stan/math/prim/mat/meta/is_constant_struct.hpp
>
13
#include <
stan/math/prim/mat/meta/is_vector.hpp
>
14
#include <
stan/math/prim/mat/meta/is_vector_like.hpp
>
15
#include <
stan/math/prim/mat/meta/length.hpp
>
16
#include <
stan/math/prim/mat/meta/length_mvt.hpp
>
17
#include <
stan/math/prim/mat/meta/seq_view.hpp
>
18
#include <
stan/math/prim/mat/meta/scalar_type.hpp
>
19
#include <
stan/math/prim/mat/meta/value_type.hpp
>
20
#include <
stan/math/prim/mat/meta/VectorView.hpp
>
21
#include <
stan/math/prim/mat/meta/VectorViewMvt.hpp
>
22
23
#include <
stan/math/prim/mat/err/check_cholesky_factor.hpp
>
24
#include <
stan/math/prim/mat/err/check_cholesky_factor_corr.hpp
>
25
#include <
stan/math/prim/mat/err/check_column_index.hpp
>
26
#include <
stan/math/prim/mat/err/check_corr_matrix.hpp
>
27
#include <
stan/math/prim/mat/err/check_cov_matrix.hpp
>
28
#include <
stan/math/prim/mat/err/check_ldlt_factor.hpp
>
29
#include <
stan/math/prim/mat/err/check_lower_triangular.hpp
>
30
#include <
stan/math/prim/mat/err/check_matching_dims.hpp
>
31
#include <
stan/math/prim/mat/err/check_matching_sizes.hpp
>
32
#include <
stan/math/prim/mat/err/check_multiplicable.hpp
>
33
#include <
stan/math/prim/mat/err/check_ordered.hpp
>
34
#include <
stan/math/prim/mat/err/check_pos_definite.hpp
>
35
#include <
stan/math/prim/mat/err/check_pos_semidefinite.hpp
>
36
#include <
stan/math/prim/mat/err/check_positive_ordered.hpp
>
37
#include <
stan/math/prim/mat/err/check_range.hpp
>
38
#include <
stan/math/prim/mat/err/check_row_index.hpp
>
39
#include <
stan/math/prim/mat/err/check_simplex.hpp
>
40
#include <
stan/math/prim/mat/err/check_spsd_matrix.hpp
>
41
#include <
stan/math/prim/mat/err/check_square.hpp
>
42
#include <
stan/math/prim/mat/err/check_std_vector_index.hpp
>
43
#include <
stan/math/prim/mat/err/check_symmetric.hpp
>
44
#include <
stan/math/prim/mat/err/check_unit_vector.hpp
>
45
#include <
stan/math/prim/mat/err/check_vector.hpp
>
46
#include <
stan/math/prim/mat/err/constraint_tolerance.hpp
>
47
#include <
stan/math/prim/mat/err/validate_non_negative_index.hpp
>
48
49
#include <
stan/math/prim/mat/fun/accumulator.hpp
>
50
#include <
stan/math/prim/mat/fun/add.hpp
>
51
#include <
stan/math/prim/mat/fun/append_col.hpp
>
52
#include <
stan/math/prim/mat/fun/append_row.hpp
>
53
#include <
stan/math/prim/mat/fun/array_builder.hpp
>
54
#include <
stan/math/prim/mat/fun/assign.hpp
>
55
#include <
stan/math/prim/mat/fun/autocorrelation.hpp
>
56
#include <
stan/math/prim/mat/fun/autocovariance.hpp
>
57
#include <
stan/math/prim/mat/fun/block.hpp
>
58
#include <
stan/math/prim/mat/fun/cholesky_corr_constrain.hpp
>
59
#include <
stan/math/prim/mat/fun/cholesky_corr_free.hpp
>
60
#include <
stan/math/prim/mat/fun/cholesky_decompose.hpp
>
61
#include <
stan/math/prim/mat/fun/cholesky_factor_constrain.hpp
>
62
#include <
stan/math/prim/mat/fun/cholesky_factor_free.hpp
>
63
#include <
stan/math/prim/mat/fun/col.hpp
>
64
#include <
stan/math/prim/mat/fun/cols.hpp
>
65
#include <
stan/math/prim/mat/fun/columns_dot_product.hpp
>
66
#include <
stan/math/prim/mat/fun/columns_dot_self.hpp
>
67
#include <
stan/math/prim/mat/fun/common_type.hpp
>
68
#include <
stan/math/prim/mat/fun/corr_matrix_constrain.hpp
>
69
#include <
stan/math/prim/mat/fun/corr_matrix_free.hpp
>
70
#include <
stan/math/prim/mat/fun/cov_matrix_constrain.hpp
>
71
#include <
stan/math/prim/mat/fun/cov_matrix_constrain_lkj.hpp
>
72
#include <
stan/math/prim/mat/fun/cov_matrix_free.hpp
>
73
#include <
stan/math/prim/mat/fun/cov_matrix_free_lkj.hpp
>
74
#include <
stan/math/prim/mat/fun/cov_exp_quad.hpp
>
75
#include <
stan/math/prim/mat/fun/crossprod.hpp
>
76
#include <
stan/math/prim/mat/fun/cumulative_sum.hpp
>
77
#include <
stan/math/prim/mat/fun/determinant.hpp
>
78
#include <
stan/math/prim/mat/fun/diag_matrix.hpp
>
79
#include <
stan/math/prim/mat/fun/diag_post_multiply.hpp
>
80
#include <
stan/math/prim/mat/fun/diag_pre_multiply.hpp
>
81
#include <
stan/math/prim/mat/fun/diagonal.hpp
>
82
#include <
stan/math/prim/mat/fun/dims.hpp
>
83
#include <
stan/math/prim/mat/fun/distance.hpp
>
84
#include <
stan/math/prim/mat/fun/divide.hpp
>
85
#include <
stan/math/prim/mat/fun/dot_product.hpp
>
86
#include <
stan/math/prim/mat/fun/dot_self.hpp
>
87
#include <
stan/math/prim/mat/fun/Eigen.hpp
>
88
#include <
stan/math/prim/mat/fun/eigenvalues_sym.hpp
>
89
#include <
stan/math/prim/mat/fun/eigenvectors_sym.hpp
>
90
#include <
stan/math/prim/mat/fun/elt_divide.hpp
>
91
#include <
stan/math/prim/mat/fun/elt_multiply.hpp
>
92
#include <
stan/math/prim/mat/fun/exp.hpp
>
93
#include <
stan/math/prim/mat/fun/factor_cov_matrix.hpp
>
94
#include <
stan/math/prim/mat/fun/factor_U.hpp
>
95
#include <
stan/math/prim/mat/fun/fill.hpp
>
96
#include <
stan/math/prim/mat/fun/get_base1.hpp
>
97
#include <
stan/math/prim/mat/fun/get_base1_lhs.hpp
>
98
#include <
stan/math/prim/mat/fun/get_lp.hpp
>
99
#include <
stan/math/prim/mat/fun/head.hpp
>
100
#include <
stan/math/prim/mat/fun/initialize.hpp
>
101
#include <
stan/math/prim/mat/fun/inverse.hpp
>
102
#include <
stan/math/prim/mat/fun/inverse_spd.hpp
>
103
#include <
stan/math/prim/mat/fun/LDLT_factor.hpp
>
104
#include <
stan/math/prim/mat/fun/log.hpp
>
105
#include <
stan/math/prim/mat/fun/log_determinant.hpp
>
106
#include <
stan/math/prim/mat/fun/log_determinant_ldlt.hpp
>
107
#include <
stan/math/prim/mat/fun/log_determinant_spd.hpp
>
108
#include <
stan/math/prim/mat/fun/log_softmax.hpp
>
109
#include <
stan/math/prim/mat/fun/log_sum_exp.hpp
>
110
#include <
stan/math/prim/mat/fun/make_nu.hpp
>
111
#include <
stan/math/prim/mat/fun/max.hpp
>
112
#include <
stan/math/prim/mat/fun/mdivide_left.hpp
>
113
#include <
stan/math/prim/mat/fun/mdivide_left_ldlt.hpp
>
114
#include <
stan/math/prim/mat/fun/mdivide_left_spd.hpp
>
115
#include <
stan/math/prim/mat/fun/mdivide_left_tri.hpp
>
116
#include <
stan/math/prim/mat/fun/mdivide_left_tri_low.hpp
>
117
#include <
stan/math/prim/mat/fun/mdivide_right.hpp
>
118
#include <
stan/math/prim/mat/fun/mdivide_right_ldlt.hpp
>
119
#include <
stan/math/prim/mat/fun/mdivide_right_spd.hpp
>
120
#include <
stan/math/prim/mat/fun/mdivide_right_tri.hpp
>
121
#include <
stan/math/prim/mat/fun/mdivide_right_tri_low.hpp
>
122
#include <
stan/math/prim/mat/fun/mean.hpp
>
123
#include <
stan/math/prim/mat/fun/min.hpp
>
124
#include <
stan/math/prim/mat/fun/minus.hpp
>
125
#include <
stan/math/prim/mat/fun/multiply.hpp
>
126
#include <
stan/math/prim/mat/fun/multiply_lower_tri_self_transpose.hpp
>
127
#include <
stan/math/prim/mat/fun/num_elements.hpp
>
128
#include <
stan/math/prim/mat/fun/ordered_constrain.hpp
>
129
#include <
stan/math/prim/mat/fun/ordered_free.hpp
>
130
#include <
stan/math/prim/mat/fun/positive_ordered_constrain.hpp
>
131
#include <
stan/math/prim/mat/fun/positive_ordered_free.hpp
>
132
#include <
stan/math/prim/mat/fun/prod.hpp
>
133
#include <
stan/math/prim/mat/fun/promote_common.hpp
>
134
#include <
stan/math/prim/mat/fun/promote_scalar.hpp
>
135
#include <
stan/math/prim/mat/fun/promote_scalar_type.hpp
>
136
#include <
stan/math/prim/mat/fun/promoter.hpp
>
137
#include <
stan/math/prim/mat/fun/qr_Q.hpp
>
138
#include <
stan/math/prim/mat/fun/qr_R.hpp
>
139
#include <
stan/math/prim/mat/fun/quad_form.hpp
>
140
#include <
stan/math/prim/mat/fun/quad_form_diag.hpp
>
141
#include <
stan/math/prim/mat/fun/quad_form_sym.hpp
>
142
#include <
stan/math/prim/mat/fun/rank.hpp
>
143
#include <
stan/math/prim/mat/fun/read_corr_L.hpp
>
144
#include <
stan/math/prim/mat/fun/read_corr_matrix.hpp
>
145
#include <
stan/math/prim/mat/fun/read_cov_L.hpp
>
146
#include <
stan/math/prim/mat/fun/read_cov_matrix.hpp
>
147
#include <
stan/math/prim/mat/fun/rep_matrix.hpp
>
148
#include <
stan/math/prim/mat/fun/rep_row_vector.hpp
>
149
#include <
stan/math/prim/mat/fun/rep_vector.hpp
>
150
#include <
stan/math/prim/mat/fun/resize.hpp
>
151
#include <
stan/math/prim/mat/fun/row.hpp
>
152
#include <
stan/math/prim/mat/fun/rows.hpp
>
153
#include <
stan/math/prim/mat/fun/rows_dot_product.hpp
>
154
#include <
stan/math/prim/mat/fun/rows_dot_self.hpp
>
155
#include <
stan/math/prim/mat/fun/sd.hpp
>
156
#include <
stan/math/prim/mat/fun/segment.hpp
>
157
#include <
stan/math/prim/mat/fun/simplex_constrain.hpp
>
158
#include <
stan/math/prim/mat/fun/simplex_free.hpp
>
159
#include <
stan/math/prim/mat/fun/singular_values.hpp
>
160
#include <
stan/math/prim/mat/fun/size.hpp
>
161
#include <
stan/math/prim/mat/fun/softmax.hpp
>
162
#include <
stan/math/prim/mat/fun/sort.hpp
>
163
#include <
stan/math/prim/mat/fun/sort_indices.hpp
>
164
#include <
stan/math/prim/mat/fun/sort_indices_asc.hpp
>
165
#include <
stan/math/prim/mat/fun/sort_indices_desc.hpp
>
166
#include <
stan/math/prim/mat/fun/csr_extract_w.hpp
>
167
#include <
stan/math/prim/mat/fun/csr_extract_v.hpp
>
168
#include <
stan/math/prim/mat/fun/csr_extract_u.hpp
>
169
#include <
stan/math/prim/mat/fun/csr_matrix_times_vector.hpp
>
170
#include <
stan/math/prim/mat/fun/csr_to_dense_matrix.hpp
>
171
#include <
stan/math/prim/mat/fun/csr_u_to_z.hpp
>
172
#include <
stan/math/prim/mat/fun/squared_distance.hpp
>
173
#include <
stan/math/prim/mat/fun/stan_print.hpp
>
174
#include <
stan/math/prim/mat/fun/sub_col.hpp
>
175
#include <
stan/math/prim/mat/fun/sub_row.hpp
>
176
#include <
stan/math/prim/mat/fun/subtract.hpp
>
177
#include <
stan/math/prim/mat/fun/sum.hpp
>
178
#include <
stan/math/prim/mat/fun/tail.hpp
>
179
#include <
stan/math/prim/mat/fun/tcrossprod.hpp
>
180
#include <
stan/math/prim/mat/fun/to_array_1d.hpp
>
181
#include <
stan/math/prim/mat/fun/to_array_2d.hpp
>
182
#include <
stan/math/prim/mat/fun/to_matrix.hpp
>
183
#include <
stan/math/prim/mat/fun/to_row_vector.hpp
>
184
#include <
stan/math/prim/mat/fun/to_vector.hpp
>
185
#include <
stan/math/prim/mat/fun/trace.hpp
>
186
#include <
stan/math/prim/mat/fun/trace_gen_inv_quad_form_ldlt.hpp
>
187
#include <
stan/math/prim/mat/fun/trace_gen_quad_form.hpp
>
188
#include <
stan/math/prim/mat/fun/trace_inv_quad_form_ldlt.hpp
>
189
#include <
stan/math/prim/mat/fun/trace_quad_form.hpp
>
190
#include <
stan/math/prim/mat/fun/transpose.hpp
>
191
#include <
stan/math/prim/mat/fun/typedefs.hpp
>
192
#include <
stan/math/prim/mat/fun/unit_vector_constrain.hpp
>
193
#include <
stan/math/prim/mat/fun/unit_vector_free.hpp
>
194
#include <
stan/math/prim/mat/fun/value_of.hpp
>
195
#include <
stan/math/prim/mat/fun/value_of_rec.hpp
>
196
#include <
stan/math/prim/mat/fun/variance.hpp
>
197
#include <
stan/math/prim/mat/fun/welford_covar_estimator.hpp
>
198
#include <
stan/math/prim/mat/fun/welford_var_estimator.hpp
>
199
200
#include <
stan/math/prim/mat/functor/finite_diff_gradient.hpp
>
201
#include <
stan/math/prim/mat/functor/finite_diff_hessian.hpp
>
202
203
#include <
stan/math/prim/mat/prob/categorical_log.hpp
>
204
#include <
stan/math/prim/mat/prob/categorical_logit_log.hpp
>
205
#include <
stan/math/prim/mat/prob/categorical_rng.hpp
>
206
#include <
stan/math/prim/mat/prob/dirichlet_log.hpp
>
207
#include <
stan/math/prim/mat/prob/dirichlet_rng.hpp
>
208
#include <
stan/math/prim/mat/prob/gaussian_dlm_obs_log.hpp
>
209
#include <
stan/math/prim/mat/prob/inv_wishart_log.hpp
>
210
#include <
stan/math/prim/mat/prob/inv_wishart_rng.hpp
>
211
#include <
stan/math/prim/mat/prob/lkj_corr_cholesky_log.hpp
>
212
#include <
stan/math/prim/mat/prob/lkj_corr_cholesky_rng.hpp
>
213
#include <
stan/math/prim/mat/prob/lkj_corr_log.hpp
>
214
#include <
stan/math/prim/mat/prob/lkj_corr_rng.hpp
>
215
#include <
stan/math/prim/mat/prob/lkj_cov_log.hpp
>
216
#include <
stan/math/prim/mat/prob/matrix_normal_prec_log.hpp
>
217
#include <
stan/math/prim/mat/prob/multi_gp_cholesky_log.hpp
>
218
#include <
stan/math/prim/mat/prob/multi_gp_log.hpp
>
219
#include <
stan/math/prim/mat/prob/multi_normal_cholesky_log.hpp
>
220
#include <
stan/math/prim/mat/prob/multi_normal_cholesky_rng.hpp
>
221
#include <
stan/math/prim/mat/prob/multi_normal_log.hpp
>
222
#include <
stan/math/prim/mat/prob/multi_normal_prec_log.hpp
>
223
#include <
stan/math/prim/mat/prob/multi_normal_rng.hpp
>
224
#include <
stan/math/prim/mat/prob/multi_student_t_log.hpp
>
225
#include <
stan/math/prim/mat/prob/multi_student_t_rng.hpp
>
226
#include <
stan/math/prim/mat/prob/multinomial_log.hpp
>
227
#include <
stan/math/prim/mat/prob/multinomial_rng.hpp
>
228
#include <
stan/math/prim/mat/prob/ordered_logistic_log.hpp
>
229
#include <
stan/math/prim/mat/prob/ordered_logistic_rng.hpp
>
230
#include <
stan/math/prim/mat/prob/wishart_log.hpp
>
231
#include <
stan/math/prim/mat/prob/wishart_rng.hpp
>
232
233
#include <
stan/math/prim/mat/vectorize/apply_scalar_unary.hpp
>
234
235
#include <
stan/math/prim/arr.hpp
>
236
237
#endif
factor_U.hpp
lkj_corr_log.hpp
check_simplex.hpp
check_matching_dims.hpp
multiply.hpp
diagonal.hpp
cols.hpp
tcrossprod.hpp
welford_var_estimator.hpp
log_determinant_spd.hpp
promote_scalar_type.hpp
promote_scalar.hpp
finite_diff_hessian.hpp
multiply_lower_tri_self_transpose.hpp
scalar_type.hpp
stan_print.hpp
get_base1_lhs.hpp
cov_matrix_free_lkj.hpp
check_multiplicable.hpp
inv_wishart_rng.hpp
size.hpp
num_elements.hpp
value_of_rec.hpp
mdivide_left_spd.hpp
log_determinant.hpp
prod.hpp
arr.hpp
check_positive_ordered.hpp
variance.hpp
csr_to_dense_matrix.hpp
sd.hpp
lkj_cov_log.hpp
eigenvectors_sym.hpp
crossprod.hpp
to_array_2d.hpp
tail.hpp
trace_inv_quad_form_ldlt.hpp
index_type.hpp
is_vector_like.hpp
VectorViewMvt.hpp
promote_common.hpp
check_column_index.hpp
elt_divide.hpp
autocorrelation.hpp
csr_extract_u.hpp
wishart_rng.hpp
multi_student_t_rng.hpp
mdivide_left_tri.hpp
add.hpp
qr_Q.hpp
cov_matrix_free.hpp
get.hpp
determinant.hpp
multi_normal_cholesky_log.hpp
to_array_1d.hpp
segment.hpp
multinomial_log.hpp
length.hpp
divide.hpp
finite_diff_gradient.hpp
is_vector.hpp
promoter.hpp
constraint_tolerance.hpp
check_cholesky_factor_corr.hpp
corr_matrix_constrain.hpp
check_ordered.hpp
sort_indices.hpp
check_pos_semidefinite.hpp
check_matching_sizes.hpp
sort_indices_asc.hpp
diag_matrix.hpp
autocovariance.hpp
check_lower_triangular.hpp
resize.hpp
cholesky_factor_free.hpp
check_std_vector_index.hpp
check_symmetric.hpp
mdivide_right_tri.hpp
multi_normal_cholesky_rng.hpp
sub_col.hpp
multinomial_rng.hpp
log.hpp
check_cov_matrix.hpp
min.hpp
categorical_log.hpp
dirichlet_rng.hpp
transpose.hpp
validate_non_negative_index.hpp
check_row_index.hpp
trace.hpp
unit_vector_free.hpp
mdivide_right_spd.hpp
dims.hpp
mdivide_right_ldlt.hpp
sort.hpp
check_ldlt_factor.hpp
matrix_normal_prec_log.hpp
value_type.hpp
columns_dot_product.hpp
check_unit_vector.hpp
squared_distance.hpp
dirichlet_log.hpp
trace_gen_quad_form.hpp
cumulative_sum.hpp
cov_exp_quad.hpp
initialize.hpp
ordered_constrain.hpp
check_corr_matrix.hpp
multi_gp_log.hpp
index_type.hpp
LDLT_factor.hpp
trace_gen_inv_quad_form_ldlt.hpp
get_base1.hpp
rep_vector.hpp
softmax.hpp
csr_extract_v.hpp
sort_indices_desc.hpp
cov_matrix_constrain_lkj.hpp
multi_normal_log.hpp
check_cholesky_factor.hpp
quad_form_sym.hpp
lkj_corr_rng.hpp
read_cov_L.hpp
quad_form_diag.hpp
rows_dot_self.hpp
multi_student_t_log.hpp
mean.hpp
diag_pre_multiply.hpp
seq_view.hpp
simplex_free.hpp
head.hpp
col.hpp
multi_normal_rng.hpp
trace_quad_form.hpp
cholesky_corr_constrain.hpp
categorical_logit_log.hpp
inv_wishart_log.hpp
ordered_logistic_log.hpp
dot_product.hpp
rank.hpp
exp.hpp
inverse.hpp
Eigen.hpp
value_of.hpp
is_constant_struct.hpp
minus.hpp
row.hpp
simplex_constrain.hpp
max.hpp
accumulator.hpp
unit_vector_constrain.hpp
check_vector.hpp
rows_dot_product.hpp
rep_row_vector.hpp
cholesky_factor_constrain.hpp
lkj_corr_cholesky_log.hpp
factor_cov_matrix.hpp
to_matrix.hpp
qr_R.hpp
block.hpp
get_lp.hpp
common_type.hpp
cholesky_corr_free.hpp
log_sum_exp.hpp
container_view.hpp
append_row.hpp
mdivide_right_tri_low.hpp
csr_matrix_times_vector.hpp
cov_matrix_constrain.hpp
VectorView.hpp
csr_u_to_z.hpp
sum.hpp
array_builder.hpp
elt_multiply.hpp
to_row_vector.hpp
mdivide_left_ldlt.hpp
to_vector.hpp
welford_covar_estimator.hpp
diag_post_multiply.hpp
log_softmax.hpp
positive_ordered_constrain.hpp
get.hpp
categorical_rng.hpp
dot_self.hpp
columns_dot_self.hpp
fill.hpp
mdivide_right.hpp
read_cov_matrix.hpp
ordered_logistic_rng.hpp
assign.hpp
quad_form.hpp
cholesky_decompose.hpp
subtract.hpp
gaussian_dlm_obs_log.hpp
is_vector.hpp
multi_normal_prec_log.hpp
read_corr_matrix.hpp
read_corr_L.hpp
check_range.hpp
mdivide_left_tri_low.hpp
positive_ordered_free.hpp
corr_matrix_free.hpp
sub_row.hpp
wishart_log.hpp
eigenvalues_sym.hpp
apply_scalar_unary.hpp
rep_matrix.hpp
check_spsd_matrix.hpp
csr_extract_w.hpp
multi_gp_cholesky_log.hpp
check_pos_definite.hpp
distance.hpp
inverse_spd.hpp
make_nu.hpp
lkj_corr_cholesky_rng.hpp
rows.hpp
append_col.hpp
log_determinant_ldlt.hpp
ordered_free.hpp
length.hpp
typedefs.hpp
mdivide_left.hpp
length_mvt.hpp
check_square.hpp
singular_values.hpp
[
Stan Home Page
]
© 2011–2016, Stan Development Team.