meet.m

来自「这是几何代数的matlab工具包」· M 代码 · 共 31 行

M
31
字号
function r=meet(A,B)% meet(a,b) - return the largest common subspace of blades a and b%%See also gable, join.% GABLE, Copyright (c) 1999, University of Amsterdam% Copying, use and development for non-commercial purposes permitted.%          All rights for commercial use reserved; for more information%          contact Leo Dorst (leo@wins.uva.nl).%%          This software is unsupported.% Approach: this algorithm is the dual of the one for join.  See the%  comments there.a = A;b = B;if isa(a,'double')  a = GA([a;0;0;0;0;0;0;0]);endif isa(b,'double')  b = GA([b;0;0;0;0;0;0;0]);enda = GAZ(a);b = GAZ(b);if GAisa(a,'multivector') | GAisa(b,'multivector')     error('meet: all arguments must be blades.');endr = contraction(b/join(a,b), a);

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?