skued.change_of_basis

skued.change_of_basis(basis1, basis2=(array([1., 0., 0.]), array([0., 1., 0.]), array([0., 0., 1.])))

Returns the matrix that goes from one basis to the other.

Parameters:
  • basis1 (list of array_like, shape (3,)) – First basis

  • basis2 (list of array_like, shape (3,), optional) – Second basis. By default, this is the standard basis

Returns:

cob – Change-of-basis matrix that, applied to basis, will return basis2.

Return type:

~numpy.ndarray, shape (3,3)