Returns True if the array is Fortran contiguous but not C contiguous.
This function is obsolete and, because of changes due to relaxed stride checking, its return value for the same array may differ for versions of NumPy >= 1.10.0 and previous versions. If you only want to check if an array is Fortran contiguous use a.flags.f_contiguous instead.
引用^{} documentation (我的重点):
这里有几点需要注意:
有一种检查数组的替代方法,应该适合您的情况:
不能编辑标志。不过,有一些技巧。例如,可以使用转置将2D C数组转换为F数组(尽管使用交换的维度):
pyCGNS无法创建列向量。你知道吗
我用C语言编程CGNS报头(base和zone)解决了这个问题
然后在pyCGNS中从C程序加载创建的文件并在其上构建。你知道吗
函数是obsolete。它返回:
您的数组是fortran连续的,C连续的。你知道吗
相关问题 更多 >
编程相关推荐