# Int Y\_predict\[N,K\];

**URL:** <https://discourse.mc-stan.org/t/int-y-predict-n-k/35277>\
**Category:** General\
**Created:** [May 27, 2024, 10:30pm UTC](https://discourse.mc-stan.org/t/int-y-predict-n-k/35277 "2024-05-27T22:30:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![liamxg](https://avatars.discourse-cdn.com/v4/letter/l/bbce88/32.png) [@liamxg](https://discourse.mc-stan.org/u/liamxg)\
**Post date:** [May 27, 2024, 10:30pm UTC](https://discourse.mc-stan.org/t/int-y-predict-n-k/35277/1 "2024-05-27T22:30:35Z")

</div>

the previous code is int Y\_predict[N,K];

should I change it to array[N,K] int Y\_predict; or matrix[N,K] int Y\_predict;?

---

<div class="post-metadata">

**Author:** ![WardBrian](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/wardbrian/32/12078_2.png) [@WardBrian](https://discourse.mc-stan.org/u/WardBrian)\
**Post date:** [May 28, 2024, 12:02am UTC](https://discourse.mc-stan.org/t/int-y-predict-n-k/35277/2 "2024-05-28T00:02:08Z")

</div>

The first one is correct

> [@liamxg](#):
>
> array[N,K] int Y\_predict;

There’s a similar discussion in [How to declare a integer-valued matrix? - #4 by Xavier\_La\_Rochelle](https://discourse.mc-stan.org/t/how-to-declare-a-integer-valued-matrix/18845/4)

---

<div class="post-metadata">

**Author:** ![liamxg](https://avatars.discourse-cdn.com/v4/letter/l/bbce88/32.png) [@liamxg](https://discourse.mc-stan.org/u/liamxg)\
**Post date:** [May 28, 2024, 1:53am UTC](https://discourse.mc-stan.org/t/int-y-predict-n-k/35277/3 "2024-05-28T01:53:44Z")

</div>

Thanks. @WardBrian
