1. 首页
  2. 数据库
  3. 其它
  4. vextors:一个简单的Python模块来处理向量 源码

vextors:一个简单的Python模块来处理向量 源码

上传者: 2021-04-18 02:38:17上传 ZIP文件 13.18KB 热度 5次
向量 vextors是一个Python库,用于处理R ^ N上向量之间的基本操作 安装 使用软件包管理器安装vextor。 pip install vextors 用法 from vextors import Vector v1 = Vector ([ 1 , 2 , 3 ]) # defines a three-dim vector v2 = Vector ([ 4 , 5 , 6 ]) v1 . lenght # returns the lenght of the vector v1 . dot ( v2 ) # returns the scalar multiplication of the two vectors v1 . cross ( v2 ) # returns the cross product of the two vectors ( v1 x v2 ) v1 . di
下载地址
用户评论