Skip to content

Rename ctranspose to adjoint#23235

Merged
andreasnoack merged 5 commits into
masterfrom
ajf/adjoint
Aug 22, 2017
Merged

Rename ctranspose to adjoint#23235
andreasnoack merged 5 commits into
masterfrom
ajf/adjoint

Conversation

@andyferris

Copy link
Copy Markdown
Member

Just to prove exactly how seriously we take transposes, we need to rename one of them.

Part of JuliaLang/LinearAlgebra.jl#408. This one was simple find-replace (so far).

Comment thread NEWS.md Outdated
instead ([#23187]).

* `ctranspose` and `ctranspose!` have been deprecated in favor of `adjoint` and `adjoint!`,
respectively.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add the pull request number? :)

Comment thread base/deprecated.jl Outdated

# PR #23235
@deprecate ctranspose adjoint
@deprecate ctranspose! adjoint

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing !?

Comment thread test/operators.jl Outdated
@test (⊻)(2) == 2

# @test ctranspose('a') == 'a' # (c)transpose of Chars no longer supported
# @test adjoint('a') == 'a' # (c)transpose of Chars no longer supported

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps update the comment as well?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm... I think we can delete this now.

(I have an upcoming PR which will let us transpose arrays of Chars and Strings and so-on, so the context of this whole line will be rather out-of-date.)

@Sacha0 Sacha0 added deprecation This change introduces or involves a deprecation linear algebra Linear algebra labels Aug 13, 2017
@Sacha0 Sacha0 added this to the 1.0 milestone Aug 13, 2017
@Sacha0 Sacha0 added the maths Mathematical functions label Aug 13, 2017
@andyferris

Copy link
Copy Markdown
Member Author

Any more comments or any detractors before I merge this?

(I just realized we should probably rename A_mul_Bc to A_mul_Ba etc, but I won't do that because we plan to remove these entirely in this release cycle.)

@StefanKarpinski

Copy link
Copy Markdown
Member

Let's give it a bit more time since this has only been open for half a day on a weekend. I don't imagine there being much controversy here, however.

@andyferris

Copy link
Copy Markdown
Member Author

Something went funky with the linux tests

@StefanKarpinski

Copy link
Copy Markdown
Member

Restarted them.

@StefanKarpinski

Copy link
Copy Markdown
Member

Bump – rebase. That Linux issue should be resolved now.

@ViralBShah

Copy link
Copy Markdown
Member

cc @alanedelman

@andyferris

Copy link
Copy Markdown
Member Author

Thanks @andreasnoack (I'm travelling ATM).

The test errors appear unrelated and oddly spurious... one inference failure for RowVector and test failure one in codegen, but only on specific builds.

@andreasnoack
andreasnoack merged commit df9b1b0 into master Aug 22, 2017
@andreasnoack
andreasnoack deleted the ajf/adjoint branch August 22, 2017 00:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

deprecation This change introduces or involves a deprecation linear algebra Linear algebra maths Mathematical functions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants