|
24 | 24 | $(TYPEDSIGNATURES) |
25 | 25 |
|
26 | 26 | Create empty ExtendablSparseMatrix. |
| 27 | +""" |
| 28 | +function ExtendableSparseMatrix{Tv,Ti}(m::Integer, n::Integer) where{Tv,Ti<:Integer} |
| 29 | + ExtendableSparseMatrix{Tv,Ti}(spzeros(Tv,Ti,m,n),nothing) |
| 30 | +end |
| 31 | + |
| 32 | +""" |
| 33 | +$(TYPEDSIGNATURES) |
| 34 | +
|
| 35 | +Create empty ExtendablSparseMatrix. |
| 36 | +""" |
| 37 | +function ExtendableSparseMatrix(::Type{Tv},::Type{Ti},m::Integer, n::Integer) where{Tv,Ti<:Integer} |
| 38 | + ExtendableSparseMatrix{Tv,Ti}(m,n) |
| 39 | +end |
| 40 | + |
| 41 | +""" |
| 42 | +$(TYPEDSIGNATURES) |
| 43 | +
|
| 44 | +Create empty ExtendablSparseMatrix. |
| 45 | +This is a pendant to spzeros. |
| 46 | +""" |
| 47 | +ExtendableSparseMatrix(::Type{Tv},m::Integer, n::Integer) where{Tv}=ExtendableSparseMatrix{Tv,Int}(m,n) |
| 48 | + |
| 49 | + |
| 50 | +""" |
| 51 | +$(TYPEDSIGNATURES) |
27 | 52 |
|
| 53 | +Create empty ExtendablSparseMatrix. |
28 | 54 | This is a pendant to spzeros. |
29 | 55 | """ |
30 | | -ExtendableSparseMatrix{Tv,Ti}(m::Integer, n::Integer) where{Tv,Ti<:Integer}=ExtendableSparseMatrix{Tv,Ti}(spzeros(Tv,Ti,m,n),nothing) |
| 56 | +ExtendableSparseMatrix(m::Integer, n::Integer)=ExtendableSparseMatrix{Float64,Int}(m,n) |
| 57 | + |
| 58 | + |
| 59 | +""" |
| 60 | +$(TYPEDSIGNATURES) |
| 61 | +
|
| 62 | + Create ExtendablSparseMatrix from sparse matrix |
| 63 | +""" |
| 64 | +function ExtendableSparseMatrix(M::SparseMatrixCSC{Tv,Ti}) where{Tv,Ti<:Integer} |
| 65 | + return ExtendableSparseMatrix{Tv,Ti}(M, nothing) |
| 66 | +end |
| 67 | + |
| 68 | + |
31 | 69 |
|
32 | 70 |
|
33 | 71 | """ |
|
0 commit comments