warp.matrix#

warp.matrix(
pos: Vector[Float, Literal[3]],
rot: Quaternion[Float],
scale: Vector[Float, Literal[3]],
dtype: Float,
) Matrix[Float, Literal[4], Literal[4]]#
  • 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[Scalar, Any, Any]
  • 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.