Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion gorqflow/playtools/_math.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import numpy as np


def add_one(x: int) -> int:
"""Add one to an integer

Expand Down Expand Up @@ -33,4 +36,11 @@ def power(base: int | float, exponent: int | float) -> float:


def sqrt(x: int | float) -> float:
return x ** 0.5
return x ** 0.5

def numpy_add(a: np.ndarray, b: np.ndarray) -> np.ndarray:
return a + b


def numpy_mul(a: np.ndarray, b: np.ndarray) -> np.ndarray:
return a * b
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ sources = [
[project]
name = "gorqflow"
dynamic = ["version"]
dependencies = []
dependencies = [
"numpy"
]
requires-python = ">=3.11"
authors = [
{ name = "Matej Murin", email = "matejmurin01@gmail.com" }
Expand Down
Loading