Skip to main content

make_adjoint

Function make_adjoint 

Source
pub fn make_adjoint(vr: &Vector2<f64>, vp: &Vector2<f64>) -> Matrix2<f64>
Expand description

The function make_adjoint calculates the adjoint matrix between two vectors.

Arguments:

  • vr: A vector representing the direction of the reference frame’s x-axis.
  • vp: The parameter vp represents a vector vp = (p, s), where p and s are the components of the vector.

Returns:

The function make_adjoint returns a Mat2 object. Calculates the adjoint matrix for a 2x2 matrix from two vectors.

The adjoint is computed as: | s -p | | -pq pr+s |

Arguments:

  • vr: A vector representing the row of a 2x2 matrix
  • vp: Another vector representing the row of a 2x2 matrix

Returns:

A 2x2 matrix representing the adjoint