This is a general C question.
1D C arrays or vectors do not need to be transposed as there is not a distinction between a [1xN] or [Nx1] like in MATLAB/Octave.
If you have a higher order matrix, then you can use for loops and re-indexing. There are plenty of code examples available elsewhere for this.
Note that oftentimes in PLECS C-Scripts, one would not use an array of time values, but rather the CurrentTime macro, which reports the simulation time as a single C double.