mirror of
https://github.com/tildearrow/furnace.git
synced 2024-12-04 18:27:25 +00:00
13 lines
217 B
C
13 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);
|
||
|
}
|
||
|
}
|