Skip to content

Commit b40c73d

Browse files
authored
Merge pull request #38 from gridap/typos
Minor fixes in documentation and error messages
2 parents 2568f56 + aca0571 commit b40c73d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/SparseMatrixCSR.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)