[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 於 38 天前認領。 未關閉
難度 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
-
難度 2/5 1-3 小時 新手友好度 78/100
sebastienros/jint#4282 ·
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 76/100
pyrevitlabs/pyRevit#3792 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 60/100
維護者通常 1 天內回覆
-
area: design documentation
難度 2/5 1-3 小時 新手友好度 76/100
eyalgolan/statecraft-israel#883 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 76/100
維護者通常 3 天內回覆