pub fn csr_transpose_pattern(
col_idx: &[i32],
row_ptr: &[i32],
n_rows: usize,
n_cols: usize,
) -> (Vec<i32>, Vec<i32>)Expand description
Compute (col_idx_T, row_ptr_T) — the sparsity pattern of Aᵀ
— from A’s pattern. This is the structural step that must
happen before SPARSE_TRANSPOSE_VALUES can permute the values
per Newton iteration. Result is independent of the values, so
downstream callers compute it once and embed as Op::Constant.