A high-performance general-purpose compute library
Main Page
Tutorials
Release Notes
Examples
gfor.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
#include <
af/seq.h
>
13
14
15
#ifdef __cplusplus
16
namespace
af
17
{
18
class
array
;
19
class
dim4
;
20
21
AFAPI
bool
gforToggle
();
22
AFAPI
bool
gforGet
();
23
AFAPI
void
gforSet
(
bool
val);
24
25
26
#define gfor(var, ...) for (var = af::seq(af::seq(__VA_ARGS__), true); af::gforToggle(); )
27
28
typedef
array
(*
batchFunc_t
)(
const
array
&lhs,
const
array
&rhs);
29
AFAPI
array
batchFunc
(
const
array
&lhs,
const
array
&rhs,
batchFunc_t
func);
30
31
}
32
#endif
af::array
A multi dimensional data container.
Definition
array.h:37
af::dim4
Generic object that represents size and shape.
Definition
dim4.hpp:26
defines.h
AFAPI
#define AFAPI
Definition
defines.h:38
af
Definition
algorithm.h:15
af::batchFunc
array batchFunc(const array &lhs, const array &rhs, batchFunc_t func)
af::gforSet
void gforSet(bool val)
af::gforToggle
bool gforToggle()
af::batchFunc_t
array(* batchFunc_t)(const array &lhs, const array &rhs)
Definition
gfor.h:28
af::gforGet
bool gforGet()
seq.h
gfor.h
Generated on Mon Dec 30 2024 17:55:58 for ArrayFire by
1.13.0