It seems postgres supports an array-append natively with an operator:
|| array-to-array concatenation ARRAY[1,2,3] || ARRAY[4,5,6] {1,2,3,4,5,6}
Source: https://www.postgresql.org/docs/current/functions-array.html.
Does it support vector/element-wise arithmetic operations natively (i.e., without writing a new function for it?)
For example, something like:
[1,2,3] + [1,1,1] = [2,3,4]
[1,2,3] - [1,1,1] = [0,1,2]
[1,2,3] * [2,2,2] = [2,4,6]
[1,2,3] / [2,2,2] = [.5, 1, 1.5]
Related question is here: Vector (array) addition in Postgres, though it's about 6 years old so perhaps there have been changes in postgres since then?