@@ -9,8 +9,8 @@ The standard way of constructing `SparseMatrixCSR` is through the
99
1010# Properties
1111
12- - `m::Int` Number of columns
13- - `n::Int` Number of rows
12+ - `m::Int` Number of rows
13+ - `n::Int` Number of columns
1414- `rowptr::Vector{Ti}` Row `i` (1-based) in `nzval` vector at indices (1-based) `(rowptr[i]+(1-Bi)):(rowptr[i+1]+(1-Bi)-1)`
1515- `colval::Vector{Ti}` Col indices (`Bi`-based) of stored values
1616- `nzval::Vector{Tv}` Stored values, typically non zeros
@@ -35,8 +35,8 @@ struct SparseMatrixCSR{Bi,Tv,Ti} <: AbstractSparseMatrix{Tv,Ti}
3535 nzval:: Vector{Tv} ) where {Bi,Tv,Ti<: Integer }
3636 @noinline throwsz (str, k, r) =
3737 throw (ArgumentError (" $str must be $r , got $k " ))
38- m < 0 && throwsz (" m" ," >=0" ,m )
39- n < 0 && throwsz (" n" ," >=0" , n )
38+ m < 0 && throwsz (" m" , m, " >=0" )
39+ n < 0 && throwsz (" n" , n, " >=0" )
4040 length (rowptr) != m+ 1 && throwsz (" length(rowptr)" ,m+ 1 ,length (rowptr))
4141 rowptr[end ]- Bi != length (nzval) && throwsz (" rowptr[end]-Bi" ,rowptr[m+ 1 ]- Bi, length (nzval))
4242 new {Bi,Tv,Ti} (Int (m), Int (n), rowptr, colval, nzval)
0 commit comments