Create a symmetric tensor field.
Create a symmetric tensor field.
Rows in field.
Columns in field.
Function which supplies a symmetric tensor for each point (row, column) in the field.
The vector field used to implement the symmetric tensor field.
Compute stickness, ballness and orientation
A 2D field of positive, semidefinite, symmetric tensors.
Each tensor requires only 3 components, so this is implemented with a vector field. This uses the Scala "Enriched" pattern, much like RichStrings, to automatically convert back and forth between vector fields and symmetric tensor fields.