parameters: (A, hermitian=False)
docstring: Convert sparse matrix to CSC (by transposing, if possible)
docstring_summary: Convert sparse matrix to CSC (by transposing, if possible)
docstring_tokens: Convert sparse matrix to CSC ( by transposing if possible )
function: def _fast_spmatrix_to_csc(A, hermitian=False):
      """Convert sparse matrix to CSC (by transposing, if possible)"""
      if (isspmatrix_csr(A) and hermitian
              and not np.issubdtype(A.dtype, np.complexfloating)):
          return A.T
      else:
          return A.tocsc()
function_tokens: def _fast_spmatrix_to_csc ( A , hermitian = False ) : if ( isspmatrix_csr ( A ) and hermitian and not np . issubdtype ( A . dtype , np . complexfloating ) ) : return A . T else : return A . tocsc ( )