This works but I’m wondering if declaring X as an array instead of a matrix could be inconvenient in some way. After reading this thread on the topic, I believe using basic types (matrix, vector, row_vector, etc.) is generally preferable since you can do matrix arithmetic and linear algebra with them. Is it not possible at all?