#include <cstdio>
#include <math.h>
static const int ITERATIONS = 200;
static const float PRECISION = 1.0f/ITERATIONS;
int main(int argc, char *argv[])
{
try {
af::Window myWindow(800, 800,
"3D Line Plot example: ArrayFire");
static float t=0.1;
do{
t+=0.01;
}
while(!myWindow.
close());
fprintf(stderr,
"%s\n", e.
what());
throw;
}
return 0;
}
Window object to render af::arrays.
Definition: graphics.h:37
A multi dimensional data container.
Definition: array.h:27
Definition: exception.h:20
virtual const char * what() const
Definition: exception.h:34
seq is used to create seq for indexing af::array
Definition: seq.h:46
AFAPI array cos(const array &in)
C++ Interface for cos.
AFAPI array sin(const array &in)
C++ Interface for sin.
void plot3(const array &in, const char *title=NULL)
Renders the input array as an 3d line plot to the window.
bool close()
Check if window is marked for close.
AFAPI array join(const int dim, const array &first, const array &second)
Join 2 arrays along dim.
AFAPI array max(const array &in, const int dim=-1)
C++ Interface for maximum values in an array.
AFAPI array min(const array &in, const int dim=-1)
C++ Interface for minimum values in an array.
Definition: algorithm.h:15