Skip to content

Commit 665b86e

Browse files
committed
Auto-generated commit
1 parent b8931ac commit 665b86e

File tree

22 files changed

+154
-1906
lines changed

22 files changed

+154
-1906
lines changed

.github/.keepalive

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2026-04-11T03:26:27.871Z

CHANGELOG.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
### Features
1212

13-
- [`9260f31`](https://github.com/stdlib-js/stdlib/commit/9260f31994955a4c597080f7044d73f1f26ba856) - add C implementation for `blas/ext/base/ndarray/csum` [(#10696)](https://github.com/stdlib-js/stdlib/pull/10696)
1413
- [`b05fe40`](https://github.com/stdlib-js/stdlib/commit/b05fe40f8bc3caa85cb8734f9e30a487ae2bed74) - add C implementation for `blas/ext/base/ndarray/zsum` [(#10699)](https://github.com/stdlib-js/stdlib/pull/10699)
1514
- [`e2cb754`](https://github.com/stdlib-js/stdlib/commit/e2cb754df4df20314ca85ade73ff9d8f06c44159) - add C implementation for `blas/ext/base/ndarray/dnansum` [(#10715)](https://github.com/stdlib-js/stdlib/pull/10715)
1615
- [`b78ba63`](https://github.com/stdlib-js/stdlib/commit/b78ba63761c164190dcd0cc02047155d584c1f88) - add C implementation for `blas/ext/base/ndarray/snansum` [(#10777)](https://github.com/stdlib-js/stdlib/pull/10777)
@@ -849,7 +848,6 @@ A total of 53 issues were closed in this release:
849848

850849
<details>
851850

852-
- [`9260f31`](https://github.com/stdlib-js/stdlib/commit/9260f31994955a4c597080f7044d73f1f26ba856) - **feat:** add C implementation for `blas/ext/base/ndarray/csum` [(#10696)](https://github.com/stdlib-js/stdlib/pull/10696) _(by Kaustubh Patange, Athan Reines, stdlib-bot)_
853851
- [`b05fe40`](https://github.com/stdlib-js/stdlib/commit/b05fe40f8bc3caa85cb8734f9e30a487ae2bed74) - **feat:** add C implementation for `blas/ext/base/ndarray/zsum` [(#10699)](https://github.com/stdlib-js/stdlib/pull/10699) _(by Kaustubh Patange, Athan Reines)_
854852
- [`d939241`](https://github.com/stdlib-js/stdlib/commit/d939241ae1b03e3d0a6912f46ef644afc324ce4d) - **bench:** update failure messages _(by Athan Reines)_
855853
- [`e2cb754`](https://github.com/stdlib-js/stdlib/commit/e2cb754df4df20314ca85ade73ff9d8f06c44159) - **feat:** add C implementation for `blas/ext/base/ndarray/dnansum` [(#10715)](https://github.com/stdlib-js/stdlib/pull/10715) _(by Kaustubh Patange, Athan Reines, Gururaj Gurram)_

ext/base/ndarray/csum/README.md

Lines changed: 0 additions & 158 deletions
Original file line numberDiff line numberDiff line change
@@ -98,164 +98,6 @@ console.log( v );
9898

9999
<!-- /.examples -->
100100

101-
<!-- C interface documentation. -->
102-
103-
* * *
104-
105-
<section class="c">
106-
107-
## C APIs
108-
109-
<!-- Section to include introductory text. Make sure to keep an empty line after the intro `section` element and another before the `/section` close. -->
110-
111-
<section class="intro">
112-
113-
</section>
114-
115-
<!-- /.intro -->
116-
117-
<!-- C usage documentation. -->
118-
119-
<section class="usage">
120-
121-
### Usage
122-
123-
```c
124-
#include "stdlib/blas/ext/base/ndarray/csum.h"
125-
```
126-
127-
#### stdlib_blas_ext_csum( arrays )
128-
129-
Computes the sum of all elements in a one-dimensional single-precision complex floating-point ndarray.
130-
131-
```c
132-
#include "stdlib/complex/float32/ctor.h"
133-
#include "stdlib/ndarray/ctor.h"
134-
#include "stdlib/ndarray/dtypes.h"
135-
#include "stdlib/ndarray/index_modes.h"
136-
#include "stdlib/ndarray/orders.h"
137-
#include "stdlib/ndarray/base/bytes_per_element.h"
138-
#include "stdlib/complex/float32/real.h"
139-
#include "stdlib/complex/float32/imag.h"
140-
#include <stdint.h>
141-
142-
// Create an ndarray:
143-
const float data[] = { 1.0f, 2.0f, 3.0f, 4.0f };
144-
int64_t shape[] = { 2 };
145-
int64_t strides[] = { STDLIB_NDARRAY_COMPLEX64_BYTES_PER_ELEMENT };
146-
int8_t submodes[] = { STDLIB_NDARRAY_INDEX_ERROR };
147-
148-
struct ndarray *x = stdlib_ndarray_allocate( STDLIB_NDARRAY_COMPLEX64, (uint8_t *)data, 1, shape, strides, 0, STDLIB_NDARRAY_ROW_MAJOR, STDLIB_NDARRAY_INDEX_ERROR, 1, submodes );
149-
150-
// Compute the sum:
151-
const struct ndarray *arrays[] = { x };
152-
stdlib_complex64_t v = stdlib_blas_ext_csum( arrays );
153-
154-
float re = stdlib_complex64_real( v );
155-
// returns 4.0f
156-
157-
float im = stdlib_complex64_imag( v );
158-
// returns 6.0f
159-
160-
// Free allocated memory:
161-
stdlib_ndarray_free( x );
162-
```
163-
164-
The function accepts the following arguments:
165-
166-
- **arrays**: `[in] struct ndarray**` list containing a one-dimensional input ndarray.
167-
168-
```c
169-
stdlib_complex64_t stdlib_blas_ext_csum( const struct ndarray *arrays[] );
170-
```
171-
172-
</section>
173-
174-
<!-- /.usage -->
175-
176-
<!-- C API usage notes. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
177-
178-
<section class="notes">
179-
180-
</section>
181-
182-
<!-- /.notes -->
183-
184-
<!-- C API usage examples. -->
185-
186-
<section class="examples">
187-
188-
### Examples
189-
190-
```c
191-
#include "stdlib/blas/ext/base/ndarray/csum.h"
192-
#include "stdlib/complex/float32/ctor.h"
193-
#include "stdlib/complex/float32/real.h"
194-
#include "stdlib/complex/float32/imag.h"
195-
#include "stdlib/ndarray/ctor.h"
196-
#include "stdlib/ndarray/dtypes.h"
197-
#include "stdlib/ndarray/index_modes.h"
198-
#include "stdlib/ndarray/orders.h"
199-
#include "stdlib/ndarray/base/bytes_per_element.h"
200-
#include <stdint.h>
201-
#include <stdlib.h>
202-
#include <stdio.h>
203-
204-
int main( void ) {
205-
// Create a data buffer:
206-
const float data[] = { 1.0f, -2.0f, 3.0f, -4.0f, 5.0f, -6.0f, 7.0f, -8.0f };
207-
208-
// Specify the number of array dimensions:
209-
const int64_t ndims = 1;
210-
211-
// Specify the array shape:
212-
int64_t shape[] = { 4 };
213-
214-
// Specify the array strides:
215-
int64_t strides[] = { STDLIB_NDARRAY_COMPLEX64_BYTES_PER_ELEMENT };
216-
217-
// Specify the byte offset:
218-
const int64_t offset = 0;
219-
220-
// Specify the array order:
221-
const enum STDLIB_NDARRAY_ORDER order = STDLIB_NDARRAY_ROW_MAJOR;
222-
223-
// Specify the index mode:
224-
const enum STDLIB_NDARRAY_INDEX_MODE imode = STDLIB_NDARRAY_INDEX_ERROR;
225-
226-
// Specify the subscript index modes:
227-
int8_t submodes[] = { STDLIB_NDARRAY_INDEX_ERROR };
228-
const int64_t nsubmodes = 1;
229-
230-
// Create an ndarray:
231-
struct ndarray *x = stdlib_ndarray_allocate( STDLIB_NDARRAY_COMPLEX64, (uint8_t *)data, ndims, shape, strides, offset, order, imode, nsubmodes, submodes );
232-
if ( x == NULL ) {
233-
fprintf( stderr, "Error allocating memory.\n" );
234-
exit( 1 );
235-
}
236-
237-
// Define a list of ndarrays:
238-
const struct ndarray *arrays[] = { x };
239-
240-
// Compute the sum:
241-
stdlib_complex64_t v = stdlib_blas_ext_csum( arrays );
242-
243-
// Print the result:
244-
printf( "sum: %f + %fi\n", stdlib_complex64_real( v ), stdlib_complex64_imag( v ) );
245-
246-
// Free allocated memory:
247-
stdlib_ndarray_free( x );
248-
}
249-
```
250-
251-
</section>
252-
253-
<!-- /.examples -->
254-
255-
</section>
256-
257-
<!-- /.c -->
258-
259101
<!-- Section for related `stdlib` packages. Do not manually edit this section, as it is automatically populated. -->
260102

261103
<section class="related">

ext/base/ndarray/csum/benchmark/benchmark.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,8 @@ var imagf = require( '@stdlib/complex/float32/imag' );
2828
var pow = require( '@stdlib/math/base/special/pow' );
2929
var ndarray = require( '@stdlib/ndarray/base/ctor' );
3030
var Complex64Array = require( '@stdlib/array/complex64' );
31-
var format = require( '@stdlib/string/format' );
3231
var pkg = require( './../package.json' ).name;
33-
var csum = require( './../lib/main.js' );
32+
var csum = require( './../lib' );
3433

3534

3635
// VARIABLES //
@@ -107,7 +106,7 @@ function main() {
107106
for ( i = min; i <= max; i++ ) {
108107
len = pow( 10, i );
109108
f = createBenchmark( len );
110-
bench( format( '%s:len=%d', pkg, len ), f );
109+
bench( pkg+':len='+len, f );
111110
}
112111
}
113112

ext/base/ndarray/csum/benchmark/benchmark.native.js

Lines changed: 0 additions & 119 deletions
This file was deleted.

0 commit comments

Comments
 (0)