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

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

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

Index.permute介绍

[英]create a new Index based on a permutation of the current indices; vlen fails.
[中]基于当前索引的排列创建新索引;维伦失败了。

代码示例

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

/**
 * Create a new Array using same backing store as this Array, by
 * permuting the indices.
 *
 * @param dims the old index dims[k] becomes the new kth index.
 * @return the new Array
 * @throws IllegalArgumentException: wrong rank or dim[k] not valid
 */
public Array permute(int[] dims) {
 return createView(indexCalc.permute(dims));
}

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

/**
 * Create a new Array using same backing store as this Array, by
 * permuting the indices.
 *
 * @param dims the old index dims[k] becomes the new kth index.
 * @return the new Array
 * @throws IllegalArgumentException: wrong rank or dim[k] not valid
 */
public Array permute(int[] dims) {
 return createView(indexCalc.permute(dims));
}

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

/**
 * Create a new Array using same backing store as this Array, by
 * permuting the indices.
 *
 * @param dims the old index dims[k] becomes the new kth index.
 * @return the new Array
 * @throws IllegalArgumentException: wrong rank or dim[k] not valid
 */
public Array permute(int[] dims) {
 return createView(indexCalc.permute(dims));
}

相关文章