Skip to content

Commit 5b04851

Browse files
committed
Minor updates
1 parent 5018210 commit 5b04851

File tree

2 files changed

+24
-3
lines changed

2 files changed

+24
-3
lines changed

.github/workflows/continuous-integration.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ jobs:
693693
name: Trigger Documentation Build
694694
needs: [ compile, build-docs, quodona, code-coverage ]
695695
runs-on: ubuntu-latest
696-
if: github.event_name != 'pull_request'
696+
if: github.event_name == 'push'
697697
steps:
698698
- name: Checkout LibRapid
699699
uses: actions/checkout@v4

librapid/bindings/generators/arrayGenerator.py

+23-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
# The set of Array types we support in Python
1010
arrayTypes = []
1111

12-
for scalar in [("int16_t", "Int16"),
13-
("int32_t", "Int32"),
12+
for scalar in [("int32_t", "Int32"),
1413
("int64_t", "Int64"),
1514
("float", "Float"),
1615
("double", "Double"),
@@ -112,6 +111,28 @@ def generateFunctionsForArray(config):
112111
]
113112
),
114113

114+
# Addition
115+
function.Function(
116+
name="__add__",
117+
args=[
118+
argument.Argument(
119+
name="self",
120+
type=generateCppArrayType(config),
121+
const=True,
122+
ref=True
123+
),
124+
argument.Argument(
125+
name="other",
126+
type=generateCppArrayType(config),
127+
const=True,
128+
ref=True
129+
)
130+
],
131+
op="""
132+
return (self + other).eval();
133+
"""
134+
),
135+
115136
# String representation
116137
function.Function(
117138
name="__str__",

0 commit comments

Comments
 (0)