Skip to content

Commit 196dc7c

Browse files
committed
rm comments
1 parent 39cde12 commit 196dc7c

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

src/utils.jl

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,6 @@
11
#
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-
122
_vec(a) = vec(a)
13-
#_vec(a::AbstractVector) = a
14-
#_vec(a::AbstractArray) = _reshape(a,(length(a),))
3+
_reshape(a, dims::NTuple{D,Int}) where{D} = reshape(a, dims)
154

165
function _mat_sizes(L::AbstractSciMLOperator, u::AbstractArray)
176
m, n = size(L)

0 commit comments

Comments
 (0)