clifford_algebra_pytorch 简单的pytorch工具可计算基本的Clifford代数(Geometric algebra)运算。 用法 使用ga.GA import torch from ga import GA ga = GA ( 3 ) x = 3 + ga [ 1 ] + 2 * ga [ 2 ] - 2 * ga [ 3 ] + ga [ 1 , 2 ] - ga [ 2 , 3 ] + 2.5 * ga [ 1 , 3 ] - ga [ 1 , 2 , 3 ] print ( x ) r = x * ( ~ x ) * ga . I print ( r ) q = ga . tensor_to_mv ( torch . tensor ([ 1 , 1 , 1 , 1 ])) print ( q ) # output # 3.0 + 1.0*[e1] +