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 (
Union
[ndarray
,RandomVariable
]) – Vector, array or random variable to be transformed into a column vector.- Return type