-
-
Notifications
You must be signed in to change notification settings - Fork 860
feat: add ndarray/base/nullary-strided1d
#7772
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: passed - task: lint_package_json status: passed - task: lint_repl_help status: passed - task: lint_javascript_src status: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: passed - task: lint_javascript_tests status: passed - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
Coverage Report
The above coverage report was generated for the changes in this PR. |
lib/node_modules/@stdlib/ndarray/base/nullary-strided1d/lib/1d.js
Outdated
Show resolved
Hide resolved
lib/node_modules/@stdlib/ndarray/base/nullary-strided1d/lib/2d.js
Outdated
Show resolved
Hide resolved
lib/node_modules/@stdlib/ndarray/base/nullary-strided1d/lib/2d_blocked.js
Outdated
Show resolved
Hide resolved
lib/node_modules/@stdlib/ndarray/base/nullary-strided1d/lib/3d.js
Outdated
Show resolved
Hide resolved
lib/node_modules/@stdlib/ndarray/base/nullary-strided1d/lib/3d_blocked.js
Outdated
Show resolved
Hide resolved
lib/node_modules/@stdlib/ndarray/base/nullary-strided1d/lib/factory.js
Outdated
Show resolved
Hide resolved
Signed-off-by: Muhammad Haris <101793258+headlessNode@users.noreply.github.com>
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: passed - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: passed - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
…tdlib into nullary-strided1d
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: passed - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
|
||
# nullaryStrided1d | ||
|
||
> Apply a one-dimensional strided array function to a list of specified dimensions in an input ndarray. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
> Apply a one-dimensional strided array function to a list of specified dimensions in an input ndarray. | |
> Apply a one-dimensional strided array function to a list of specified dimensions in an output ndarray. |
|
||
#### nullaryStrided1d( fcn, arrays, dims\[, options] ) | ||
|
||
Applies a one-dimensional strided array function to a list of specified dimensions in an input ndarray. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Applies a one-dimensional strided array function to a list of specified dimensions in an input ndarray. | |
Applies a one-dimensional strided array function to a list of specified dimensions in an output ndarray. |
// Define the index offsets: | ||
var ox = 0; | ||
|
||
// Create an input ndarray-like object: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// Create an input ndarray-like object: | |
// Create an output ndarray-like object: |
|
||
The function accepts the following arguments: | ||
|
||
- **fcn**: function which will be applied to a one-dimensional input subarray. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- **fcn**: function which will be applied to a one-dimensional input subarray. | |
- **fcn**: function which will be applied to a one-dimensional output subarray. |
|
||
where | ||
|
||
- **arrays**: array containing a one-dimensional subarray of the input ndarray and any additional ndarray arguments as zero-dimensional ndarrays. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- **arrays**: array containing a one-dimensional subarray of the input ndarray and any additional ndarray arguments as zero-dimensional ndarrays. | |
- **arrays**: array containing a one-dimensional subarray of the output ndarray and any additional ndarray arguments as zero-dimensional ndarrays. |
* // Define the index offsets: | ||
* var ox = 0; | ||
* | ||
* // Create an input ndarray-like object: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* // Create an input ndarray-like object: | |
* // Create an output ndarray-like object: |
* } | ||
* ]; | ||
* | ||
* // Define an input strategy: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* // Define an input strategy: | |
* // Define an output strategy: |
* @param {ndarrayLike} x - input ndarray | ||
* @returns {ndarrayLike} input ndarray |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @param {ndarrayLike} x - input ndarray | |
* @returns {ndarrayLike} input ndarray | |
* @param {ndarrayLike} x - output ndarray | |
* @returns {ndarrayLike} output ndarray |
* @param {ndarrayLike} x - input ndarray | ||
* @param {string} x.dtype - input ndarray data type | ||
* @param {Collection} x.data - input ndarray data buffer | ||
* @param {NonNegativeIntegerArray} x.shape - input ndarray shape | ||
* @param {IntegerArray} x.strides - input ndarray strides | ||
* @param {NonNegativeInteger} x.offset - input ndarray index offset | ||
* @param {string} x.order - input ndarray memory layout |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @param {ndarrayLike} x - input ndarray | |
* @param {string} x.dtype - input ndarray data type | |
* @param {Collection} x.data - input ndarray data buffer | |
* @param {NonNegativeIntegerArray} x.shape - input ndarray shape | |
* @param {IntegerArray} x.strides - input ndarray strides | |
* @param {NonNegativeInteger} x.offset - input ndarray index offset | |
* @param {string} x.order - input ndarray memory layout | |
* @param {ndarrayLike} x - output ndarray | |
* @param {string} x.dtype - output ndarray data type | |
* @param {Collection} x.data - output ndarray data buffer | |
* @param {NonNegativeIntegerArray} x.shape - output ndarray shape | |
* @param {IntegerArray} x.strides - output ndarray strides | |
* @param {NonNegativeInteger} x.offset - output ndarray index offset | |
* @param {string} x.order - output ndarray memory layout |
{ | ||
"name": "@stdlib/ndarray/base/nullary-strided1d", | ||
"version": "0.0.0", | ||
"description": "Apply a one-dimensional strided array function to a list of specified dimensions in an input ndarray.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"description": "Apply a one-dimensional strided array function to a list of specified dimensions in an input ndarray.", | |
"description": "Apply a one-dimensional strided array function to a list of specified dimensions in an output ndarray.", |
type: pre_commit_static_analysis_report
description: Results of running static analysis checks when committing changes. report:
Progresses #2656.
Description
This pull request:
ndarray/base/nullary-strided1d
Related Issues
This pull request:
Questions
No.
Other
No.
Checklist
@stdlib-js/reviewers