innerh.m

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

M
24
字号
function C = innerH(M,N)%innerH(M,N): Computes the Hestenes inner product between two multivectors.% innerH(m,n) = sum_r,s grade(grade(m,r)*grade(n,s),|r-s|) for r,s>=0%                unless grade(m) or grade(n) is zero, %                in which case inner(m,n)=0%%See also gable.% 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.%Computes the inner product of two scalars.% Equivalent to getting a zero.   if GAautoscalar      C=0;   else      C=GA([0;0;0;0;0;0;0;0]);   end    

⌨️ 快捷键说明

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