Repository navigation
In progress
In progress
Copy link
Labels
AcceptedRFC feature request which has been accepted.BLASIssue or pull request related to Basic Linear Algebra Subprograms (BLAS).CIssue involves or relates to C.JavaScriptIssue involves or relates to JavaScript.RFCRequest for comments. Feature requests and proposed changes.StatisticsIssue or pull request related to statistical functionality.Tracking IssueTracking issue.
Description
Description
This RFC proposes refactoring strided routines which return two quantities in a single packed output array to instead use a separate output array for each quantity, following the convention used by lapack/base/dladiv and lapack/base/dlassq.
- For the
meanstdev/meanvarroutines, the C APIs will use two output pointers in place of a single packed output pointer. - For the
nannsumroutines, thecountoutput will be anInt32Array. - Hypothesis tests (e.g.,
ztest) will continue to use struct-based results and are out of scope.
For example,
// Before:
dmeanvarpn( N, correction, x, strideX, out, strideOut );
dmeanvarpn.ndarray( N, correction, x, strideX, offsetX, out, strideOut, offsetOut );
// After:
dmeanvarpn( N, correction, x, strideX, mean, variance );
dmeanvarpn.ndarray( N, correction, x, strideX, offsetX, mean, offsetMean, variance, offsetVariance );As these are breaking changes, I will be handling all of the packages listed below in order to keep the API consistent across them.
Packages
Each package is updated in a separate PR. Packages which call another package in this list are listed after it and need to wait for it to be merged.
stats:
-
stats/strided/dmeanvarpn(refactor!: updatestats/strided/dmeanvarpnto use separate output arrays #16966) -
stats/strided/dmeanvar(afterdmeanvarpn) -
stats/strided/dmeanstdevpn(afterdmeanvarpn) -
stats/strided/dmeanstdev(afterdmeanstdevpn) -
stats/base/ndarray/dmeanstdev(afterstats/strided/dmeanstdev)
blas/ext/base:
-
blas/ext/base/dnannsumkbn(refactor!: updateblas/ext/base/dnannsumkbnto use separate output arrays #16995) -
blas/ext/base/dnannsum(afterdnannsumkbn) -
blas/ext/base/dnannsumkbn2 -
blas/ext/base/dnannsumors -
blas/ext/base/dnannsumpw -
blas/ext/base/dsnannsumors -
blas/ext/base/gnannsumkbn -
blas/ext/base/gnannsumpw
Notes
- Packages which call one of the above are updated in the same PR as the package they call. Apart from the packages in this list, these are
blas/ext/base/dnansumpw,stats/strided/dnanmeanpw, andstats/strided/dnanvariancepn(all calldnannsumpw). - New packages returning two quantities (e.g.,
snannsum*) should follow the same convention. See feat: addblas/ext/base/snannsumkbnalong with C implementation #14873.
Related Issues
None.
Questions
No.
Other
No.
Checklist
- I have read and understood the Code of Conduct.
- Searched for existing issues and pull requests.
- The issue name begins with
RFC:.
Metadata
Metadata
Assignees
Labels
AcceptedRFC feature request which has been accepted.BLASIssue or pull request related to Basic Linear Algebra Subprograms (BLAS).CIssue involves or relates to C.JavaScriptIssue involves or relates to JavaScript.RFCRequest for comments. Feature requests and proposed changes.StatisticsIssue or pull request related to statistical functionality.Tracking IssueTracking issue.
Activity