From 5f4956063f7bde803825712b09656280c53cc6ac Mon Sep 17 00:00:00 2001 From: Klaus Crusius Date: Mon, 25 Dec 2017 03:30:43 +0100 Subject: [PATCH] add Adjoint/Transpose(::Char). fix #25252 --- base/linalg/adjtrans.jl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/base/linalg/adjtrans.jl b/base/linalg/adjtrans.jl index 6d7b56aa89fe8..899e1a2767852 100644 --- a/base/linalg/adjtrans.jl +++ b/base/linalg/adjtrans.jl @@ -47,6 +47,8 @@ Transpose(A) = Transpose{transformtype(Transpose,eltype(A)),typeof(A)}(A) # numbers are the end of the line Adjoint(x::Number) = adjoint(x) Transpose(x::Number) = transpose(x) +Adjoint(x::Char) = x +Transpose(x::Char) = x # unwrapping constructors Adjoint(A::Adjoint) = A.parent