We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
spdiagm
Would be lovely to have so that one could more easily experiment across CSC/CSR
The text was updated successfully, but these errors were encountered:
spdiagm(kv::Pair{<:Integer,<:AbstractVector}...) = _spdiagm(nothing, kv...) spdiagm(m::Integer, n::Integer, kv::Pair{<:Integer,<:AbstractVector}...) = _spdiagm((Int(m),Int(n)), kv...) spdiagm(v::AbstractVector) = _spdiagm(nothing, 0 => v) spdiagm(m::Integer, n::Integer, v::AbstractVector) = _spdiagm((Int(m), Int(n)), 0 => v) function _spdiagm(size, kv::Pair{<:Integer,<:AbstractVector}...) I, J, V, mmax, nmax = SparseArrays.spdiagm_internal(kv...) mnmax = max(mmax, nmax) m, n = something(size, (mnmax,mnmax)) (m ≥ mmax && n ≥ nmax) || throw(DimensionMismatch("invalid size=$size")) return sparsecsr(I, J, V, m, n) end
Seems to be okay
Sorry, something went wrong.
No branches or pull requests
Would be lovely to have so that one could more easily experiment across CSC/CSR
The text was updated successfully, but these errors were encountered: