magpack.vectorop#

Functions

angular_difference

Calculates the angular difference between vectors at the same positions of array a and b.

angular_gradient

Calculates the angular gradient of a vector field.

cart2pol

Converts 2D cartesian coordinates to polar coordinates.

cart2sph

Converts cartesian coordinates to spherical coordinates.

curl

Calculates the curl of a vector field.

divergence

Calculates the divergence of a vector field.

jones_to_stokes

Converts Jones polarization vector to Stokes polarization vector.

levi_civita_nd

Calculate N-Dimensional Levi Civita tensor

magnitude

Calculates the magnitude of a vector field.

magnitude_difference

Calculates the magnitude difference between vectors at the same positions of array a and b.

normalize

Scales all vectors in the array to unit length.

scalar_gradient

Compute the gradient of a scalar field.

scalar_laplacian

Calculates the scalar Laplacian of a scalar field.

scale_range

Scales all values in the array such that they lie within the specified range.

skyrmion_number

Calculates the skyrmion topological number.

sph2cart

Converts spherical coordinates to cartesian coordinates.

stokes_to_jones

Converts Stokes polarization vector to Jones polarization vector.

vector_laplacian

Compute the laplacian of a vector field (cartesian).

vorticity

Calculates the magnetic vorticity vector field for the given vector field.