ucar.ma2.Index.transpose()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(1.2k)|赞(0)|评价(0)|浏览(84)

本文整理了Java中ucar.ma2.Index.transpose()方法的一些代码示例,展示了Index.transpose()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Index.transpose()方法的具体详情如下:
包路径:ucar.ma2.Index
类名称:Index
方法名:transpose

Index.transpose介绍

[英]create a new Index based on current one, except transpose two of the indices.
[中]在当前索引的基础上创建一个新索引,除了转置两个索引之外。

代码示例

代码示例来源:origin: Unidata/thredds

/**
 * Create a new Array using same backing store as this Array, by
 * transposing two of the indices.
 *
 * @param dim1 transpose these two indices
 * @param dim2 transpose these two indices
 * @return the new Array
 */
public Array transpose(int dim1, int dim2) {
 return createView(indexCalc.transpose(dim1, dim2));
}

代码示例来源:origin: edu.ucar/netcdf

/**
 * Create a new Array using same backing store as this Array, by
 * transposing two of the indices.
 *
 * @param dim1 transpose these two indices
 * @param dim2 transpose these two indices
 * @return the new Array
 */
public Array transpose(int dim1, int dim2) {
 return createView(indexCalc.transpose(dim1, dim2));
}

代码示例来源:origin: edu.ucar/cdm

/**
 * Create a new Array using same backing store as this Array, by
 * transposing two of the indices.
 *
 * @param dim1 transpose these two indices
 * @param dim2 transpose these two indices
 * @return the new Array
 */
public Array transpose(int dim1, int dim2) {
 return createView(indexCalc.transpose(dim1, dim2));
}

相关文章