Skip to content

Commit 726c49c

Browse files
heliosdrmDatseris
authored andcommitted
== and != operators (#36)
1 parent 8f4b5ee commit 726c49c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/matrices.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,11 @@ begin
128128
end
129129
end
130130
end
131+
132+
for operator in [:(==), :(!=)]
133+
@eval Base.$operator(x::ARM, y::ARM) = $operator(x.data, y.data)
134+
end
135+
131136
LinearAlgebra.issymmetric(::RecurrenceMatrix) = true
132137
# column values in sparse matrix (parallel to rowvals)
133138
function colvals(x::SparseMatrixCSC)

0 commit comments

Comments
 (0)