Get a pure function whose argument is a matrix for a given tensor
Contributed by:
E. Chan-López & Víctor Castellanos
Examples
Basic Examples (3)
Define a function that takes a matrix of variables as input and returns a vector:
Apply the function:
Use TensorPureFunction with a tensor of rank 3:
Apply the function:
Use TensorPureFunction with a tensor of rank 4:
Apply the function:
Scope (4)
Use TensorPureFunction to compute a Jacobian matrix:
Apply the Jacobian function:
Use TensorPureFunction to compute a Hessian matrix:
Apply the Hessian function:
Applications (2)
Multilinear Functions (2)
Use TensorPureFunction with the following trilinear function:
Apply the trilinear function:
Properties and Relations (3)
Use TensorPureFunction with the resource function JacobianMatrix:
This is equivalent the computing the Jacobian directly:
Use TensorPureFunction with the resource function HessianMatrix:
This is equivalent the computing the Hessian directly:
Use TensorPureFunction with the resource function DVectorField:
Apply the two functions to show that the same vector is obtained:
Publisher
Ramón Eduardo Chan López
Version History
-
2.0.1
– 20 March 2024
-
2.0.0
– 02 October 2023
-
1.0.0
– 08 November 2022
Related Resources
Author Notes
The current implementation is inspired by extensive discussion available on Mathematica Stack Exchange Community in the post 274661.