tensor.prin.from

Syntax

t = tensor.prin.from(v,a)

Get the tensor from principal axes. v must be a three-dimensional vector, and a may be an array of length two or three.

Returns:

t - tensor

Arguments:

v - three-dimensional vector

a - array with length two or three