contraction.m

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

M
25
字号
function C = contraction(M,N)%contraction(M,N): Computes the contraction of two multivectors.% Takes two arguments and gives the contraction of the first% onto the second.  %% contraction(m,n) = sum_r,s grade(grade(m,r)*grade(n,s), s-r) r,s>=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 contraction of two scalars.% Equivalent to the regular product of reals.   if GAautoscalar      C=M*N;   else      C=GA([M*N;0;0;0;0;0;0;0]);   end     

⌨️ 快捷键说明

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