mirror of
https://github.com/tildearrow/furnace.git
synced 2024-12-29 19:11:23 +00:00
54e93db207
not reliable yet
12 lines
217 B
C
12 lines
217 B
C
/* not worth copyrighting */
|
|
|
|
#include "libbench2/bench.h"
|
|
|
|
void caset(bench_complex *A, int n, bench_complex x)
|
|
{
|
|
int i;
|
|
for (i = 0; i < n; ++i) {
|
|
c_re(A[i]) = c_re(x);
|
|
c_im(A[i]) = c_im(x);
|
|
}
|
|
}
|