From 94844a9f59793e238cf835df8f4a497559981d94 Mon Sep 17 00:00:00 2001 From: Maxence Gollier Date: Sat, 21 Dec 2024 15:32:56 +0100 Subject: [PATCH] make struct SparseMatrixCOO immutable --- src/coo_types.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coo_types.jl b/src/coo_types.jl index 07b7caf..11c4509 100644 --- a/src/coo_types.jl +++ b/src/coo_types.jl @@ -7,7 +7,7 @@ Supertype for matrix in sparse coordinate format (COO). """ abstract type AbstractSparseMatrixCOO{Tv, Ti <: Integer} <: AbstractSparseMatrix{Tv, Ti} end -mutable struct SparseMatrixCOO{Tv, Ti <: Integer} <: AbstractSparseMatrixCOO{Tv, Ti} +struct SparseMatrixCOO{Tv, Ti <: Integer} <: AbstractSparseMatrixCOO{Tv, Ti} m::Int n::Int rows::Vector{Ti}