Navigation

Operators and Keywords

Function List:

C++ API

quaternion

Quaternion package for GNU Octave, includes a quaternion class with overloaded operators

Select category:

Quaternion Constructors

quaternion
Constructor for quaternions - create or convert to quaternion.
qi
Create x-component of a quaternion's vector part.
qj
Create y-component of a quaternion's vector part.
qk
Create z-component of a quaternion's vector part.

Conversions

q2rot
Extract vector/angle form of a unit quaternion Q.
rot2q
Create unit quaternion Q which describes a rotation of ANGLE radians about the vector AXIS.
rotm2q
Convert 3x3 rotation matrix R to unit quaternion Q.

Quaternion Methods

@quaternion/abs
Modulus of a quaternion.
@quaternion/arg
Compute the argument or phase of quaternion Q in radians.
@quaternion/blkdiag
Block-diagonal concatenation of quaternions.
@quaternion/cast
Convert the components of quaternion Q to data type TYPE.
@quaternion/cat
Concatenation of quaternions along dimension DIM.
@quaternion/ceil
Round quaternion Q towards positive infinity.
@quaternion/columns
Return number of columns NC of quaternion array Q.
@quaternion/conj
Return conjugate of a quaternion.
@quaternion/cumsum
Cumulative sum of elements along dimension DIM.
@quaternion/diag
Return a diagonal quaternion matrix with quaternion vector V on diagonal K.
@quaternion/diff
Derivative of a quaternion.
@quaternion/exp
Exponential of a quaternion.
@quaternion/fix
Round quaternion Q towards zero.
@quaternion/floor
Round quaternion Q towards negative infinity.
@quaternion/full
Return a full storage quaternion representation FQ from sparse or diagonal quaternion SQ.
@quaternion/get
Access key values of quaternion objects.
@quaternion/inv
Return inverse of a quaternion.
@quaternion/isempty
Return true if quaternion Q is empty and false otherwise.
@quaternion/isfinite
Return a logical array which is true where the elements of Q are finite values and false where they are not.
@quaternion/isinf
Return a logical array which is true where the elements of Q are infinite and false where they are not.
@quaternion/isnan
Return a logical array which is true where the elements of Q are NaN values and false where they are not.
@quaternion/ispure
Return true if scalar part of quaternion is zero, otherwise return false.
@quaternion/isreal
Return true if the vector part of quaternion Q is zero and false otherwise.
@quaternion/length
Return the "length" L of the quaternion array Q.
@quaternion/log
Logarithmus naturalis of a quaternion.
@quaternion/mean
Compute the mean of the elements of the quaternion array Q.
@quaternion/ndims
Return the number of dimensions of quaternion Q.
@quaternion/norm
Norm of a quaternion.
@quaternion/numel
For internal use only, use `prod(size(q))' or `numel (q.w)' instead.
@quaternion/repmat
Form a block quaternion matrix QRET of size M by N, with a copy of quaternion matrix Q as each element.
@quaternion/reshape
Return a quaternion array with the specified dimensions (M, N, ...) whose elements are taken from the quaternion array Q.
@quaternion/round
Round the components of quaternion Q towards the nearest integers.
@quaternion/rows
Return number of rows NR of quaternion array Q.
@quaternion/set
Set or modify properties of quaternion objects.
@quaternion/size
Return size of quaternion arrays.
@quaternion/size_equal
Return true if quaternions (and matrices) A, B, ...
@quaternion/sparse
Return a sparse quaternion representation SQ from full quaternion FQ.
@quaternion/squeeze
Remove singleton dimensions from quaternion Q and return the result.
@quaternion/sum
Sum of elements along dimension DIM.
@quaternion/tril
Return a new quaternion matrix formed by extracting the lower triangular part of the quaternion Q, and setting all other elements to zero.
@quaternion/triu
Return a new quaternion matrix formed by extracting the upper triangular part of the quaternion Q, and setting all other elements to zero.
@quaternion/unit
Normalize quaternion to length 1 (unit quaternion).

Overloaded Quaternion Operators

@quaternion/ctranspose
Conjugate transpose of a quaternion.
@quaternion/end
End indexing for quaternions.
@quaternion/eq
Equal to operator for two quaternions.
@quaternion/ge
Greater-than-or-equal-to operator for two quaternions.
@quaternion/gt
Greater-than operator for two quaternions.
@quaternion/horzcat
Horizontal concatenation of quaternions.
@quaternion/ldivide
Element-wise left division for quaternions.
@quaternion/le
Less-than-or-equal-to operator for two quaternions.
@quaternion/lt
Less-than operator for two quaternions.
@quaternion/minus
Subtraction of two quaternions.
@quaternion/mldivide
Matrix left division for quaternions.
@quaternion/mpower
Matrix power operator of quaternions.
@quaternion/mrdivide
Matrix right division for quaternions.
@quaternion/mtimes
Matrix multiplication of two quaternions.
@quaternion/ne
Not-equal-to operator for two quaternions.
@quaternion/plus
Addition of two quaternions.
@quaternion/power
Power operator of quaternions.
@quaternion/rdivide
Element-wise right division for quaternions.
@quaternion/subsasgn
Subscripted assignment for quaternions.
@quaternion/subsref
Subscripted reference for quaternions.
@quaternion/times
Element-wise multiplication of two quaternions.
@quaternion/transpose
Transpose of a quaternion.
@quaternion/uminus
Unary minus of a quaternion.
@quaternion/uplus
Unary plus of a quaternion.
@quaternion/vertcat
Vertical concatenation of quaternions.

Package: quaternion