Skip to content

Commit

Permalink
Missing updates
Browse files Browse the repository at this point in the history
  • Loading branch information
WardBrian committed Dec 10, 2024
1 parent 24d1d7e commit e5ec664
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 19 deletions.
41 changes: 22 additions & 19 deletions src/reference-manual/expressions.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ any of the following.
int, real, complex, vector, simplex, unit_vector,
sum_to_zero_vector, ordered, positive_ordered,
row_vector, matrix, cholesky_factor_corr,
column_stochastic_matrix,row_stochastic_matrix,
cholesky_factor_cov, corr_matrix, cov_matrix, array
```

Expand Down Expand Up @@ -1071,25 +1072,27 @@ the following table shows the mapping from types to their primitive types.
result types declared in terms of primitive types plus array
dimensionality.*

| type | primitive type |
| :--------------------- | :------------------- |
| `int` | `int` |
| `real` | `real` |
| `vector` | `vector` |
| `simplex` | `vector` |
| `unit_vector` | `vector` |
| `sum_to_zero_vector` | `vector` |
| `ordered` | `vector` |
| `positive_ordered` | `vector` |
| `row_vector` | `row_vector` |
| `matrix` | `matrix` |
| `cov_matrix` | `matrix` |
| `corr_matrix` | `matrix` |
| `cholesky_factor_cov` | `matrix` |
| `cholesky_factor_corr` | `matrix` |
| `complex_vector` | `complex_vector` |
| `complex_row_vector` | `complex_row_vector` |
| `complex_matrix` | `complex_matrix` |
| type | primitive type |
| :------------------------- | :------------------- |
| `int` | `int` |
| `real` | `real` |
| `vector` | `vector` |
| `simplex` | `vector` |
| `unit_vector` | `vector` |
| `sum_to_zero_vector` | `vector` |
| `ordered` | `vector` |
| `positive_ordered` | `vector` |
| `row_vector` | `row_vector` |
| `matrix` | `matrix` |
| `cov_matrix` | `matrix` |
| `corr_matrix` | `matrix` |
| `cholesky_factor_cov` | `matrix` |
| `cholesky_factor_corr` | `matrix` |
| `column_stochastic_matrix` | `matrix` |
| `row_stochastic_matrix` | `matrix` |
| `complex_vector` | `complex_vector` |
| `complex_row_vector` | `complex_row_vector` |
| `complex_matrix` | `complex_matrix` |


A full implementation type consists of a primitive implementation type
Expand Down
4 changes: 4 additions & 0 deletions src/reference-manual/types.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -1764,6 +1764,10 @@ dimensions `matrix[K, K]` types.
+---------------------+-------------------------+----------------------------------------------+
| | | `matrix[M, N]<offset=O, multiplier=M>` |
+---------------------+-------------------------+----------------------------------------------+
| | | `column_stochastic_matrix[M, N]` |
+---------------------+-------------------------+----------------------------------------------+
| | | `row_stochastic_matrix[M, N]` |
+---------------------+-------------------------+----------------------------------------------+
| | `matrix[K, K]` | `corr_matrix[K]` |
+---------------------+-------------------------+----------------------------------------------+
| | `matrix[K, K]` | `cov_matrix[K]` |
Expand Down
2 changes: 2 additions & 0 deletions src/theming/stan.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@
<item>simplex</item>
<item>unit_vector</item>
<item>sum_to_zero_vector</item>
<item>column_stochastic_matrix</item>
<item>row_stochastic_matrix</item>
<item>row_vector</item>
<item>matrix</item>
<item>array</item>
Expand Down

0 comments on commit e5ec664

Please sign in to comment.