-
-
Notifications
You must be signed in to change notification settings - Fork 0
[RFC]: add blas/ext/base/gscale-norm #658
Copy link
Copy link
Open
Labels
FeatureTask to add a new feature.Task to add a new feature.difficulty: 2May require some initial design or R&D, but should be straightforward to resolve and/or implement.May require some initial design or R&D, but should be straightforward to resolve and/or implement.priority: NormalNormal priority concern or feature request.Normal priority concern or feature request.
Metadata
Metadata
Assignees
Labels
FeatureTask to add a new feature.Task to add a new feature.difficulty: 2May require some initial design or R&D, but should be straightforward to resolve and/or implement.May require some initial design or R&D, but should be straightforward to resolve and/or implement.priority: NormalNormal priority concern or feature request.Normal priority concern or feature request.
Type
Fields
Give feedbackNo fields configured for issues without a type.
This API implements
This API divides each element in
xby p-norm and assigns the results to elements iny.API signatures:
where
N: number of indexed elements.p: order of the norm.x: input strided array.strideX: stride length forx.offsetX: starting index forx.y: output strided array.strideY: stride length fory.offsetY: starting index fory.Notes
p, delegate to specialized APIs; otherwise, compute the p-norm, followed byblas/ext/base/*waxwithalpha = 1 / norm(x).pshould be greater than0, with the single exception being-infinity. For this case, normalize byminabs(x).Follow-on Work
Once completed and merged, the following packages can be added
blas/ext/base/dscale-normblas/ext/base/sscale-normblas/ext/base/ndarray/dscale-normblas/ext/base/ndarray/sscale-normblas/ext/base/ndarray/gscale-normblas/ext/scale-norm