conj#

ahrs.common.quaternion.QuaternionArray.conj(self) ndarray#

Synonym of conjugate()

Returns:

q* – Array of conjugated quaternions.

Return type:

numpy.ndarray

Examples

>>> Q = QuaternionArray(np.random.random((5, 4))-0.5)
>>> Q.view()
QuaternionArray([[-0.68487217,  0.45395092, -0.53551826, -0.19518931],
                 [ 0.49389483,  0.28781475, -0.7085184 , -0.41380217],
                 [-0.39583397,  0.46873203, -0.21517704,  0.75980563],
                 [ 0.57515971,  0.33286283,  0.23442397,  0.70953439],
                 [-0.34067259, -0.24989624,  0.5950285 , -0.68369229]])
>>> Q.conj()
array([[-0.68487217, -0.45395092,  0.53551826,  0.19518931],
       [ 0.49389483, -0.28781475,  0.7085184 ,  0.41380217],
       [-0.39583397, -0.46873203,  0.21517704, -0.75980563],
       [ 0.57515971, -0.33286283, -0.23442397, -0.70953439],
       [-0.34067259,  0.24989624, -0.5950285 ,  0.68369229]])