This class gives direct access to a subvector of a vector.
More...
|
| | IndirectSubvector (size_t const size) |
| | The constructor needs a vector to translate the indices of subvector to indices of vector: that is subvector[i] = vector[(*indices)[i]]. More...
|
| |
| virtual gsl::vector const | get (gsl::vector const &vector) const |
| | This returns a subvector using indices 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 using indices 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 using indices 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.0) 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...
|
| |
| | Subvector () |
| | Default constructor. More...
|
| |
This class gives direct access to a subvector of a vector.
Definition at line 587 of file Model.hpp.
| Model::IndirectSubvector::IndirectSubvector |
( |
size_t const |
size | ) |
|
The constructor needs a vector to translate the indices of subvector to indices of vector: that is subvector[i] = vector[(*indices)[i]].
- Parameters
-
| size | The size of the vector of indices |
Definition at line 34 of file Model.cc.
| virtual void ipo::Model::IndirectSubvector::add |
( |
gsl::vector & |
vector, |
|
|
gsl::vector const & |
subvector, |
|
|
double const |
scale = 1.0 |
|
) |
| const |
|
inlinevirtual |
Add to vector from a using indices without checking bounds.
- Parameters
-
| vector | The vector |
| subvector | The subvector |
| scale | A scaling factor: computes vector += scale * [expanded] subvector |
Implements ipo::Model::Subvector.
Definition at line 623 of file Model.hpp.
| virtual void ipo::Model::IndirectSubvector::add |
( |
gsl::matrix & |
matrix, |
|
|
gsl::matrix const & |
submatrix, |
|
|
double const |
scale = 1 |
|
) |
| const |
|
inlinevirtual |
Add to matrix from a submatrix without checking bounds.
Computes matrix += scale * [expanded] submatrix.
- Parameters
-
| matrix | The matrix |
| submatrix | The submatrix |
| scale | A scaling factor |
Implements ipo::Model::Subvector.
Definition at line 651 of file Model.hpp.
| virtual void ipo::Model::IndirectSubvector::add |
( |
gsl::matrix & |
matrix, |
|
|
gsl::vector const & |
vector, |
|
|
double const |
scale = 1.0 |
|
) |
| const |
|
inlinevirtual |
Add to matrix from a vector without checking bounds.
Computes matrix += scale * [expanded] submatrix * [expanded] vector transpose
- Parameters
-
| matrix | The matrix |
| vector | The vector |
| scale | A scaling factor |
Implements ipo::Model::Subvector.
Definition at line 687 of file Model.hpp.
| virtual gsl::vector const ipo::Model::IndirectSubvector::get |
( |
gsl::vector const & |
vector | ) |
const |
|
inlinevirtual |
This returns a subvector using indices without checking bounds directly.
- Parameters
-
- Returns
- a subvector of vector
Implements ipo::Model::Subvector.
Definition at line 601 of file Model.hpp.
| virtual void ipo::Model::IndirectSubvector::set |
( |
gsl::vector & |
vector, |
|
|
gsl::vector const & |
subvector, |
|
|
double const |
scale = 1.0 |
|
) |
| const |
|
inlinevirtual |
Set vector from a subvector using indices without checking bounds.
- Parameters
-
| vector | The vector |
| subvector | The subvector |
| scale | A scaling factor: computes vector += scale * [expanded] subvector |
Implements ipo::Model::Subvector.
Definition at line 613 of file Model.hpp.
| virtual void ipo::Model::IndirectSubvector::set |
( |
gsl::matrix & |
matrix, |
|
|
gsl::matrix const & |
submatrix, |
|
|
double const |
scale = 1.0 |
|
) |
| const |
|
inlinevirtual |
Set matrix from a submatrix without checking bounds.
- Parameters
-
| matrix | The matrix |
| submatrix | The submatrix |
| scale | A scaling factor: computes matrix += scale * [expanded] submatrix |
Implements ipo::Model::Subvector.
Definition at line 633 of file Model.hpp.
| virtual void ipo::Model::IndirectSubvector::set |
( |
gsl::matrix & |
matrix, |
|
|
gsl::vector const & |
vector, |
|
|
double const |
scale = 1.0 |
|
) |
| const |
|
inlinevirtual |
Set matrix from a vector without checking bounds.
- Parameters
-
| 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 669 of file Model.hpp.
The documentation for this class was generated from the following files: