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

x33g5p2x  于2022-01-23 转载在 其他  
字(1.1k)|赞(0)|评价(0)|浏览(101)

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

Index.flip介绍

[英]Create a new Index based on current one, except flip the index so that it runs from shape[index]-1 to 0. Leave rightmost vlen alone.
[中]在当前索引的基础上创建一个新索引,但翻转索引使其从shape[Index]-1运行到0。别管最右边的维伦。

代码示例

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

/**
 * Create a new Array using same backing store as this Array, by
 * flipping the index so that it runs from shape[index]-1 to 0.
 *
 * @param dim dimension to flip
 * @return the new Array
 */
public Array flip(int dim) {
 return createView(indexCalc.flip(dim));
}

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

/**
 * Create a new Array using same backing store as this Array, by
 * flipping the index so that it runs from shape[index]-1 to 0.
 *
 * @param dim dimension to flip
 * @return the new Array
 */
public Array flip(int dim) {
 return createView(indexCalc.flip(dim));
}

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

/**
 * Create a new Array using same backing store as this Array, by
 * flipping the index so that it runs from shape[index]-1 to 0.
 *
 * @param dim dimension to flip
 * @return the new Array
 */
public Array flip(int dim) {
 return createView(indexCalc.flip(dim));
}

相关文章