Skip to content

Conversation

@rvs314
Copy link

@rvs314 rvs314 commented May 17, 2022

This fixes #165 by declaiming the aliases as functions so that the compiler doesn't emit a style warning.

@stylewarning stylewarning self-requested a review June 3, 2022 19:32
Copy link
Member

@stylewarning stylewarning left a comment

Choose a reason for hiding this comment

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

this PR is a little superfluous now because the issue has been fixed in another way. It should still be valuable to make these DECLAIMs but I think using t instead of matrix is preferred.

(tref matrix i j))))
target))))
;;; Synonym for upper-triangular
(declaim (ftype (function (matrix)) triu))
Copy link
Member

Choose a reason for hiding this comment

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

these aren't necessarily matrix functions, just the implementation provided is

Copy link
Author

Choose a reason for hiding this comment

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

If these were to be replaced with t, would that impair any optimizations?

Copy link
Member

Choose a reason for hiding this comment

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

I don't think so. There's a lot of indirection already.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

undefined function warning: DAGGER

2 participants