// File: /workspace/github_cpp_makefile_star2_O2/icemiliang[P]vot/src/vot/../../include/Eigen/src/SparseCore/SparseMatrix.h
// Function: Eigen::SparseMatrix<double, 0, int>& Eigen::SparseMatrix<double, 0, int>::operator=<Eigen::Transpose<Eigen::SparseMatrix<double, 0, int>>>(Eigen::SparseMatrixBase<Eigen::Transpose<Eigen::SparseMatrix<double, 0, int>>> const&)
EIGEN_DONT_INLINE SparseMatrix<Scalar,_Options,_StorageIndex>& SparseMatrix<Scalar,_Options,_StorageIndex>::operator=(const SparseMatrixBase<OtherDerived>& other)
{
  EIGEN_STATIC_ASSERT((internal::is_same<Scalar, typename OtherDerived::Scalar>::value),
        YOU_MIXED_DIFFERENT_NUMERIC_TYPES__YOU_NEED_TO_USE_THE_CAST_METHOD_OF_MATRIXBASE_TO_CAST_NUMERIC_TYPES_EXPLICITLY)

  #ifdef EIGEN_SPARSE_CREATE_TEMPORARY_PLUGIN
    EIGEN_SPARSE_CREATE_TEMPORARY_PLUGIN
  #endif
      
  const bool needToTranspose = (Flags & RowMajorBit) != (internal::evaluator<OtherDerived>::Flags & RowMajorBit);
  if (needToTranspose)
  {
    #ifdef EIGEN_SPARSE_TRANSPOSED_COPY_PLUGIN
      EIGEN_SPARSE_TRANSPOSED_COPY_PLUGIN
    #endif
    // two passes algorithm:
    //  1 - compute the number of coeffs per dest inner vector
    //  2 - do the actual copy/eval
    // Since each coeff of the rhs has to be evaluated twice, let's evaluate it if needed
    typedef typename internal::nested_eval<OtherDerived,2,typename internal::plain_matrix_type<OtherDerived>::type >::type OtherCopy;
    typedef typename internal::remove_all<OtherCopy>::type _OtherCopy;
    typedef internal::evaluator<_OtherCopy> OtherCopyEval;
    OtherCopy otherCopy(other.derived());
    OtherCopyEval otherCopyEval(otherCopy);

    SparseMatrix dest(other.rows(),other.cols());
    Eigen::Map<IndexVector> (dest.m_outerIndex,dest.outerSize()).setZero();

    // pass 1
    // FIXME the above copy could be merged with that pass
    for (Index j=0; j<otherCopy.outerSize(); ++j)
      for (typename OtherCopyEval::InnerIterator it(otherCopyEval, j); it; ++it)
        ++dest.m_outerIndex[it.index()];

    // prefix sum
    StorageIndex count = 0;
    IndexVector positions(dest.outerSize());
    for (Index j=0; j<dest.outerSize(); ++j)
    {
      StorageIndex tmp = dest.m_outerIndex[j];
      dest.m_outerIndex[j] = count;
      positions[j] = count;
      count += tmp;
    }
    dest.m_outerIndex[dest.outerSize()] = count;
    // alloc
    dest.m_data.resize(count);
    // pass 2
    for (StorageIndex j=0; j<otherCopy.outerSize(); ++j)
    {
      for (typename OtherCopyEval::InnerIterator it(otherCopyEval, j); it; ++it)
      {
        Index pos = positions[it.index()]++;
        dest.m_data.index(pos) = j;
        dest.m_data.value(pos) = it.value();
      }
    }
    this->swap(dest);
    return *this;
  }
  else
  {
    if(other.isRValue())
    {
      initAssignment(other.derived());
    }
    // there is no special optimization
    return Base::operator=(other.derived());
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdi, %rbx
movq 0x8(%rsi), %r14
movq 0x8(%r14), %rsi
movq 0x10(%r14), %rdx
leaq 0x40(%rsp), %r15
movq %r15, %rdi
callq 0xee46
movq 0x8(%r15), %rdx
movq 0x18(%r15), %rsi
leaq 0x8(%rsp), %rdi
callq 0x10e72
leaq 0x8(%rsp), %rdi
callq 0x10daa
xorl %r15d, %r15d
leaq 0x8(%rsp), %r12
cmpq 0x8(%r14), %r15
jge 0x11e6e
movq %r12, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x12594
movq 0x28(%rsp), %rax
movq 0x10(%rsp), %rcx
movq 0x20(%rsp), %rdx
movq 0x58(%rsp), %rsi
cmpq %rax, %rdx
jge 0x11e69
movslq (%rcx,%rdx,4), %rdi
incl (%rsi,%rdi,4)
incq %rdx
movq %rdx, 0x20(%rsp)
jmp 0x11e53
incq %r15
jmp 0x11e2b
movq 0x48(%rsp), %rax
leaq 0x8(%rsp), %rsi
movq %rax, (%rsi)
leaq 0x30(%rsp), %rdi
callq 0x100c6
xorl %r13d, %r13d
leaq 0x30(%rsp), %r15
xorl %r12d, %r12d
movq 0x48(%rsp), %rcx
movq 0x58(%rsp), %rax
cmpq %rcx, %r12
jge 0x11ebd
movl (%rax,%r12,4), %ebp
movl %r13d, (%rax,%r12,4)
movq %r15, %rdi
movq %r12, %rsi
callq 0x10dee
movl %r13d, (%rax)
addl %ebp, %r13d
incq %r12
jmp 0x11e90
movl %r13d, (%rax,%rcx,4)
leaq 0x68(%rsp), %rdi
movslq %r13d, %rsi
xorps %xmm0, %xmm0
callq 0x10c46
xorl %r15d, %r15d
leaq 0x8(%rsp), %r12
leaq 0x30(%rsp), %r13
cmpq %r15, 0x8(%r14)
jle 0x11f48
movq %r12, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x12594
movq 0x20(%rsp), %rax
cmpq 0x28(%rsp), %rax
jge 0x11f43
movq 0x10(%rsp), %rcx
movslq (%rcx,%rax,4), %rsi
movq %r13, %rdi
callq 0x10dee
movslq (%rax), %rcx
leal 0x1(%rcx), %edx
movl %edx, (%rax)
movq 0x70(%rsp), %rax
movl %r15d, (%rax,%rcx,4)
movq 0x8(%rsp), %rdx
movq 0x20(%rsp), %rax
movsd (%rdx,%rax,8), %xmm0
movq 0x68(%rsp), %rdx
movsd %xmm0, (%rdx,%rcx,8)
incq %rax
movq %rax, 0x20(%rsp)
jmp 0x11ef7
incq %r15
jmp 0x11ede
leaq 0x40(%rsp), %rsi
movq %rbx, %rdi
callq 0x10e24
movq 0x30(%rsp), %rdi
callq 0x7410
leaq 0x40(%rsp), %rdi
callq 0xf37a
movq %rbx, %rax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x11f88
jmp 0x11f8d
jmp 0x11f88
jmp 0x11f8d
jmp 0x11f8d
movq %rax, %rbx
jmp 0x11f9a
movq %rax, %rbx
movq 0x30(%rsp), %rdi
callq 0x7410
leaq 0x40(%rsp), %rdi
callq 0xf37a
movq %rbx, %rdi
callq 0x76c0