@@ -779,7 +779,8 @@ Dcsc<IT,NT>* Dcsc<IT,NT>::PruneColumn(NT* pvals, _BinaryOperation __binary_op, b
779779template <class IT , class NT >
780780void Dcsc<IT,NT>::PruneColumnByIndex(const std::vector<IT>& ci)
781781{
782- if (ci.size () == 0 ) return ;
782+ if (ci.size () == 0 )
783+ return ;
783784
784785 /* ci is assumed to be pre-sorted */
785786
@@ -791,7 +792,7 @@ void Dcsc<IT,NT>::PruneColumnByIndex(const std::vector<IT>& ci)
791792
792793 while (j < nzc)
793794 {
794- if (c >= ci.size () || ci[c] > jc[j]) /* this means column j shouldn't be pruned, and instead should be copied */
795+ if (c >= ci.size () || ci[c] > jc[j]) /* this means column jc[j] shouldn't be pruned, and instead should be copied */
795796 {
796797 vjc.push_back (jc[j]);
797798 nzpercol.push_back (cp[j+1 ] - cp[j]);
@@ -830,13 +831,6 @@ void Dcsc<IT,NT>::PruneColumnByIndex(const std::vector<IT>& ci)
830831 std::copy (vjc.begin (), vjc.end (), jc);
831832 std::copy (vir.begin (), vir.end (), ir);
832833 std::copy (vnumx.begin (), vnumx.end (), numx);
833-
834- // std::copy(jc, jc + nzc, std::ostream_iterator<IT>(std::cout, " "));
835- // std::cout << std::endl;
836- // std::copy(cp, cp + nzc + 1, std::ostream_iterator<IT>(std::cout, " "));
837- // std::cout << std::endl;
838- // std::copy(ir, ir + nz, std::ostream_iterator<IT>(std::cout, " "));
839- // std::cout << std::endl;
840834}
841835
842836
0 commit comments