Skip to content

Commit 81053e9

Browse files
committed
Fix more documentation issues
1 parent 25a097b commit 81053e9

5 files changed

+15
-16
lines changed

R/gen_rand_zonotope.R

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
#' @param nsegments The number of segments that generate the zonotope.
88
#' @param generator A list that could contain two elements.
99
#' \describe{
10-
#' \item{distribution}{ the distribution to pick the length of each segment from \eqn{[0,100]}: (i) 'uniform', (ii) 'gaussian' or (iii) 'exponential', the default value is 'uniform.}
11-
#' \item {seed}{Optional. A fixed seed for the number generator.}
10+
#' \item{distribution}{The distribution to pick the length of each segment from \eqn{[0,100]}: (i) 'uniform', (ii) 'gaussian' or (iii) 'exponential', the default value is 'uniform.}
11+
#' \item{seed}{Optional. A fixed seed for the number generator.}
1212
#' }
1313
#'
1414
#' @return A polytope class representing a zonotope.

R/rotate_polytope.R

+5-5
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
#' @return A list that contains the rotated polytope and the matrix \eqn{T} of the linear transformation.
99
#'
1010
#' @details Let \eqn{P} be the given polytope and \eqn{Q} the rotated one and \eqn{T} be the matrix of the linear transformation.
11-
#' \describe{
12-
#' \item{If \eqn{P} is in H-representation and \eqn{A} is the matrix that contains the normal vectors of the facets of \eqn{Q} then \eqn{AT} contains the normal vactors of the facets of \eqn{P}.}
13-
#' \item{If \eqn{P} is in V-representation and \eqn{V} is the matrix that contains column-wise the vertices of \eqn{Q} then \eqn{T^TV} contains the vertices of \eqn{P}.}
14-
#' \item{If \eqn{P} is a zonotope and \eqn{G} is the matrix that contains column-wise the generators of \eqn{Q} then \eqn{T^TG} contains the generators of \eqn{P}.}
15-
#' \item{If \eqn{M} is a matrix that contains column-wise points in \eqn{Q} then \eqn{T^TM} contains points in \eqn{P}.}
11+
#' \itemize{
12+
#' \item If \eqn{P} is in H-representation and \eqn{A} is the matrix that contains the normal vectors of the facets of \eqn{Q} then \eqn{AT} contains the normal vectors of the facets of \eqn{P}.
13+
#' \item If \eqn{P} is in V-representation and \eqn{V} is the matrix that contains column-wise the vertices of \eqn{Q} then \eqn{T^TV} contains the vertices of \eqn{P}.
14+
#' \item If \eqn{P} is a zonotope and \eqn{G} is the matrix that contains column-wise the generators of \eqn{Q} then \eqn{T^TG} contains the generators of \eqn{P}.
15+
#' \item If \eqn{M} is a matrix that contains column-wise points in \eqn{Q} then \eqn{T^TM} contains points in \eqn{P}.
1616
#' }
1717
#' @examples
1818
#' # rotate a H-polytope (2d unit simplex)

man/gen_rand_zonotope.Rd

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/rotate_polytope.Rd

+5-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/uniform_sample_correlation_matrices.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
//' @param validate Optional. Whether to validate the sampled matrices. Default is false.
2222
//'
2323
//' @return A list of sampled correlation matrices.
24-
2524
// [[Rcpp::export]]
2625
Rcpp::List uniform_sample_correlation_matrices(const unsigned int n, const unsigned int num_matrices = 1000,
2726
const unsigned int walk_length=1, const unsigned int nburns = 0, const bool validate = false) {
@@ -43,7 +42,7 @@ Rcpp::List uniform_sample_correlation_matrices(const unsigned int n, const unsig
4342
throw Rcpp::exception("Invalid correlation matrix");
4443
}
4544
}
46-
}
45+
}
4746

4847
Rcpp::List rcpp_sampled_matrices(randCorMatrices.size());
4948
int index = 0;

0 commit comments

Comments
 (0)