mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-29 12:24:45 +00:00
Update __init__.d.er
This commit is contained in:
parent
f4e1d494a4
commit
a690e0b61a
1 changed files with 6 additions and 0 deletions
|
@ -9,6 +9,10 @@
|
||||||
ndim: Nat
|
ndim: Nat
|
||||||
dtype: Type
|
dtype: Type
|
||||||
size: Nat
|
size: Nat
|
||||||
|
reshape: |T, Old: [Nat; _], S: [Nat; _]|(
|
||||||
|
self: .NDArray(T, Old),
|
||||||
|
shape: {S},
|
||||||
|
) -> .NDArray(T, S)
|
||||||
|
|
||||||
.nan: Float
|
.nan: Float
|
||||||
.Nan: Float
|
.Nan: Float
|
||||||
|
@ -29,3 +33,5 @@
|
||||||
.sum: |T|(object: .NDArray(T),) -> T
|
.sum: |T|(object: .NDArray(T),) -> T
|
||||||
.sqrt: |T|(object: .NDArray(T),) -> .NDArray(T)
|
.sqrt: |T|(object: .NDArray(T),) -> .NDArray(T)
|
||||||
.transpose: |T|(object: .NDArray(T), axes := [Nat; _]) -> .NDArray(T)
|
.transpose: |T|(object: .NDArray(T), axes := [Nat; _]) -> .NDArray(T)
|
||||||
|
.zeros: (|N: Nat|(shape: {N}, dtype := Type) -> .NDArray(Nat, [N])) \
|
||||||
|
and (|S: [Nat; _]|(shape: {S}, dtype := Type) -> .NDArray(Nat, S))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue