Comments (5)
Is this ok:
promote_rule(::Type{SparseMatrixCSC{T1,S1}},::Type{SparseMatrixCSC{T2,S2}}) where {T1,T2,S1,S2} = SparseMatrixCSC{promote_type(T1,T2),promote_type(S1,S2)}
from sparsearrays.jl.
from sparsearrays.jl.
Does JuliaLang/julia#22757 fix this problem?
from sparsearrays.jl.
I have been using the following locally:
promote_rule{T1,T2,S1,S2}(::Type{SparseMatrixCSC{T1,S1}},::Type{SparseMatrixCSC{T2,S2}}) = SparseMatrixCSC{promote_type(T1,T2),promote_type(S1,S2)}
promote_rule{T1,S1,T2,S2<:AbstractMatrix{T2}}(::Type{SparseMatrixCSC{T1,S1}},::Type{S2}) = Matrix{promote_type(T1,T2)}
promote_rule{T1,S1,T2,S2<:AbstractMatrix{T2}}(::Type{S2},::Type{SparseMatrixCSC{T1,S1}}) = Matrix{promote_type(T1,T2)}
should I make a PR?
from sparsearrays.jl.
Revisiting old sparse issues. This does need the PR.
from sparsearrays.jl.
Related Issues (20)
- `sum` init arg ignored for 1xN sparse arrays HOT 1
- Test failure with METIS ordering in SPQR tests HOT 1
- Updates necessary for SuiteSparse 7 HOT 3
- `nonzeros` for SubArray returns values of parent array
- New method for `sum` for `SubArray` of `SparseMatrix`
- vcat does not handle numbers correctly HOT 3
- spzeros(T, n) allocates HOT 3
- wrong representation (show) of sparse matrix with zero rows and columns
- Julia 1.9.0 doesn't drop zeros when assigning to a sparse array only when the elements are Big HOT 13
- `swapcols!` is wrong on sparse matrices HOT 1
- SparseArrays/spqr.jl:90 numeric failure on CI HOT 1
- Inconsisten concatenation results HOT 1
- `show` doesn't print a compact representation of `J`
- Displayed form for vectors of sparse vectors may be improved HOT 3
- copyto! with a sparse view and sparse vector defaults to slow fallback
- Subarrays of sparse should operate like sparse
- OutOfMemoryError on lu decompositions HOT 5
- allocation with v.="x"on SparseArrays HOT 4
- strange method definition overwritten WARNING in tests HOT 3
- Solving a system of linear equations `A\b` uses up more memory when `A` is sparse then when `A` is dense HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sparsearrays.jl.