blob: e1e1b47d5c0b233be832ab7dfe98d809cc40e561 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "moment.h"
#include "doubleComplex.h"
#include "floatComplex.h"
void zmomentrowa (doubleComplex* inp, int row, int col, double ord, doubleComplex* out)
{
doubleComplex vect[row];
for(int i = 0; i < col ; i++)
{
for(int j = 0; j < row ; j++)
{
vect[j] = inp[j + i*row];
}
out[i] = zmoments(vect, row, ord);
}
}
|