Skip to content

Conversation

airspeedswift
Copy link
Member

A re-pitch of the protocols dropped from SE-0237, with motivating example.

@airspeedswift airspeedswift added the standard library addition Additive changes to the standard library label Feb 27, 2019
@airspeedswift airspeedswift changed the title [stdlib] ContiguousCollection protocol revisited ContiguousCollection protocol revisited Feb 27, 2019
Copy link
Contributor

@stephentyrone stephentyrone left a comment

Choose a reason for hiding this comment

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

vDSP_vsaddi is a bad function to use here because B is actually a scalar. You want to use vDSP_vaddi throughout (or maybe vDSP_vadd and change element types to Float to maximize familiarity for reviewers; the float functions are much more idiomatic in vDSP).

@airspeedswift
Copy link
Member Author

Oops in fact that was a typo, I meant vDSP_vaddi. The fact that they both take a pointer is super cursed. Switched to the Float version.

@stephentyrone
Copy link
Contributor

Fortran. Boy, I don’t know.

moiseev and others added 2 commits February 27, 2019 20:53
@airspeedswift airspeedswift marked this pull request as ready for review March 6, 2019 18:42
@tkremenek tkremenek merged commit 9655626 into swiftlang:master Apr 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

standard library addition Additive changes to the standard library

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants