warp.matrix#

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

  • Differentiable

Construct a matrix.

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 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.

Construct a matrix with the given shape and dtype.

If no positional arguments are given, the matrix is zero-initialized.