Skip to content

Commit

Permalink
add documentation for the intersection between an Hpolytope and an el…
Browse files Browse the repository at this point in the history
…lipsoid
  • Loading branch information
Apostolos Chalkis committed Oct 31, 2023
1 parent 215149d commit 255b083
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 2 deletions.
22 changes: 22 additions & 0 deletions R-proj/man/PolytopeIntersectEllipsoid.Rd
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
\name{PolytopeIntersectEllipsoid}
\alias{PolytopeIntersectEllipsoid}
\title{An exposed class to represent an intersection between an H-polytope and an ellipsoid.}

\description{
An intersection between of an H-polytope, defined by a set of linear inequalities, or a matrix A and an \eqn{m}-dimensional vector b s.t., \eqn{x, Ax\leq b}, and an ellipsoid defined by a positive definite matrix E s.t., \eqn{x, x^TEx \leq 1}.}.
}
\section{Fields}{
\itemize{
\item{\code{A} }{ \eqn{m \times d} matrix A}

\item{\code{b} }{ \eqn{m}-dimensional vector b}

\item{\code{E} }{ \eqn{d \times d} positive definite matrix E}

\item{\code{type} }{ An integer that declares the representation of the convex body. For the intersection between an H-polytope and an ellipsoid the default value is 6. It has not be given to the constructor.}

\item{\code{dimension} }{ An integer that declares the dimension of the convex body. It has not be given to the constructor.}

\item{\code{volume} }{ The volume of the convex body, if it is known.}
}}

31 changes: 31 additions & 0 deletions R-proj/man/Rcpp_PolytopeIntersectEllipsoid.Rd
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
\docType{class}
\name{Rcpp_PolytopeIntersectEllipsoid}
\alias{Rcpp_PolytopeIntersectEllipsoid-class}
\alias{[,Rcpp_PolytopeIntersectEllipsoid-method}
\alias{[,Rcpp_PolytopeIntersectEllipsoid,ANY,ANY,ANY-method}
\alias{$<-,Rcpp_PolytopeIntersectEllipsoid-method}
\alias{$,Rcpp_PolytopeIntersectEllipsoid-method}
\alias{filepaths<-,Rcpp_PolytopeIntersectEllipsoid-method}
\title{
An \code{Rcpp} class to represent an intersection between an H-polytope and an ellipsoid, exposed to \code{R} via modules.
}
\description{
An intersection between of an H-polytope, defined by a set of linear inequalities, or a matrix A and an \eqn{m}-dimensional vector b s.t., \eqn{x, Ax\leq b}, and an ellipsoid defined by a positive definite matrix E s.t., \eqn{x, x^TEx \leq 1}. }.
}
\details{
\describe{
\item{\code{A} }{ \eqn{m \times d} matrix A}

\item{\code{b} }{ \eqn{m}-dimensional vector b}

\item{\code{E} }{ \eqn{d \times d} positive definite matrix E}

\item{\code{type} }{ An integer that declares the representation of the convex body. For the intersection between an H-polytope and an ellipsoid the default value is 6. It has not be given to the constructor.}

\item{\code{dimension} }{ An integer that declares the dimension of the convex body. It has not be given to the constructor.}

\item{\code{volume} }{ The volume of the convex body, if it is known.}
}
}
\keyword{internal}

4 changes: 2 additions & 2 deletions R-proj/src/polytopes_modules.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -248,14 +248,14 @@ RCPP_MODULE(polytopes){
.field( "dimension", &sparse_constraint_problem::dimension )
.field( "type", &sparse_constraint_problem::type );

//' An exposed class to represent an intersection between an H-polytope and an ellipsoid
//' An exposed class to represent an intersection between an H-polytope and an ellipsoid.
//'
//' @description An intersection between of an H-polytope, defined by a set of linear inequalities, or a matrix A and an \eqn{m}-dimensional vector b s.t., \eqn{x, Ax\leq b}, and an ellipsoid defined by a positive definite matrix E s.t., \eqn{x, x^TEx \leq 1}.
//'
//' @field A \eqn{m \times d} matrix A
//' @field b \eqn{m}-dimensional vector b
//' @field E \eqn{d \times d} positive definite matrix E
//' @field volume The volume of the convex body.
//' @field volume The volume of the convex body, if it is known.
//' @field dimension An integer that declares the dimension of the convex body. It has not be given to the constructor.
//' @field type An integer that declares the representation of the convex body. For the intersection between an H-polytope and an ellipsoid the default value is 6. It has not be given to the constructor.
//'
Expand Down

0 comments on commit 255b083

Please sign in to comment.