@@ -93,9 +93,11 @@ Create a `SparseMatrixCSR` with `Bi`-based indexing (1 by default)
9393from the same `args...` as one constructs a `SparseMatrixCSC`
9494with the [`SparseArrays.sparse`](@extref) function.
9595"""
96+ sparsecsr (A:: AbstractMatrix{T} ) where T = convert (SparseMatrixCSR{1 ,T,Int64}, A)
9697sparsecsr (I,J,V) = SparseMatrixCSR (transpose (sparse (J,I,V,dimlub (J),dimlub (I))))
9798sparsecsr (I,J,V,m,n) = SparseMatrixCSR (transpose (sparse (J,I,V,n,m)))
9899sparsecsr (I,J,V,m,n,combine) = SparseMatrixCSR (transpose (sparse (J,I,V,n,m,combine)))
100+ sparsecsr (:: Val{Bi} ,A:: AbstractMatrix{T} ) where {Bi,T} = convert (SparseMatrixCSR{Bi,T,Int64}, A)
99101sparsecsr (:: Val{Bi} ,I,J,V) where Bi = SparseMatrixCSR {Bi} (transpose (sparse (J,I,V,dimlub (J),dimlub (I))))
100102sparsecsr (:: Val{Bi} ,I,J,V,m,n) where Bi = SparseMatrixCSR {Bi} (transpose (sparse (J,I,V,n,m)))
101103sparsecsr (:: Val{Bi} ,I,J,V,m,n,combine) where Bi = SparseMatrixCSR {Bi} (transpose (sparse (J,I,V,n,m,combine)))
0 commit comments