File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change 32
32
## If @var{x } and @var{y } are arrays , the cross product is applied along the
33
33
## first dimension with three elements .
34
34
##
35
- ## The optional argument @var{dim } forces the cross product to be calculated
35
+ ## The optional argument @var{dim } forces the cross product to be calculated
36
36
## along the specified dimension . An error will be produced if the specified
37
37
## dimension is not three elements in size .
38
38
##
39
+ ## In the case of a complex output , orthogonality of the output with respect
40
+ ## to the inputs is also satisfied , and the condition
41
+ ## @example
42
+ ## @code{dot (conj (@var{z }), @var{x }) @equiv{} dot (conj (@var{z }), @var{y }) = 0 }
43
+ ## @end example
44
+ ## is met . @code{dot (@var{z }, @var{x }) = 0 } and
45
+ ## @code{dot (@var{z }, @var{y }) = 0 } will not hold . Also note that instead of
46
+ ## using the @code{dot } function , the inner product
47
+ ## @example
48
+ ## @code{@var{z }(: ).' * @var{x }(: ) @equiv{} @var{z }(: ).' * @var{y }(: ) = 0 }
49
+ ## @end example
50
+ ## will meet the orthogonality condition for vector input .
51
+ ##
39
52
## Example Code :
40
53
##
41
54
## @example
56
69
## @end group
57
70
## @end example
58
71
##
59
- ## @seealso{dot , curl , divergence }
72
+ ## @seealso{dot , curl , divergence , conj }
60
73
## @end deftypefn
61
74
62
75
function z = cross (x , y , dim )
You can’t perform that action at this time.
0 commit comments