warp.matrix =========== .. currentmodule:: warp._src.lang .. function:: matrix(pos: Vector[Float, Literal[3]], rot: Quaternion[Float], scale: Vector[Float, Literal[3]], dtype: Float = ...) -> Matrix[Float, Literal[4], Literal[4]] .. wp-function-tags:: :kernel: true :python: false :differentiable: true 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``. .. versionremoved:: 1.10 This function has been removed in favor of :func:`~warp._src.lang.transform_compose`. .. deprecated:: 1.8 .. function:: matrix(*args: Scalar, shape: tuple[int, int] = ..., dtype: Scalar = ...) -> Matrix[Scalar, Any, Any] :noindex: .. wp-function-tags:: :kernel: true :python: false :differentiable: true Construct a matrix. Construct a matrix with the given shape and dtype. If no positional arguments are given, the matrix is zero-initialized.