Sum of array elements(Quaternion and octonion overloadings of standard MATLAB® function)
Y = sum(X, dim)
sum(X, dim) computes the sum of the elements of the quaternion array X along dimension dim.
>> sum([qi, qj, qk]) ans = 1 * I + 1 * J + 1 * K
License terms.