IDL transpose: perfusion arrays
来源:互联网 发布:移民行业数据分析 编辑:程序博客网 时间:2024/05/19 05:30
Examples
See Additional Examples for more information on using TRANSPOSE.
Example 1
Print a simple array and its transpose by entering:
; Create an array:
A = INDGEN(3,3)
TRANSA = TRANSPOSE(A); Print the array and its transpose:
PRINT, 'A:'
PRINT, A
PRINT, 'Transpose of A:'
PRINT, TRANSA
IDL prints:
A:
0 1 2
3 4 5
6 7 8
Transpose of A:
0 3 6
1 4 7
2 5 8
Syntax
Result = TRANSPOSE( Array [, P] )
Return Value
Returns the reflection of the array along a diagonal.
Arguments
Array
The array to be transposed.
P
A vector specifying how the dimensions of Array will be permuted. The elements of P correspond to the dimensions ofArray; the ith dimension of the output array is dimension P[i] of the input array. Each element of the vector P must be unique. Dimensions start at zero and can not be repeated.
If P is not present, the order of the dimensions of Array is reversed.
Keywords
None.
Additional Examples
Example 2
This example demonstrates multi-dimensional transposition:
; Create the array:
A = INDGEN(2, 3, 4); Take the transpose, reversing the order of the indices:
B = TRANSPOSE(A); Re-order the dimensions of A, so that the second dimension
; becomes the first, the third becomes the second, and the first
; becomes the third:
C = TRANSPOSE(A, [1, 2, 0]); View the sizes of the three arrays:
HELP, A, B, C
IDL prints:
A INT = Array[2, 3, 4]
B INT = Array[4, 3, 2]
C INT = Array[3, 4, 2]
0 0
- IDL transpose: perfusion arrays
- IDL
- IDL
- IDL
- IDL
- Matrix Transpose
- proc transpose
- Transpose File
- Transpose File
- python transpose
- tf.transpose
- np transpose
- numpy.transpose()
- Transpose File
- tf.transpose
- tf.transpose
- numpy.transpose()
- Arrays
- 尊重原创,请保证您的文章为原创作品
- HDFS 文件结构
- IDL congrid: resize the image
- 移动中间件:数据移动与应用程序设计最佳实践
- 枚举算法
- IDL transpose: perfusion arrays
- Axiom3D:Ogre中Mesh文件格式分析(一)
- 从B树、B+树、B*树谈到R 树
- 简单的抓取网页中的图片
- 尊重原创,请保证您的文章为原创作品
- 尊重原创,请保证您的文章为原创作品
- 尊重原创,请保证您的文章为原创作品
- LA5904 Please, go first
- 关于链表的升序排列问题