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 39cde12 commit 196dc7cCopy full SHA for 196dc7c
src/utils.jl
@@ -1,17 +1,6 @@
1
#
2
-""" use Base.ReshapedArray """
3
-_reshape(a, dims::NTuple{D,Int}) where{D} = reshape(a,dims)
4
-#_reshape(a::ReshapedArray, dims::NTuple{D,Int}) where{D} = _reshape(a.parent, dims)
5
-#
6
-#function _reshape(a::AbstractArray, dims::NTuple{D,Int}) where{D}
7
-# @assert prod(dims) == length(a) "cannot reshape array of size $(size(a)) to size $dims"
8
-# dims == size(a) && return a
9
-# ReshapedArray(a, dims, ())
10
-#end
11
-
12
_vec(a) = vec(a)
13
-#_vec(a::AbstractVector) = a
14
-#_vec(a::AbstractArray) = _reshape(a,(length(a),))
+_reshape(a, dims::NTuple{D,Int}) where{D} = reshape(a, dims)
15
16
function _mat_sizes(L::AbstractSciMLOperator, u::AbstractArray)
17
m, n = size(L)
0 commit comments