|
Interior-point-optimisation
1.0-1
Interior-pointoptimisationlibrary
|
This class gives direct access to a subvector of a vector. More...


Public Member Functions | |
| DirectSubvector (size_t const offset, size_t const length) | |
| The constructor needs an offset and a length. More... | |
| virtual gsl::vector const | get (gsl::vector const &vector) const |
| This returns a subvector using offset and length without checking bounds directly. More... | |
| virtual void | set (gsl::vector &vector, gsl::vector const &subvector, double const scale=1.0) const |
| Set vector from a subvector without checking bounds. More... | |
| virtual void | add (gsl::vector &vector, gsl::vector const &subvector, double const scale=1.0) const |
| Add to vector from a subvector without checking bounds. More... | |
| virtual void | set (gsl::matrix &matrix, gsl::matrix const &submatrix, double const scale=1.0) const |
| Set matrix from a submatrix without checking bounds. More... | |
| virtual void | add (gsl::matrix &matrix, gsl::matrix const &submatrix, double const scale=1) const |
| Add to matrix from a submatrix without checking bounds. More... | |
| virtual void | set (gsl::matrix &matrix, gsl::vector const &vector, double const scale=1) const |
| Set matrix from a vector without checking bounds. More... | |
| virtual void | add (gsl::matrix &matrix, gsl::vector const &vector, double const scale=1.0) const |
| Add to matrix from a vector without checking bounds. More... | |
Public Member Functions inherited from ipo::Model::Subvector | |
| Subvector () | |
| Default constructor. More... | |
Private Attributes | |
| size_t const | offset |
| The offset. More... | |
| size_t const | length |
| The length. More... | |
This class gives direct access to a subvector of a vector.
| Model::DirectSubvector::DirectSubvector | ( | size_t const | offset, |
| size_t const | length | ||
| ) |
|
inlinevirtual |
Add to vector from a subvector without checking bounds.
| vector | The vector |
| subvector | The subvector |
| scale | A scaling factor: computes vector += scale * [expanded] subvector |
Implements ipo::Model::Subvector.
Definition at line 506 of file Model.hpp.
References length.
|
inlinevirtual |
Add to matrix from a submatrix without checking bounds.
Computes matrix += scale * [expanded] submatrix.
| matrix | The matrix |
| submatrix | The submatrix |
| scale | A scaling factor |
Implements ipo::Model::Subvector.
Definition at line 531 of file Model.hpp.
References length.
|
inlinevirtual |
Add to matrix from a vector without checking bounds.
Computes matrix += scale * [expanded] submatrix * [expanded] vector transpose
| matrix | The matrix |
| vector | The vector |
| scale | A scaling factor |
Implements ipo::Model::Subvector.
Definition at line 564 of file Model.hpp.
References length.
|
inlinevirtual |
This returns a subvector using offset and length without checking bounds directly.
| vector | The vector |
Implements ipo::Model::Subvector.
|
inlinevirtual |
Set vector from a subvector without checking bounds.
| vector | The vector |
| subvector | The subvector |
| scale | A scaling factor: computes vector += scale * [expanded] subvector |
Implements ipo::Model::Subvector.
Definition at line 497 of file Model.hpp.
References length.
|
inlinevirtual |
Set matrix from a submatrix without checking bounds.
| matrix | The matrix |
| submatrix | The submatrix |
| scale | A scaling factor: computes matrix += scale * [expanded] submatrix |
Implements ipo::Model::Subvector.
Definition at line 515 of file Model.hpp.
References length.
|
inlinevirtual |
Set matrix from a vector without checking bounds.
| matrix | The matrix |
| vector | The vector |
| scale | A scaling factor: computes matrix += scale * [expanded] vector * [expanded] vector transpose |
Implements ipo::Model::Subvector.
Definition at line 548 of file Model.hpp.
References length.
|
private |
|
private |