Skip to content

[RFC]: add stats/strided/scale-min #652

@kgryte

Description

@kgryte

This API implements

$$y = \frac{x}{\textrm{min}(x)}$$

This API divides each element in x by min(x) and assigns the results to elements in y.

API signatures:

scaleMin( N, x, strideX, y, strideY )
scaleMin.ndarray( N, x, strideX, offsetX, y, strideY, offsetY )

where

  • N: number of indexed elements.
  • x: input strided array.
  • strideX: stride length for x.
  • offsetX: starting index for x.
  • y: output strided array.
  • strideY: stride length for y.
  • offsetY: starting index for y.

Notes

  • To implement, compute the minimum value using stats/strided/min, followed by blas/ext/base/gwax with alpha = 1 / min(x).

Follow-on Work

Once completed and merged, the following packages can be added

  • [RFC]: add stats/strided/dscale-min
  • [RFC]: add stats/strided/sscale-min
  • [RFC]: add stats/base/ndarray/dscale-min
  • [RFC]: add stats/base/ndarray/sscale-min
  • [RFC]: add stats/base/ndarray/gscale-min
  • [RFC]: add stats/scale-min

Metadata

Metadata

Assignees

Labels

FeatureTask to add a new feature.difficulty: 2May require some initial design or R&D, but should be straightforward to resolve and/or implement.priority: NormalNormal priority concern or feature request.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions