[WIP] GenericTensor 2.0 API Design
还没有人认领这个 Issue。
评估
调研方向
未指定源文件或测试。首先查看提议的 GenericTensor.Core 接口和 Tensor 签名,尤其是命名选择以及 Tensor 与 Tensor 之间的矛盾;只有在形成经各方同意且内部一致的 API 设计后,才能视为完成。
由索引模型根据 Issue 内容生成。
描述
Name of the type
For now we will assume it's Tensor. However it's opionated, because it might be useful to avoid calling it the same name as other libs.
Operations
Namespace: GenericTensor.Core.
Interfaces with method Invoke: () -> A
IAdditiveIdentity<A>
IMultiplicativeIdentity<A>
Interfaces with method Invoke: A -> B
INegate<A, B>
Interfaces with method Invoke: A x B -> C
IAdd<A, B, C>
ISubtract<A, B, C>
IMultiply<A, B, C>
IDivide<A, B, C>
Interfaces with method Invoke: A -> bool
IEqualsAdditiveIdentity<A>
Interfaces with method Invoke: A x B -> bool
IAreEqual<A, B>
Interfaces with method Invoke: A -> string
IToString<A>
Interfaces with method Invoke: A -> byte[]
ISerialize<A>
Interfaces with method Invoke: byte[] -> A
IDeserialize<A>
Tensor
The main type where all these methods will be is Tensor (but not Tensor<T>!).
Composition
static Tensor<T> Concat<T>(params Tensor<T>[] ts, int axis = -1);
byte[] Serialize<T, TSerializer>() where TSerializer : ISerialize<T>;
Tensor<T> Slice<T>(params Either<int, Index, Range>[] dims);
static Tensor<T> Stack<T>(params Tensor<T>[] ts);
Tensor<T> Transpose<T>(Tensor<T> a);
Tensor<T> Transpose<T>(Tensor<T> a, int axis1, int axis2);
void TransposeInplace(Tensor<T> a);
void TransposeInplace(Tensor<T> a, int axis1, int axis2);
Math operations
...
Elementwise:
void AddPointwise<A, B, C, TAdder>(Tensor<A> a, Tensor<B> b, Tensor<C> destination) where TAdder : struct, IAdder<A, B, C>;
Tensor<C> AddPointwise<A, B, C, TAdder>(Tensor<A> a, Tensor<B> b) where TAdder : struct, IAdder<A, B, C>;
- 主要语言
- C#
- 星标
- 52
- 派生
- 6
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
ASC-Community/GenericTensor 的其他 Issue
-
Determinant and Inverse return wrong values when called from more than one thread可能已有人在做 @Rafael-SOWNet 于 33 天前认领。 未关闭
难度 4/5 3-5 天 新手友好度 35/100
-
good first issue
难度 4/5 3-5 天 新手友好度 25/100
-
proposal
难度 4/5 3-5 天 新手友好度 35/100
ASC-Community/GenericTensor#36 · 1 条评论 ·
-
Will this package support MKL or OpenBlas as backend to accelerate matrix inverse computing speed未关闭
难度 5/5 一周以上 新手友好度 25/100
ASC-Community/GenericTensor#30 · 1 条评论 ·
-
难度 5/5 一周以上 新手友好度 20/100
ASC-Community/GenericTensor#29 · 1 条评论 ·
查看 ASC-Community/GenericTensor 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 86/100
维护者通常 1 天内回复
-
question
难度 2/5 1-3 小时 新手友好度 68/100
-
代理地址输入框的示例提示容易被误认为已配置代理可能已有人在做 @jay23606 今天认领。 未关闭bug
难度 1/5 1-3 小时 新手友好度 78/100
kookxiang/jellyfin-plugin-bangumi#297 ·
维护者通常 1 天内回复
-
A numeric literal is parsed in the host's culture, so 1.5 is 15 in a made EXE on a comma-decimal OS未关闭bug interpreter silently-wrong small
难度 2/5 1-3 小时 新手友好度 83/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复