From 726c49cc02f9562ed02cd4cbbf57315e5cf29089 Mon Sep 17 00:00:00 2001 From: Helios De Rosario Date: Sat, 12 Jan 2019 00:03:22 +0100 Subject: [PATCH] == and != operators (#36) --- src/matrices.jl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/matrices.jl b/src/matrices.jl index bfb0d66..4769691 100644 --- a/src/matrices.jl +++ b/src/matrices.jl @@ -128,6 +128,11 @@ begin end end end + +for operator in [:(==), :(!=)] + @eval Base.$operator(x::ARM, y::ARM) = $operator(x.data, y.data) +end + LinearAlgebra.issymmetric(::RecurrenceMatrix) = true # column values in sparse matrix (parallel to rowvals) function colvals(x::SparseMatrixCSC)