I think we have the first function name for MatlabPuns.jl
:
export goodbeye
function goodbeye(m::Integer)
return Matrix{Float64}(I, m, m)
end
function goodbeye(::Type{T}, m::Integer) where T
return Matrix{T}(I, m, m)
end
function goodbeye(m::Integer, n::Integer)
return Matrix{Float64}(I, m, n)
end
function goodbeye(::Type{T}, m::Integer, n::Integer) where T
return Matrix{T}(I, m, n)
end
function goodbeye(A::AbstractMatrix{T}) where T
return Matrix(one(T)I, size(A))
end
function goodbeye(::Type{Diagonal{T}}, n::Int) where T
return Diagonal{T}(I, n)
end
Hmm, what others would work?
linspace
→linspacedout
diagm
→diagmeh
flipdim
→flippingoutdim
eig
→whyohwhyg
sum(A, n)
→dimsum(A, n)
… actually that last one kind of makes sense…