Let $A$ be an $m \times n$ matrix, $\mathbf x \in \mathbb R^n$, and define the truncation operator $T \colon \mathbb R^m \to \mathbb R^m$ by $(T \mathbf y)_i = \max\{\min\{\mathbf y_i, c\}, 0\}$, so $T$ truncates each entry of its argument to $[0, c]$.
What is the computational complexity of $TA\mathbf y$?
I know from Wikipedia that $A \mathbf y$ should be $O(mn)$. What about $T$? I might be totally wrong, but if $T$ has to make 2 comparisons over each of $m$ elements, would it be $O(m)$? So the total complexity of $TA\mathbf y$ would be $O(m^2n)$?
Is this right? Thanks.