This example show how to filter 1D data in FasTensor .
- Author
- Bin Dong (dbin@.nosp@m.lbl..nosp@m.gov)
- Version
- 0.1
- Date
- 2021-05-28
- Copyright
- Copyright (c) 2021
#include <iostream>
#include <stdarg.h>
#include <vector>
#include <stdlib.h>
#include "au.h"
using namespace std;
{
if (iStencil(0) > 100.0)
{
oStencil = iStencil(0);
}
return oStencil;
}
int main(
int argc,
char *argv[])
{
std::vector<int> chunk_size = {4};
std::vector<int> overlap_size = {0};
Array<float> *A = new Array<float>("EP_HDF5:./testf-16x16.h5p:/testg/testd", chunk_size, overlap_size);
Array<float> *B = new Array<float>("EP_HDF5:./testf-16x16-f1.h5p:/testg/testd");
delete A;
delete B;
return 0;
}
Definition: ft_stencil.h:100
#define AU_Init(argc, argv)
Definition: ft.h:112
#define AU_Finalize()
Definition: ft.h:113
int main(int argc, char *argv[])
Definition: ft_example_filter.cpp:112
Stencil< float > udf_filter(const Stencil< float > &iStencil)
Definition: ft_example_filter.cpp:101
Definition: ft_array.h:113