Line | |
---|
1 | function tf = ispure(q) |
---|
2 | % ISPURE Tests whether a quaternion is pure. |
---|
3 | % tf = ispure(q) returns 1 if q has no scalar part, 0 if not. |
---|
4 | % Note that if q has a scalar part which is zero, ispure(q) returns 1. |
---|
5 | |
---|
6 | % Copyright © 2005 Stephen J. Sangwine and Nicolas Le Bihan. |
---|
7 | % See the file : Copyright.m for further details. |
---|
8 | |
---|
9 | error(nargchk(1, 1, nargin)), error(nargoutchk(0, 1, nargout)) |
---|
10 | |
---|
11 | % Implementation note. This function uses ispure_internal, so that the knowledge of |
---|
12 | % how quaternions are represented is hidden in the private functions. |
---|
13 | |
---|
14 | tf = ispure_internal(q); |
---|
Note: See
TracBrowser
for help on using the repository browser.