|
SoPlex Doxygen Documentation
|
Go to the documentation of this file.
52 if ( index(i) >= newdim)
70 for( int i = 0; i < num; ++i)
208 for( int i = 0; i < dim(); ++i)
253 for ( int i = 0; i < vec. size(); ++i)
292 for ( int i = 0; i < vec. size(); ++i)
312 for ( int i = 0; i < size(); ++i)
326 for( int i = 0; i < num; ++i)
345 for( int i = 0; i < num; ++i)
359 #if 0 // buggy and not used
371 for (i = svec. size() - 1; i >= 0; --i)
382 for (--i; i >= 0; --i)
390 x = xx * svec. value(i);
409 throw SPxInternalCodeException( "XSSVEC01 This should never happen.");
415 Real* last = rv + svec. dim() - 1;
429 *ii++ = int(v - val);
442 *ii++ = int(v - val);
465 for (i = svec. size() - 1; i >= 0; --i)
470 x = v[j] + xx * svec. value(i);
481 x = xx * svec. value(i);
495 for (; iptr < endptr; ++iptr)
503 num = int(iiptr - idx);
540 for( int i = 0; i < size(); ++i)
550 for( int i = 0; i < rhs. dim(); ++i)
579 for( int i = 0; i < size(); ++i)
589 for( int i = 0; i < rhs. dim(); ++i)
591 if (rhs. val[i] != 0.0)
629 for( int i = 0; i < rhs. size(); ++i)
631 int k = rhs. index(i);
652 assert(x. size() == 1);
655 const int nzidx = x. idx[0];
656 const Real nzval = x. val[nzidx];
665 for ( register int j = 0; j < num; j++ )
688 int curidx = x. idx[0];
690 const SVector& A0 = A [curidx];
701 for ( register int j = 0; j < num; ++j )
704 const Real product = x0 * elt. val;
706 idx[ nonzero_idx ] = elt. idx;
714 for ( register int i = 1; i < x. size(); ++i )
718 const SVector& Ai = A [curidx];
724 for ( register int j = 0; j < Ai. size(); ++j )
727 idx[ nonzero_idx ] = elt. idx;
739 oldval += xi * elt. val;
755 for ( register int i = 0; i < nonzero_idx; ++i )
762 idx[nz_counter] = curidx;
782 bool A_is_zero = true;
783 for ( int i = 0; i < x. size(); ++i )
785 const int curidx = x. idx[i];
787 const SVector& Ai = A [curidx];
789 if ( A_is_zero && Ai. size() > 0 )
792 for ( register int j = 0; j < Ai. size(); ++j )
807 assert(A. num() == x. dim());
842 for ( int i = dim(); i-- > 0;)
862 #if 0 // buggy (missing test for 'svec.size() == 0' and 'x.dim() == 0' )
877 const SVector& svec = A[ *xi++ = int(xv - x. val) ];
880 for (; elem < last; ++elem)
896 const SVector& svec = A[ *xi++ = int(xv - x. val) ];
899 for (; elem < last; ++elem)
914 for ( register int i = 0; i < x. dim(); ++i )
925 x. idx[ nzcount++ ] = i;
927 const int Aisize = Ai. size();
930 for ( register int j = 0; j < Aisize; ++j )
956 #ifdef ENABLE_CONSISTENCY_CHECKS
969 if (j < 0 && fabs( val[i]) > 0.0)
973 << "\tval = " << std::setprecision(16) << val[i]
|