Sha256: b3e01c423f53d4cada130c5b0a78e4fb98b9d91bf922e2f514ff1769cfb59781

Contents?: true

Size: 797 Bytes

Versions: 1

Compression:

Stored size: 797 Bytes

Contents

/*
 *  (c) 2021 Murata Mitsuharu
 *  Licensed under the MIT License.
 *  source: https://github.com/Himeyama/C-Gaussian-Filter
 */


#ifndef GAUSSIAN_H
#define GAUSSIAN_H
 
struct vector{
    long size;
    double* data;
};

typedef struct vector Vector;

typedef struct{
    Vector src_data;
    Vector* dst_data;
    double sd;
    double truncate;
} GaussianArgsRet;

void Vector_p(Vector vec);
void Vector_txt(Vector vec);
void Vector_destroy(Vector vec);
Vector Vector_initialize(long size);
Vector Vector_zeros(long size);
double Vector_dot(Vector vec1, Vector vec2);
Vector Vector_arange(int start, int stop);
double Vector_sum(Vector vec);
void Vector_div(Vector vec, double n);
Vector Vector_normal(long size);
Vector Vector_clone(Vector vec);
void* gaussian(GaussianArgsRet* ga);

#endif

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gaussian-filter-0.0.3 ext/Gaussian/gaussian.h