Functions | |
| array | diff1 (const array &in, int dim=-1) |
| difference between elements along a dimension | |
| array | diff2 (const array &in, int dim=-1) |
| difference between every other element along a dimension | |
| void | grad (array &dx, array &dy, const array &in) |
| Gradient of a matrix (central differencing). | |
| void | grid (array &x, array &y, const array &v1, const array &v2) |
| Create a regular mesh grid. | |
| array af::diff1 | ( | const array & | in, |
| int | dim = -1 |
||
| ) |
difference between elements along a dimension
| [in] | in | |
| [in] | dim | dimension along which to operate (-1 indicates first nonsingleton dimension) |
| array af::diff2 | ( | const array & | in, |
| int | dim = -1 |
||
| ) |
difference between every other element along a dimension
| [in] | in | |
| [in] | dim | dimension along which to operate (-1 indicates first nonsingleton dimension) |
| void af::grad | ( | array & | dx, |
| array & | dy, | ||
| const array & | in | ||
| ) |
Gradient of a matrix (central differencing).
| [in] | in | 2D |
| [out] | dx | gradient along the first dimension |
| [out] | dy | gradient along the second dimension |
| void af::grid | ( | array & | x, |
| array & | y, | ||
| const array & | v1, | ||
| const array & | v2 | ||
| ) |
Create a regular mesh grid.
Transform the domain specified by vectors v1 and v2 into arrays x and y. The rows of array X are copies of vector v1, columns of output Y are copies of vector v2.
| [in] | v1 | indicates row to be repeated |
| [in] | v2 | indicates the column to be repeated |
| [out] | x | matrix with rows as copies of v1 |
| [out] | y | matrix with columns as copies of v2 |