clifford_algebra_pytorch:简单的pytorch工具来计算基本的Clifford代数(Geometric Algebra)运算 源码
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] +
文件列表
clifford_algebra_pytorch-main.zip
(预估有个6文件)
clifford_algebra_pytorch-main
LICENSE
1KB
ga.py
1KB
.gitignore
2KB
layers.py
3KB
mv.py
11KB
README.md
3KB
暂无评论