scipy.sparse.csc_array.

scipy.sparse.csc_array.has_canonical_format#

property csc_array.has_canonical_format#

判断数组/矩阵是否具有排序的索引且没有重复项

返回值
  • True:如果以上条件适用

  • False:否则

has_canonical_format 隐含 has_sorted_indices,所以如果后者标志为 False,前者也会为 False;如果发现前者为 True,则后者标志也会被设置。