#include <SimpleVector.h>
Inheritance diagram for SimpleVector:
Public Methods | |
virtual void | copyIntoArray (double v[]) const |
virtual void | copyFromArray (double v[]) |
virtual void | copyFromArray (char v[]) |
virtual void | setToZero () |
virtual void | setToConstant (double c) |
virtual void | randomize (double alpha, double beta, double *ix) |
virtual void | copyFrom (OoqpVector &v) |
virtual double | infnorm () |
virtual double | onenorm () |
virtual void | min (double &m, int &index) |
virtual void | componentMult (OoqpVector &v) |
virtual void | scalarMult (double num) |
virtual void | componentDiv (OoqpVector &v) |
virtual void | writeToStream (ostream &out) const |
virtual void | writefToStream (ostream &out, const char format[]) const |
virtual void | scale (double alpha) |
virtual void | axpy (double alpha, OoqpVector &x) |
virtual void | axzpy (double alpha, OoqpVector &x, OoqpVector &z) |
virtual void | axdzpy (double alpha, OoqpVector &x, OoqpVector &z) |
virtual void | addConstant (double c) |
virtual void | gondzioProjection (double rmin, double rmax) |
virtual double | dotProductWith (OoqpVector &v) |
virtual double | shiftedDotProductWith (double alpha, OoqpVector &mystep, OoqpVector &yvec, double beta, OoqpVector &ystep) |
virtual void | negate () |
virtual void | invert () |
virtual int | allPositive () |
virtual int | numberOfNonzeros () |
virtual int | matchesNonZeroPattern (OoqpVector &select) |
virtual void | selectNonZeros (OoqpVector &select) |
virtual void | addSomeConstants (double c, OoqpVector &select) |
virtual void | writefSomeToStream (ostream &out, const char format[], OoqpVector &select) const |
virtual void | axdzpy (double alpha, OoqpVector &x, OoqpVector &z, OoqpVector &select) |
virtual int | isKindOf (int kind) |
virtual int | somePositive (OoqpVector &select) |
virtual void | divideSome (OoqpVector &div, OoqpVector &select) |
virtual double | stepbound (OoqpVector &v, double maxStep) |
virtual double | findBlocking (OoqpVector &wstep_vec, OoqpVector &u_vec, OoqpVector &ustep_vec, double maxStep, double *w_elt, double *wstep_elt, double *u_elt, double *ustep_elt, int &first_or_second) |
double * | elements () |
double & | operator[] (int i) |
|
Add c to the elements of this OoqpVector object Implements OoqpVector. |
|
Add the constant c to some of the elements of this OoqpVector
Implements OoqpVector. |
|
True if all elements of this OoqpVector are positive. Implements OoqpVector. |
|
this += alpha * x / z
Implements OoqpVector. |
|
this += alpha * x / z Implements OoqpVector. |
|
this += alpha * x Implements OoqpVector. |
|
this += alpha * x * z Implements OoqpVector. |
|
Divide the components of this OoqpVector by the components of v. Implements OoqpVector. |
|
Multiply the components of this OoqpVector by the components of v. Implements OoqpVector. |
|
Copy the elements of v into this OoqpVector object. Implements OoqpVector. |
|
Copy the elements of the C-style char array v into this OoqpVector. Implements OoqpVector. |
|
Copy the elements of the C-style array v into this OoqpVector. Implements OoqpVector. |
|
Copy the elements of this OoqpVector into the C-style array v. Implements OoqpVector. |
|
Divide selected elements of this OoqpVector by the corresponding element in div.
Implements OoqpVector. |
|
Return the dot product of this OoqpVector with v Implements OoqpVector. |
|
Returns a pointer to the elemens of this vector. |
|
Return the largest value of alpha in the interval [0,1] for which: this + alpha * wstep_vec >= 0 and u_vec + alpha * ustep_vec >= 0. Also return the components this[i], wstep_vec[i], u_vec[i], ustep_vec[i], where i is the index of the "blocking" component - the one that limits the step length to alpha. Also return first_or_second=1 if the blocking component is in "this", and first_or_second=2 if the blocking component is in u_vec. Implements OoqpVector. |
|
perform the projection operation required by Gondzio algorithm: replace each component of the vector v by vp_i - v_i, where vp_i is the projection of v_i onto the box [rmin, rmax]. Then if the resulting value is less than -rmax, replace it by -rmax. Implements OoqpVector. |
|
Return the infinity norm of this OoqpVector object. Implements OoqpVector. |
|
Invert (1/x) the elements of this OoqpVector. Implements OoqpVector. |
|
True if this OoqpVector identifies itself as having the type kind. Classes overriding this method must call the inherited version, so that the class hierarchy is supported. Implements OoqpVector. |
|
True if this OoqpVector has the same non-zero pattern as select. Implements OoqpVector. |
|
Return the minimum value in this vector, and the index at which it occurs. Implements OoqpVector. |
|
Negate all the elements of this OoqpVector object. Implements OoqpVector. |
|
Return the number of non-zero elements in this OoqpVector. Implements OoqpVector. |
|
Return the one norm of this OoqpVector object. Implements OoqpVector. |
|
Access the individual elments of this vector. |
|
Fill this OoqpVector with random elements
Implements OoqpVector. |
|
Multiply the components of this OoqpVector by num. Implements OoqpVector. |
|
Scale each element of this OoqpVector by the constant alpha Implements OoqpVector. |
|
Set each element of this OoqpVector to zero if the corresponding element in select is zero. Implements OoqpVector. |
|
Set all elements of this OoqpVector to the constant value c Implements OoqpVector. |
|
Set all elements of this OoqpVector to zero. Implements OoqpVector. |
|
Return the inner product <this + alpha * mystep, yvec + beta * ystep > Implements OoqpVector. |
|
True if selected elements of this OoqpVector are positive
Implements OoqpVector. |
|
Return the largest value of alpha in the interval [0, maxStep] for which: this + alpha * v >= 0. Set firstBlocking to be the "blocking" index i - the one that limits the step length to alpha. Implements OoqpVector. |
|
Write some elements of this OoqpVector to a stream, subject to a format.
Implements OoqpVector. |
|
Write the components of this OoqpVector to a stream, subject to a format.
Implements OoqpVector. |