Skip to content
This repository has been archived by the owner on Dec 22, 2018. It is now read-only.

stat: use the updated decomposition extraction API #170

Closed
wants to merge 1 commit into from

Conversation

kortschak
Copy link
Member

I have left the CC methods Left and Right as they are rather than renaming to LeftTo and RightTo, which they probably should be changed to.

@btracey @vladimir-ch Please take a look.

Depends on gonum/matrix#436.

Copy link
Member

@vladimir-ch vladimir-ch left a comment

Choose a reason for hiding this comment

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

Will you rename Right and Left? There are also other candidates to follow the same pattern, and also on PC

} else if d, n := dst.Dims(); (n != 0 || d != 0) && (d != c.d || n != min(c.n, c.d)) {
panic(matrix.ErrShape)
if dst != nil {
if d, n := dst.Dims(); (n != 0 || d != 0) && (d != c.d || n != min(c.n, c.d)) {
Copy link
Member

Choose a reason for hiding this comment

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

Split this into two lines?

Copy link
Member Author

Choose a reason for hiding this comment

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

:) This is an intentionally left sore to provoke the exporting of IsZero in mat64.

} else if d, n := dst.Dims(); (n != 0 || d != 0) && (n != c.yd || d != c.xd) {
panic(matrix.ErrShape)
if dst != nil {
if d, n := dst.Dims(); (n != 0 || d != 0) && (n != c.yd || d != c.xd) {
Copy link
Member

Choose a reason for hiding this comment

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

Also here?

} else if d, n := dst.Dims(); (n != 0 || d != 0) && (n != c.yd || d != c.yd) {
panic(matrix.ErrShape)
if dst != nil {
if d, n := dst.Dims(); (n != 0 || d != 0) && (n != c.yd || d != c.yd) {
Copy link
Member

Choose a reason for hiding this comment

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

And here?

@kortschak
Copy link
Member Author

I left Left and Right etc, but think they probably should change. What do you think?

@btracey
Copy link
Member

btracey commented Mar 25, 2017

Yea, I think they should change. Consistent naming is best for everyone.

Also propagate the `dst := x.PTo(y)` idiom to stat.
@kortschak
Copy link
Member Author

This has been done in gonum/gonum.

@kortschak kortschak closed this Jun 21, 2017
@kortschak
Copy link
Member Author

Ooops. No it hasn't.

@btracey
Copy link
Member

btracey commented Dec 19, 2017

It looks like this happened in the other repo.

@btracey btracey closed this Dec 19, 2017
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.

None yet

3 participants