We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d50e86 commit fa4494cCopy full SHA for fa4494c
Project.toml
@@ -1,6 +1,6 @@
1
name = "FillArrays"
2
uuid = "1a297f60-69ca-5386-bcde-b61e274b549b"
3
-version = "1.6.1"
+version = "1.6.2"
4
5
[deps]
6
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
src/FillArrays.jl
@@ -5,7 +5,7 @@ using LinearAlgebra
import Base: size, getindex, setindex!, IndexStyle, checkbounds, convert,
+, -, *, /, \, diff, sum, cumsum, maximum, minimum, sort, sort!,
7
any, all, axes, isone, iterate, unique, allunique, permutedims, inv,
8
- copy, vec, setindex!, count, ==, reshape, _throw_dmrs, map, zero,
+ copy, vec, setindex!, count, ==, reshape, map, zero,
9
show, view, in, mapreduce, one, reverse, promote_op, promote_rule, repeat,
10
parent, similar, issorted
11
@@ -252,6 +252,9 @@ end
252
253
svdvals!(a::AbstractFillMatrix) = [getindex_value(a)*sqrt(prod(size(a))); Zeros(min(size(a)...)-1)]
254
255
+@noinline function _throw_dmrs(n, str, dims)
256
+ throw(DimensionMismatch("parent has $n elements, which is incompatible with $str $dims"))
257
+end
258
function fill_reshape(parent, dims::Integer...)
259
n = length(parent)
260
prod(dims) == n || _throw_dmrs(n, "size", dims)
0 commit comments