scipp.spatial.as_vectors#

scipp.spatial.as_vectors(x, y, z)#

Return inputs combined into vectors.

Inputs may be broadcast to a common shape,.

Parameters:
  • x (Variable) – Variable containing x components.

  • y (Variable) – Variable containing y components.

  • z (Variable) – Variable containing z components.

Returns:

Variable – Zip of input x, y and z with dtype vector3. The output unit is the same as input unit.

Raises:

scipp.DTypeError – If the dtypes of inputs are not float64.

See also

scipp.vector

Construct a vector from plain numbers.

scipp.vectors

Construct vectors from plain numpy arrays or lists.