Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 7b0de64

Browse files
author
Andy Ferris
committedSep 15, 2017
Bugfix
1 parent bebf831 commit 7b0de64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎base/linalg/adjoint.jl‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Conceptually, this is intended create the "dual vector" of `v` (note however tha
1212
is strictly an `AbstractMatrix`). Note also that the output is a view of `v`.
1313
"""
1414
@inline adjoint(vec::AbstractVector) = RowVector(_map(adjoint, vec))
15-
@inline adjoint(rowvec::RowVector) = _adjoint(parent(rowvec))
15+
@inline adjoint(rowvec::RowVector) = _map(adjoint, parent(rowvec))
1616

1717
"""
1818
adjoint(m::AbstractMatrix)
@@ -22,7 +22,7 @@ recursively to the elements.
2222
"""
2323
function adjoint(a::AbstractMatrix)
2424
(ind1, ind2) = indices(a)
25-
b = similar(a, adjoint_type(eltype(a)), (ind2, ind1))
25+
b = similar(a, promote_op(adjoint, eltype(a)), (ind2, ind1))
2626
adjoint!(b, a)
2727
end
2828

0 commit comments

Comments
 (0)
Please sign in to comment.