A high-performance general-purpose compute library

- Main Page
- Tutorials
- Release Notes
- Examples

compatible.h
Go to the documentation of this file.
1/*******************************************************
2 * Copyright (c) 2014, ArrayFire
3 * All rights reserved.
4 *
5 * This file is distributed under 3-clause BSD license.
6 * The complete license agreement can be obtained at:
7 * http://arrayfire.com/licenses/BSD-3-Clause
8 ********************************************************/
9
10#pragma once
11#include <af/defines.h>
12
13#ifdef __cplusplus
14 namespace af
15{
16 class array;
17
21 AF_DEPRECATED("Use getDeviceCount instead")
22 AFAPI int devicecount();
23
27 AF_DEPRECATED("Use getDevice instead")
28 AFAPI int deviceget();
29
33 AF_DEPRECATED("Use setDevice instead")
34 AFAPI void deviceset(const int device);
35
39 AF_DEPRECATED("Use loadImage instead")
40 AFAPI array loadimage(const char* filename, const bool is_color=false);
41
45 AF_DEPRECATED("Use saveImage instead")
46 AFAPI void saveimage(const char* filename, const array& in);
47
51 AF_DEPRECATED("Use gaussianKernel instead")
52 AFAPI array gaussiankernel(const int rows, const int cols, const double sig_r = 0, const double sig_c = 0);
53
57template<typename T>
58 AF_DEPRECATED("Use allTrue instead")
59T alltrue(const array &in);
60
64template<typename T>
65 AF_DEPRECATED("Use anyTrue instead")
66T anytrue(const array &in);
67
71 AF_DEPRECATED("Use allTrue instead")
72 AFAPI array alltrue(const array &in, const int dim = -1);
73
77 AF_DEPRECATED("Use anyTrue instead")
78 AFAPI array anytrue(const array &in, const int dim = -1);
79
83 AF_DEPRECATED("Use setUnique instead")
84 AFAPI array setunique(const array &in, const bool is_sorted=false);
85
89 AF_DEPRECATED("Use setUnion instead")
90 AFAPI array setunion(const array &first, const array &second, const bool is_unique=false);
91
95 AF_DEPRECATED("Use setIntersect instead")
96 AFAPI array setintersect(const array &first, const array &second, const bool is_unique=false);
97
101 AF_DEPRECATED("Use histEqual instead")
102 AFAPI array histequal(const array& in, const array& hist);
103
107 AF_DEPRECATED("Use colorSpace instead")
108 AFAPI array colorspace(const array& image, const CSpace to, const CSpace from);
109
127 AF_DEPRECATED("Use af::convolve instead")
128 AFAPI array filter(const array& image, const array& kernel);
129
133 AF_DEPRECATED("Use af::product instead")
134 AFAPI array mul(const array& in, const int dim = -1);
135
139template<typename T>
140 AF_DEPRECATED("Use af::product instead")
141T mul(const array& in);
142
146 AF_DEPRECATED("Use deviceInfo instead")
147 AFAPI void deviceprop(char* d_name, char* d_platform, char *d_toolkit, char* d_compute);
148
149}
150#endif
af::array
A multi dimensional data container.
Definition array.h:37
defines.h
AF_DEPRECATED
#define AF_DEPRECATED(msg)
Definition defines.h:44
AFAPI
#define AFAPI
Definition defines.h:38
af_cspace_t
af_cspace_t
Definition defines.h:339
af::devicecount
AFAPI int devicecount()
Gets the number of devices.
af::getDevice
AFAPI int getDevice()
Gets the current device ID.
af::deviceget
AFAPI int deviceget()
Gets the current device ID.
af::deviceprop
AFAPI void deviceprop(char *d_name, char *d_platform, char *d_toolkit, char *d_compute)
Gets the information about device and platform as strings
af::deviceInfo
AFAPI void deviceInfo(char *d_name, char *d_platform, char *d_toolkit, char *d_compute)
Gets the information about device and platform as strings
af::deviceset
AFAPI void deviceset(const int device)
Sets the current device.
af::setDevice
AFAPI void setDevice(const int device)
Sets the current device.
af::colorspace
AFAPI array colorspace(const array &image, const CSpace to, const CSpace from)
C++ Interface wrapper for colorspace conversion.
af::colorSpace
AFAPI array colorSpace(const array &image, const CSpace to, const CSpace from)
C++ Interface wrapper for colorspace conversion.
af::gaussianKernel
AFAPI array gaussianKernel(const int rows, const int cols, const double sig_r=0, const double sig_c=0)
C++ Interface for generating gausian kernels.
af::gaussiankernel
AFAPI array gaussiankernel(const int rows, const int cols, const double sig_r=0, const double sig_c=0)
Creates a Gaussian Kernel
af::histequal
AFAPI array histequal(const array &in, const array &hist)
C++ Interface for histogram equalization.
af::histEqual
AFAPI array histEqual(const array &in, const array &hist)
C++ Interface for histogram equalization.
af::loadImage
AFAPI array loadImage(const char *filename, const bool is_color=false)
C++ Interface for loading an image.
af::loadimage
AFAPI array loadimage(const char *filename, const bool is_color=false)
C++ Interface for loading an image.
af::saveimage
AFAPI void saveimage(const char *filename, const array &in)
C++ Interface for saving an image.
af::saveImage
AFAPI void saveImage(const char *filename, const array &in)
C++ Interface for saving an image.
af::alltrue
T alltrue(const array &in)
C++ Interface to check if all values along the first non-singleton dimension are true.
af::allTrue
AFAPI array allTrue(const array &in, const int dim=-1)
C++ Interface to check if all values along a given dimension are true.
af::anyTrue
AFAPI array anyTrue(const array &in, const int dim=-1)
C++ Interface to check if any values along a given dimension are true.
af::anytrue
T anytrue(const array &in)
C++ Interface to check if all values along the first non-singleton dimension are true.
af::product
AFAPI array product(const array &in, const int dim=-1)
C++ Interface to multiply array elements over a given dimension.
af::mul
AFAPI array mul(const array &in, const int dim=-1)
C++ Interface to multiply array elements over a given dimension.
af::setIntersect
AFAPI array setIntersect(const array &first, const array &second, const bool is_unique=false)
C++ Interface to evaluate the intersection of two arrays.
af::setintersect
AFAPI array setintersect(const array &first, const array &second, const bool is_unique=false)
C++ Interface to evaluate the intersection of two arrays.
af::setunion
AFAPI array setunion(const array &first, const array &second, const bool is_unique=false)
C++ Interface to evaluate the union of two arrays.
af::setUnion
AFAPI array setUnion(const array &first, const array &second, const bool is_unique=false)
C++ Interface to evaluate the union of two arrays.
af::setunique
AFAPI array setunique(const array &in, const bool is_sorted=false)
C++ Interface to return the unique values in an array.
af::setUnique
AFAPI array setUnique(const array &in, const bool is_sorted=false)
C++ Interface to return the unique values in an array.
af::convolve
AFAPI array convolve(const array &signal, const array &filter, const convMode mode=AF_CONV_DEFAULT, const convDomain domain=AF_CONV_AUTO)
C++ Interface for convolution any(one through three) dimensional signals.
af
Definition algorithm.h:15
af::filter
AFAPI array filter(const array &image, const array &kernel)
Image Filtering.