Skip to content
This repository was archived by the owner on Jul 1, 2023. It is now read-only.

[Linear Algebra] Trace operator #586

Merged
merged 14 commits into from
Dec 20, 2019
Merged

[Linear Algebra] Trace operator #586

merged 14 commits into from
Dec 20, 2019

Conversation

awav
Copy link
Contributor

@awav awav commented Dec 19, 2019

The PR adds trace linear operator #562.

Copy link
Contributor

@saeta saeta left a comment

Choose a reason for hiding this comment

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

This looks really great! Thank you @awav .

@eaplatanios
Copy link
Contributor

Thanks @awav! You could also add the preconditions in the doc string using - Precondition:. We have not been consistent in doing that so far, but I think it helps to have them there.

- Remove `scalar` typealias for consistency with other tests.
- Avoid explicit `TensorShape` initialization.
- Avoid explicit `Tensor` generic parameter.
- Use idiomatic collection indexing APIs.
dan-zheng and others added 7 commits December 19, 2019 11:50
Add precondition comment.
Use consistent wording with doc comment for `cholesky`.
Todo: further improve doc comment consistency.
Removed main diagonal definition clarification, since main diagonal is
well-defined for non-square matrices.
Copy link
Member

@dan-zheng dan-zheng left a comment

Choose a reason for hiding this comment

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

Thanks for adding a non-square matrix test!

@saeta saeta merged commit eebb487 into tensorflow:master Dec 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants