Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ static napi_value addon( napi_env env, napi_callback_info info ) {
STDLIB_NAPI_ARGV_INT64( env, strideX, argv, 3 );
STDLIB_NAPI_ARGV_INT64( env, strideY, argv, 5 );
STDLIB_NAPI_ARGV_STRIDED_FLOAT64ARRAY( env, X, N, strideX, argv, 2 );
STDLIB_NAPI_ARGV_STRIDED_FLOAT64ARRAY( env, Y, N+k, strideY, argv, 4 );
STDLIB_NAPI_ARGV_STRIDED_FLOAT64ARRAY( env, Y, N+((k>0)?k:0), strideY, argv, 4 );

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

cc @headlessNode This likely applies to edge padding, as well, and any other strided pad API.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@headlessNode If you can fix your other open PRs, that would be great. Cheers!

API_SUFFIX(stdlib_strided_dleft_pad_circular)( N, k, X, strideX, Y, strideY );
return NULL;
}
Expand All @@ -59,7 +59,7 @@ static napi_value addon_method( napi_env env, napi_callback_info info ) {
STDLIB_NAPI_ARGV_INT64( env, strideY, argv, 6 );
STDLIB_NAPI_ARGV_INT64( env, offsetY, argv, 7 );
STDLIB_NAPI_ARGV_STRIDED_FLOAT64ARRAY( env, X, N, strideX, argv, 2 );
STDLIB_NAPI_ARGV_STRIDED_FLOAT64ARRAY( env, Y, N+k, strideY, argv, 5 );
STDLIB_NAPI_ARGV_STRIDED_FLOAT64ARRAY( env, Y, N+((k>0)?k:0), strideY, argv, 5 );
API_SUFFIX(stdlib_strided_dleft_pad_circular_ndarray)( N, k, X, strideX, offsetX, Y, strideY, offsetY );
return NULL;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ The function has the following parameters:
- **arrays**: array-like object containing the following ndarrays:

- a one-dimensional input ndarray.
- a one-dimensional ndarray containing values to prepend after to computing differences.
- a one-dimensional ndarray containing values to append after to computing differences.
- a one-dimensional ndarray containing values to prepend after computing differences.
- a one-dimensional ndarray containing values to append after computing differences.
- a one-dimensional output ndarray. Must have `N + N1 + N2 - 1` elements, where `N` is the number of elements in the input ndarray, `N1` is the number of elements to prepend, and `N2` is the number of elements to append.

</section>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ The function has the following parameters:
- **arrays**: array-like object containing the following ndarrays:

- a one-dimensional input ndarray.
- a one-dimensional ndarray containing values to prepend after to computing differences.
- a one-dimensional ndarray containing values to append after to computing differences.
- a one-dimensional ndarray containing values to prepend after computing differences.
- a one-dimensional ndarray containing values to append after computing differences.
- a one-dimensional output ndarray. Must have `N + N1 + N2 - 1` elements, where `N` is the number of elements in the input ndarray, `N1` is the number of elements to prepend, and `N2` is the number of elements to append.

</section>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ static napi_value addon( napi_env env, napi_callback_info info ) {
STDLIB_NAPI_ARGV_INT64( env, strideX, argv, 3 );
STDLIB_NAPI_ARGV_INT64( env, strideY, argv, 5 );
STDLIB_NAPI_ARGV_STRIDED_FLOAT32ARRAY( env, X, N, strideX, argv, 2 );
STDLIB_NAPI_ARGV_STRIDED_FLOAT32ARRAY( env, Y, N+k, strideY, argv, 4 );
STDLIB_NAPI_ARGV_STRIDED_FLOAT32ARRAY( env, Y, N+((k>0)?k:0), strideY, argv, 4 );
API_SUFFIX(stdlib_strided_sright_pad_circular)( N, k, X, strideX, Y, strideY );
return NULL;
}
Expand All @@ -59,7 +59,7 @@ static napi_value addon_method( napi_env env, napi_callback_info info ) {
STDLIB_NAPI_ARGV_INT64( env, strideY, argv, 6 );
STDLIB_NAPI_ARGV_INT64( env, offsetY, argv, 7 );
STDLIB_NAPI_ARGV_STRIDED_FLOAT32ARRAY( env, X, N, strideX, argv, 2 );
STDLIB_NAPI_ARGV_STRIDED_FLOAT32ARRAY( env, Y, N+k, strideY, argv, 5 );
STDLIB_NAPI_ARGV_STRIDED_FLOAT32ARRAY( env, Y, N+((k>0)?k:0), strideY, argv, 5 );
API_SUFFIX(stdlib_strided_sright_pad_circular_ndarray)( N, k, X, strideX, offsetX, Y, strideY, offsetY );
return NULL;
}
Expand Down
Loading