mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-28 20:14:45 +00:00
feat: add HasScalarType
This commit is contained in:
parent
d232acc3e4
commit
e5c8f177ba
7 changed files with 136 additions and 4 deletions
|
@ -69,7 +69,7 @@
|
|||
.all: |T <: Num|(object: .NDArray(T),) -> Bool
|
||||
.any: |T <: Num|(object: .NDArray(T),) -> Bool
|
||||
.arange: |T <: Num|(start: T, stop := T, step := T) -> .NDArray(T)
|
||||
.array: |T, S: [Nat; _]|(object: Iterable(T) and HasShape(S),) -> .NDArray(T, S)
|
||||
.array: |T, S: [Nat; _]|(object: HasScalarType(T) and HasShape(S),) -> .NDArray(T, S)
|
||||
.linspace: |T <: Num|(start: T, stop: T, num := Nat, endpoint := Bool, retstep := Bool, dtype := Type, axis := Nat) -> .NDArray(T)
|
||||
.max: |T <: Num|(object: .NDArray(T),) -> T
|
||||
.mean: |T <: Num|(object: .NDArray(T),) -> T
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue