Skip to content

Comments

Add INLINE or INLINABLE pragmas to all storable ranked code#19

Merged
Mikolaj merged 8 commits intoaugustss:masterfrom
Mikolaj:inlineable
Feb 15, 2026
Merged

Add INLINE or INLINABLE pragmas to all storable ranked code#19
Mikolaj merged 8 commits intoaugustss:masterfrom
Mikolaj:inlineable

Conversation

@Mikolaj
Copy link
Collaborator

@Mikolaj Mikolaj commented Dec 25, 2025

and perform some other tweaks and fixes.

@Mikolaj Mikolaj force-pushed the inlineable branch 2 times, most recently from cdd0ce0 to a2aa587 Compare December 26, 2025 00:11
@Mikolaj Mikolaj marked this pull request as draft December 26, 2025 00:28
@Mikolaj Mikolaj marked this pull request as ready for review December 26, 2025 13:51
@Mikolaj
Copy link
Collaborator Author

Mikolaj commented Jan 15, 2026

BTW, @augustss, is the comment

-- XXX Copy special cases from Tensor.

about copying special cases from toVectorT or from FastReshape.hs or yet something else altogether?

@augustss
Copy link
Owner

augustss commented Feb 1, 2026

I don't remember what it refers to.

@Mikolaj
Copy link
Collaborator Author

Mikolaj commented Feb 1, 2026

I don't remember what it refers to.

Fair enough. I filed this as #20 for later so that it doesn't block this PR.

constantT sh x = T (map (const 0) sh) 0 (vSingleton x)

-- TODO: change to return a list of vectors.
-- Convert an array to a vector in the natural order.
Copy link
Owner

@augustss augustss Feb 13, 2026

Choose a reason for hiding this comment

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

Update comment.

It might also be worth pointing out that an invariant is that if the input array is non-empty the returned list will have no empty vectors. The minimum/maximum oprations rely on this.

@augustss
Copy link
Owner

It looks good to me.

@Mikolaj
Copy link
Collaborator Author

Mikolaj commented Feb 13, 2026

Thank you. Comment updated and I've also brought back the internal toUnorderedVectorT operation so that this PR preserves backward compatibility. I plan to merge this PR tomorrow.

If you don't object or beat me to it, I'd like to release 0.1.8.0 (non-breaking API additions) early next week.

@Mikolaj Mikolaj merged commit e45b24e into augustss:master Feb 15, 2026
9 checks passed
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.

2 participants