$darkmode
Generate an identity matrix. More...
Functions | |
| AFAPI array | identity (const dim4 &dims, const dtype ty=f32) |
| C++ Interface to generate an identity array. More... | |
| AFAPI array | identity (const dim_t d0, const dtype ty=f32) |
| C++ Interface to generate a 1-D identity array. More... | |
| AFAPI array | identity (const dim_t d0, const dim_t d1, const dtype ty=f32) |
| C++ Interface to generate a 2-D identity array. More... | |
| AFAPI array | identity (const dim_t d0, const dim_t d1, const dim_t d2, const dtype ty=f32) |
| C++ Interface to generate a 3-D identity array. More... | |
| AFAPI array | identity (const dim_t d0, const dim_t d1, const dim_t d2, const dim_t d3, const dtype ty=f32) |
| C++ Interface to generate a 4-D identity array. More... | |
| AFAPI af_err | af_identity (af_array *out, const unsigned ndims, const dim_t *const dims, const af_dtype type) |
| C Interface to generate an identity array. More... | |
Generate an identity matrix.
| AFAPI af_err af_identity | ( | af_array * | out, |
| const unsigned | ndims, | ||
| const dim_t *const | dims, | ||
| const af_dtype | type | ||
| ) |
C Interface to generate an identity array.
| [out] | out | identity array |
| [in] | ndims | number of dimensions |
| [in] | dims | size |
| [in] | type | type |
C++ Interface to generate an identity array.
| [in] | dims | size |
| [in] | ty | type |
C++ Interface to generate a 1-D identity array.
| [in] | d0 | size of the first dimension |
| [in] | ty | type |
C++ Interface to generate a 2-D identity array.
| [in] | d0 | size of the first dimension |
| [in] | d1 | size of the second dimension |
| [in] | ty | type |
C++ Interface to generate a 3-D identity array.
| [in] | d0 | size of the first dimension |
| [in] | d1 | size of the second dimension |
| [in] | d2 | size of the third dimension |
| [in] | ty | type |
| AFAPI array af::identity | ( | const dim_t | d0, |
| const dim_t | d1, | ||
| const dim_t | d2, | ||
| const dim_t | d3, | ||
| const dtype | ty = f32 |
||
| ) |
C++ Interface to generate a 4-D identity array.
| [in] | d0 | size of the first dimension |
| [in] | d1 | size of the second dimension |
| [in] | d2 | size of the third dimension |
| [in] | d3 | size of the fourth dimension |
| [in] | ty | type |