# as_colvec¶

probnum.utils.as_colvec(vec)[source]

Transform the given vector or random variable to column format.

Given a vector (or random variable) of dimension (n,) return an array with dimensions (n, 1) instead. Higher-dimensional arrays are not changed.

Parameters: vec (np.ndarray or RandomVariable) – Vector, array or random variable to be viewed as a column vector. vec2d np.ndarray or RandomVariable