Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add adjoint(::Missing) method #25502

Merged
merged 1 commit into from
Mar 2, 2018
Merged

Add adjoint(::Missing) method #25502

merged 1 commit into from
Mar 2, 2018

Conversation

quinnj
Copy link
Member

@quinnj quinnj commented Jan 11, 2018

No description provided.

@ararslan ararslan added linear algebra Linear algebra missing data Base.missing and related functionality needs tests Unit tests are required for this change labels Jan 11, 2018
Copy link
Member

@fredrikekre fredrikekre left a comment

Choose a reason for hiding this comment

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

Test?

@andyferris
Copy link
Member

Would be good to also test that we infer the element type well, eg eltype(adjoint([1, missing])) == Union{Int, Missing} or something.

base/missing.jl Outdated
@@ -65,7 +65,7 @@ for f in (:(!), :(+), :(-), :(identity), :(zero), :(one), :(oneunit),
:(log2), :(exponent), :(sqrt), :(gamma), :(lgamma),
:(iseven), :(ispow2), :(isfinite), :(isinf), :(isodd),
:(isinteger), :(isreal), :(isnan), :(isempty),
:(iszero), :(transpose), :(float))
:(iszero), :(transpose), :(adjoint), :(float))
@eval Math.$(f)(::Missing) = missing
Copy link
Member

Choose a reason for hiding this comment

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

adjoint isn't defined in Base.Math.

@JeffBezanson
Copy link
Member

Bump.

@nalimilan
Copy link
Member

Re-bump.

@ararslan ararslan removed the needs tests Unit tests are required for this change label Mar 2, 2018
@ararslan
Copy link
Member

ararslan commented Mar 2, 2018

I hope you don't mind, Jacob, I rebased your branch against master and added tests.

@quinnj
Copy link
Member Author

quinnj commented Mar 2, 2018

of course not :)

@andreasnoack andreasnoack merged commit df489f0 into master Mar 2, 2018
@martinholters martinholters deleted the jq/adjoint branch March 2, 2018 07:24
mbauman added a commit that referenced this pull request Mar 5, 2018
…luenonscalarindexedassignment

* origin/master: (28 commits)
  fix an optimizer bug in `invoke` with non-constant functions (#26301)
  lower top-level statements in such a way that the front-end knows (#26304)
  Make sure Sockets page has h1 header (#26315)
  fix doctests, and make them less prone to errors (#26275)
  FIx intro to manual chapter on types (#26312)
  Add a missing "that" (#26313)
  fix docstring for code_llvm (#26266)
  Remove the examples/ folder (#26153)
  download cert.pem from deps-getall, fixes #24903 (#25344)
  Slight update to doc string for at-enum to refer to instances (#26208)
  performance tweak in reverse(::String) (#26300)
  remove references to `TCPSocket` in Base docstrings (#26298)
  Deprecate adding integers to CartesianIndex (#26284)
  Deprecate conj(::Any), add real(::Missing) and imag(::Missing) (#26288)
  fix #26267, regression in `names` with `imported=false` (#26293)
  fix #25857, `typeinfo` problem in showing arrays with abstract tuple types (#26289)
  Add adjoint(::Missing) method (#25502)
  Use lowered form in logging macro (#26291)
  deprecate bin, oct, dec, hex, and base in favor of `string` and keyword args (#25804)
  deprecate `spawn(cmd)` to `run(cmd, wait=false)` (#26130)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
linear algebra Linear algebra missing data Base.missing and related functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants