Skip to content

Commit 41d517e

Browse files
author
pradeep
committed
Documentation fixes for 3.1 release
1 parent 52f45e9 commit 41d517e

12 files changed

Lines changed: 100 additions & 109 deletions

File tree

docs/details/data.dox

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,24 @@ The distribution is centered around 0
3333
\ingroup data_mat
3434
\ingroup arrayfire_func
3535

36-
=======================================================================
36+
37+
\defgroup data_func_setseed setSeed
38+
39+
\brief Set the seed for random number generator
40+
41+
42+
\ingroup data_mat
43+
\ingroup arrayfire_func
44+
45+
46+
\defgroup data_func_getseed getSeed
47+
48+
\brief Get the seed for random number generator
49+
50+
51+
\ingroup data_mat
52+
\ingroup arrayfire_func
53+
3754

3855
\defgroup data_func_identity identity
3956

docs/details/image.dox

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,7 @@ unwrap(A, 3, 3, 3, 3, 2, 2) [9 9 1 1]
790790
\defgroup image_func_wrap wrap
791791
\ingroup image_mod_mat
792792

793-
Wrap takes an unwrapped image (see \ref unwrap) and converts it back to an image.
793+
Wrap takes an unwrapped image (see \ref unwrap()) and converts it back to an image.
794794

795795
The inputs to this function should be the same as the inputs used to generate the unwrapped image.
796796
@}

docs/details/lapack.dox

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ The arrayfire function only returns the non zero diagonal elements of **S**. To
140140

141141
\snippet test/svd_dense.cpp ex_svd_reg
142142

143-
When memory is a concern, and **A** is dispensible, \ref svdInPlace can be used
143+
When memory is a concern, and **A** is dispensible, \ref svdInPlace() can be used
144144

145145

146146
=======================================================================

docs/details/util.dox

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ An file with 2 arrays would look like (representative)
7171
> Array 2 Dims\n
7272
> Array 2 Data\n
7373

74-
\ingroup stream_func
74+
\ingroup dataio_mat
7575
\ingroup arrayfire_func
7676

7777
=======================================================================
@@ -129,7 +129,7 @@ On each append, the array counter in the header is incremented and the new
129129
array is written to the end of the file. This function does not check if the
130130
tag is unique or not.
131131

132-
\ingroup stream_func
132+
\ingroup dataio_mat
133133
\ingroup arrayfire_func
134134

135135
=======================================================================

docs/doxygen.mk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1978,7 +1978,8 @@ INCLUDE_FILE_PATTERNS =
19781978
PREDEFINED = __declspec(x)= \
19791979
__attribute__(x)= \
19801980
__cplusplus \
1981-
AF_DOC
1981+
AF_DOC \
1982+
AF_API_VERSION=${AF_API_VERSION_CURRENT}
19821983

19831984
# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then this
19841985
# tag can be used to specify a list of macro names that should be expanded. The

docs/pages/README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,7 @@ af_print(pi);
130130

131131
## Citations and Acknowledgements
132132

133-
If you redistribute ArrayFire, please follow the terms established in
134-
[the license](LICENSE).
133+
If you redistribute ArrayFire, please follow the terms established in <a href="https://github.com/arrayfire/arrayfire/blob/master/LICENSE">the license</a>.
135134
If you wish to cite ArrayFire in an academic publication, please use the
136135
following reference:
137136

@@ -156,5 +155,4 @@ year = {2015}
156155
}
157156
```
158157

159-
ArrayFire development is funded by ArrayFire LLC and several third parties,
160-
please see the list of [acknowledgements](https://github.com/arrayfire/arrayfire/blob/master/ACKNOWLEDGEMENTS.md) for further details.
158+
ArrayFire development is funded by ArrayFire LLC and several third parties, please see the list of <a href="https://github.com/arrayfire/arrayfire/blob/master/ACKNOWLEDGEMENTS.md">acknowledgements</a>.

docs/pages/release_notes.md

Lines changed: 44 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ v3.1.0
77
Function Additions
88
------------------
99
* Computer Vision Functions
10-
* Nearest Neighbour with SAD, SSD and SHD distances (nearestNeighbour)
11-
* Harris Corner Detector (harris)
12-
* Susan Corner Detector (susan)
13-
* Scale Invariant Feature Transform (SIFT)
10+
* \ref nearestNeighbour() - Nearest Neighbour with SAD, SSD and SHD distances
11+
* \ref harris() - Harris Corner Detector
12+
* \ref susan() - Susan Corner Detector
13+
* \ref sift() - Scale Invariant Feature Transform (SIFT)
1414
* Method and apparatus for identifying scale invariant features"
1515
"in an image and use of same for locating an object in an image,\" David"
1616
"G. Lowe, US Patent 6,711,293 (March 23, 2004). Provisional application"
@@ -20,36 +20,50 @@ Function Additions
2020
"Columbia.")
2121
* SIFT is available for compiling but does not ship with ArrayFire
2222
hosted installers/pre-built libraries
23-
* Difference of Gaussians (dog)
23+
* \ref dog() - Difference of Gaussians
2424

2525
* Image Processing Functions
26-
* RGB <->YCbCr color space conversion (ycbcr2rgb, rgb2ycbcr)
27-
* Wrap and Unwrap (wrap, unwrap)
28-
* Summed Area Tables (sat)
29-
* Load and Save images to/from memory (loadImageMem, saveImageMem)
30-
* Add imageFormat (af_image_format) enum
31-
32-
* Utility
33-
* Allow users to set print precision (print, af_print_array_gen)
34-
* Stream arrays to binary files (saveArray, readArray)
35-
* toString function returns the array and data as a string
26+
* \ref ycbcr2rgb() and \ref rgb2ycbcr() - RGB <->YCbCr color space conversion
27+
* \ref wrap() and \ref unwrap() Wrap and Unwrap
28+
* \ref sat() - Summed Area Tables
29+
* \ref loadImageMem() and \ref saveImageMem() - Load and Save images to/from memory
30+
* \ref af_image_format - Added imageFormat (af_image_format) enum
3631

3732
* Array & Data Handling
38-
* Copy (copy)
39-
* Lock and Unlock (array::lock, array::unlock)
40-
* Select and Replace (select, replace)
33+
* \ref copy() - Copy
34+
* array::lock() and array::unlock() - Lock and Unlock
35+
* \ref select() and \ref replace() - Select and Replace
4136
* Get array reference count (af_get_data_ref_count)
4237

38+
* Signal Processing
39+
* \ref fftInPlace() - 1D in place FFT
40+
* \ref fft2InPlace() - 2D in place FFT
41+
* \ref fft3InPlace() - 3D in place FFT
42+
* \ref ifftInPlace() - 1D in place Inverse FFT
43+
* \ref ifft2InPlace() - 2D in place Inverse FFT
44+
* \ref ifft3InPlace() - 3D in place Inverse FFT
45+
* \ref fftR2C() - Real to complex FFT
46+
* \ref fftC2R() - Complex to Real FFT
47+
48+
* Linear Algebra
49+
* \ref svd() and \ref svdInPlace() - Singular Value Decomposition
50+
4351
* Other operations
44-
* SVD Decomposition (svd)
45-
* FFT
46-
* Support for in place FFT
47-
* Sigmoid (sigmoid)
52+
* \ref sigmoid() - Sigmoid
4853
* Sum (with option to replace NaN values)
4954
* Product (with option to replace NaN values)
5055

5156
* Graphics
52-
* Window resizing using Forge API (Window::setSize)
57+
* Window::setSize() - Window resizing using Forge API
58+
59+
* Utility
60+
* Allow users to set print precision (print, af_print_array_gen)
61+
* \ref saveArray() and \ref readArray() - Stream arrays to binary files
62+
* \ref toString() - toString function returns the array and data as a string
63+
64+
* CUDA specific functionality
65+
* \ref getStream() - Returns default CUDA stream ArrayFire uses for the current device
66+
* \ref getNativeId() - Returns native id of the CUDA device
5367

5468
Improvements
5569
------------
@@ -60,18 +74,13 @@ Improvements
6074
* 64-bit integer support
6175
* For reductions, random, iota, range, diff1, diff2, accum, join, shift
6276
and tile
63-
* sum and product
64-
* Support for NaN value substitution
6577
* convolve
6678
* Support for non-overlapping batched convolutions
6779
* Complex Arrays
6880
* Fix binary ops on complex inputs of mixed types
6981
* Complex type support for exp
70-
* FFT
71-
* Support for r2c and c2r FFT
72-
* Support for in place FFT
7382
* tile
74-
* is now a JIT function
83+
* Performance improvements by using JIT when possible.
7584
* Add AF_API_VERSION macro
7685
* Allows disabling of API to maintain consistency with previous versions
7786
* Other Performance Improvements
@@ -123,9 +132,14 @@ Distribution Changes
123132

124133
Known Issues
125134
------------
126-
* OpenBlas can cause issues with QR
135+
* OpenBlas can cause issues with QR factorization in CPU backend
127136
* FreeImage older than 3.10 can cause issues with loadImageMem and
128137
saveImageMem
138+
* OpenCL backend issues on OSX
139+
* AMD GPUs not supported because of driver issues
140+
* Intel CPUs not supported
141+
* Linear algebra functions do not work on Intel GPUs.
142+
* Stability and correctness issues with open source OpenCL implementations such as Beignet, GalliumCompute.
129143

130144
v3.0.2
131145
==============

include/af/cuda.h

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,26 @@ extern "C" {
1818

1919
#if AF_API_VERSION >= 31
2020
/**
21-
Get the stream for the CUDA device with \ref id in ArrayFire context
21+
Get the stream for the CUDA device with \p id in ArrayFire context
2222
23-
\param[out] CUDA Stream of device with \ref id in ArrayFire context
24-
\param[in] ArrayFire device id
23+
\param[out] stream CUDA Stream of device with \p id in ArrayFire context
24+
\param[in] id ArrayFire device id
2525
\returns \ref af_err error code
26+
27+
\ingroup cuda_mat
2628
*/
2729
AFAPI af_err afcu_get_stream(cudaStream_t* stream, int id);
2830
#endif
2931

3032
#if AF_API_VERSION >= 31
3133
/**
32-
Get the native device id of the CUDA device with \ref id in ArrayFire context
34+
Get the native device id of the CUDA device with \p id in ArrayFire context
3335
34-
\param[out] native device id of the CUDA device with \ref id in ArrayFire context
35-
\param[in] ArrayFire device id
36+
\param[out] nativeid native device id of the CUDA device with \p id in ArrayFire context
37+
\param[in] id ArrayFire device id
3638
\returns \ref af_err error code
39+
40+
\ingroup cuda_mat
3741
*/
3842
AFAPI af_err afcu_get_native_id(int* nativeid, int id);
3943
#endif
@@ -49,9 +53,9 @@ namespace afcu
4953

5054
#if AF_API_VERSION >= 31
5155
/**
52-
Get the stream for the CUDA device with \ref id in ArrayFire context
56+
Get the stream for the CUDA device with \p id in ArrayFire context
5357
54-
\param[in] ArrayFire device id
58+
\param[in] id ArrayFire device id
5559
\returns cuda stream used by CUDA device
5660
5761
\ingroup cuda_mat
@@ -68,9 +72,9 @@ static inline cudaStream_t getStream(int id)
6872

6973
#if AF_API_VERSION >= 31
7074
/**
71-
Get the native device id of the CUDA device with \ref id in ArrayFire context
75+
Get the native device id of the CUDA device with \p id in ArrayFire context
7276
73-
\param[in] ArrayFire device id
77+
\param[in] id ArrayFire device id
7478
\returns cuda native id of device
7579
7680
\ingroup cuda_mat

include/af/data.h

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -204,26 +204,16 @@ namespace af
204204
const dim_t d3, const dtype ty=f32);
205205

206206
/**
207-
\defgroup data_func_setseed setSeed
208-
Set the seed for the random number generator
209-
210-
211207
\param[in] seed is a 64 bit unsigned integer
212208
213-
\ingroup data_mat
214-
\ingroup arrayfire_func
209+
\ingroup data_func_setseed
215210
*/
216211
AFAPI void setSeed(const uintl seed);
217212

218213
/**
219-
\defgroup data_func_getseed getSeed
220-
Get the seed for the random number generator
221-
222-
223214
\returns seed which is a 64 bit unsigned integer
224215
225-
\ingroup data_mat
226-
\ingroup arrayfire_func
216+
\ingroup data_func_getseed
227217
*/
228218
AFAPI uintl getSeed();
229219

@@ -654,26 +644,16 @@ extern "C" {
654644
AFAPI af_err af_randn(af_array *out, const unsigned ndims, const dim_t * const dims, const af_dtype type);
655645

656646
/**
657-
\defgroup data_func_setseed setSeed
658-
Set the seed for the random number generator
659-
660-
661647
\param[in] seed is a 64 bit unsigned integer
662648
663-
\ingroup data_mat
664-
\ingroup arrayfire_func
649+
\ingroup data_func_setseed
665650
*/
666651
AFAPI af_err af_set_seed(const uintl seed);
667652

668653
/**
669-
\defgroup data_func_getseed getSeed
670-
Get the seed for the random number generator
671-
672-
673654
\param[out] seed which is a 64 bit unsigned integer
674655
675-
\ingroup data_mat
676-
\ingroup arrayfire_func
656+
\ingroup data_func_getseed
677657
*/
678658
AFAPI af_err af_get_seed(uintl *seed);
679659

include/af/util.h

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -119,37 +119,6 @@ namespace af
119119

120120
#define GET_PRINT_MACRO(_1, _2, NAME, ...) NAME
121121

122-
/**
123-
Macro to print an array along with the variable name
124-
125-
\param[in] exp the array to be printed
126-
\param[in] precision (optional) is the number of decimal places to be printed
127-
128-
\code
129-
af::array myarray = randu(3, 3);
130-
int myprecision = 2;
131-
132-
af_print(myarray); // Defaults precision to 4 decimal places
133-
// A [3 3 1 1]
134-
// 0.0010 311.3614 1.6264
135-
// 60.3298 497.9737 359.5948
136-
// 165.4467 113.7310 5.2294
137-
138-
af_print(myarray, myprecision); // Uses myprecision decimal places
139-
// A [3 3 1 1]
140-
// 0.00 311.36 1.63
141-
// 60.33 497.97 359.59
142-
// 165.45 113.73 5.23
143-
144-
af_print(myarray, 6); // Uses 6 decimal places
145-
// A [3 3 1 1]
146-
// 0.001029 311.361402 1.626432
147-
// 60.329828 497.973728 359.594787
148-
// 165.446732 113.730984 5.229350
149-
\endcode
150-
151-
\ingroup print_func_print
152-
*/
153122
#define af_print(...) GET_PRINT_MACRO(__VA_ARGS__, AF_PRINT2, AF_PRINT1)(__VA_ARGS__)
154123

155124
#else
@@ -189,7 +158,7 @@ extern "C" {
189158
#if AF_API_VERSION >= 31
190159
/**
191160
\param[out] index is the index location of the array in the file
192-
\param[in] key is an expression used as tag/key for the array during \ref readArray
161+
\param[in] key is an expression used as tag/key for the array during \ref readArray()
193162
\param[in] arr is the array to be written
194163
\param[in] filename is the path to the location on disk
195164
\param[in] append is used to append to an existing file when true and create or

0 commit comments

Comments
 (0)