broke out repetition (broadcast) functions for arrays, matrices, and vectors