Skip to content

Commit 12f1d92

Browse files
authored
unrestrict type of matrix elements (#26)
1 parent 60fce59 commit 12f1d92

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/pcsr.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
Matrix whose columns are indexed by an integer.
33
"""
4-
mutable struct PackedCSC{K,T<:Real}
4+
mutable struct PackedCSC{K,T}
55
nb_partitions::Int
66
semaphores::Vector{Union{Nothing, Int}} # pos of the semaphore in the pma
77
#nb_elements_in_partition::Vector{Int} # nb elements after each semaphore
@@ -11,7 +11,7 @@ end
1111
"""
1212
Matrix
1313
"""
14-
mutable struct MappedPackedCSC{K,L,T<:Real}
14+
mutable struct MappedPackedCSC{K,L,T}
1515
col_keys::Vector{Union{Nothing, L}} # the position of the key is the position of the column
1616
pcsc::PackedCSC{K,T}
1717
end

src/views.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# We can get only a column of the dynamic matrix.
22
# Only usefull to iterate on a column of the dynamic matrix
3-
struct DynamicMatrixColView{K,L,T<:Real}
3+
struct DynamicMatrixColView{K,L,T}
44
mpcsc::MappedPackedCSC{K,L,T}
55
col_key::L
66
partition::Int

0 commit comments

Comments
 (0)