clifford_algebra_pytorch:简单的pytorch工具来计算基本的Clifford代数(Geometric Algebra)运算

时间:2021-04-02 22:14:42
【文件属性】:
文件名称:clifford_algebra_pytorch:简单的pytorch工具来计算基本的Clifford代数(Geometric Algebra)运算
文件大小:8KB
文件格式:ZIP
更新时间:2021-04-02 22:14:42
Python 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
----LICENSE(1KB)
----ga.py(1KB)
----.gitignore(2KB)
----layers.py(3KB)
----mv.py(11KB)
----README.md(3KB)

网友评论