scipp.vector#

scipp.vector(*, unit=<scipp._scipp.core.DefaultUnit object>, value)#

Constructs a zero dimensional Variable holding a single length-3 vector.

Parameters
  • value (Union[ndarray, list]) – Initial value, a list or 1-D numpy array.

  • unit (Union[Unit, str, None], default: <scipp._scipp.core.DefaultUnit object at 0x7f749c6bf9b0>) – Optional, unit. Default=dimensionless

Returns

A scalar (zero-dimensional) Variable.

Seealso

scipp.vectors()