A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://arrayfire.org/docs/group__manip__func__reorder.htm below:

ArrayFire: reorder

Reorder an array. More...

Reorder an array.

Exchanges data of an array such that the requested change in dimension is satisfied. The linear ordering of data within the array is preserved.

a [2 2 3 1]

1.0000 3.0000

2.0000 4.0000

1.0000 3.0000

2.0000 4.0000

1.0000 3.0000

2.0000 4.0000

reorder(a, 1, 0, 2) [2 2 3 1]

1.0000 2.0000

3.0000 4.0000

1.0000 2.0000

3.0000 4.0000

1.0000 2.0000

3.0000 4.0000

reorder(a, 2, 0, 1) [3 2 2 1]

1.0000 2.0000

1.0000 2.0000

1.0000 2.0000

3.0000 4.0000

3.0000 4.0000

3.0000 4.0000

◆ af_reorder()

C Interface to reorder an array.

Parameters
[out] out reordered array [in] in input array [in] x specifies which dimension should be first [in] y specifies which dimension should be second [in] z specifies which dimension should be third [in] w specifies which dimension should be fourth
Returns
AF_SUCCESS, if function returns successfully, else an af_err code is given
◆ reorder() AFAPI array reorder ( const arrayin, const unsigned  x, const unsigned  y = 1, const unsigned  z = 2, const unsigned  w = 3  )

C++ Interface to reorder an array.

Parameters
[in] in input array [in] x specifies which dimension should be first [in] y specifies which dimension should be second [in] z specifies which dimension should be third [in] w specifies which dimension should be fourth
Returns
reordered array

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4