Go to the source code of this file.
|
int | main (int, char const **) |
|
◆ main()
int main |
( |
int |
, |
|
|
char const ** |
|
|
) |
| |
Definition at line 4 of file positive_quadrant_projection.cc.
7 t_Matrix input = 2 * t_Matrix::Ones(5, 5) + t_Matrix::Random(5, 5);
12 if ((posquad.array().imag() != 0).any())
throw std::runtime_error(
"Imaginary part not zero");
15 posquad.real()(2, 3) = input.real()(2, 3);
16 if ((posquad.array().real() != input.array().real()).all())
17 throw std::runtime_error(
"Real part was modified");
sopt::Matrix< Scalar > t_Matrix
Eigen::CwiseUnaryOp< const details::ProjectPositiveQuadrant< typename T::Scalar >, const T > positive_quadrant(Eigen::DenseBase< T > const &input)
Expression to create projection onto positive quadrant.
Eigen::Array< T, Eigen::Dynamic, Eigen::Dynamic > Image
A 2-dimensional list of elements of given type.
References sopt::positive_quadrant().