warp.matrix#

warp.matrix(
pos: Vector[3, Float],
rot: Quaternion[Float],
scale: Vector[3, Float],
dtype: Float,
) Matrix[4, 4, Float]#
  • Kernel

  • Differentiable

Construct a 4x4 transformation matrix that applies the transformations as

Translation(pos)*Rotation(rot)*Scaling(scale) when applied to column vectors, i.e.: y = (TRS)*x

Removed in version 1.10: This function has been removed in favor of warp.transform_compose.

Deprecated since version 1.8.

warp.matrix(
*args: Scalar,
shape: tuple[int, int],
dtype: Scalar,
) Matrix[Any, Any, Scalar]
  • Kernel

  • Differentiable

Construct a matrix. If the positional arg_types are not given, then matrix will be zero-initialized.