Skip to content

Commit c0e6c0e

Browse files
committed
LaTeX
conversion
1 parent 5f1b78f commit c0e6c0e

File tree

14 files changed

+76
-46
lines changed

14 files changed

+76
-46
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: rsvd
22
Type: Package
33
Title: Randomized Singular Value Decomposition
4-
Version: 1.0.1
4+
Version: 1.0.2
55
Date: 2019-06-01
66
Authors@R: c(person("N. Benjamin", "Erichson", role = c("aut", "cre"), email = "erichson@berkeley.edu"))
77
Author: N. Benjamin Erichson [aut, cre]

R/rcur.R

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
#'
4141
#'
4242
#' @return \code{rcur} returns a list with class \eqn{id} containing the following components:
43+
#'\describe{
4344
#' \item{C}{ array_like; \cr
4445
#' column subset \eqn{C = A[,C.idx]}; \eqn{(m, k)} dimensional array.
4546
#' }
@@ -68,7 +69,7 @@
6869
#' \item{R.scores}{ array_like; \cr
6970
#' scores of the selected rows.
7071
#' }
71-
#'
72+
#'}
7273
#'
7374
#' @references
7475
#' \itemize{
@@ -82,7 +83,8 @@
8283
#' algorithms for constructing approximate matrix
8384
#' decompositions" (2009).
8485
#' (available at arXiv \url{http://arxiv.org/abs/0909.4061}).
85-
#' }
86+
#'}
87+
#'
8688
#'
8789
#' @author N. Benjamin Erichson, \email{erichson@berkeley.edu}
8890
#'

R/rid.R

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
#'
5151
#'
5252
#' @return \code{rid} returns a list containing the following components:
53+
#' \describe{
5354
#' \item{C}{ array_like; \cr
5455
#' column subset \eqn{C = A[,idx]}, if \code{mode='column'}; array with dimensions \eqn{(m, k)}.
5556
#' }
@@ -78,7 +79,7 @@
7879
#' \item{scores.idx}{ array_like; \cr
7980
#' scores of the \eqn{k} selected columns or rows in \eqn{C} or \eqn{R}.
8081
#' }
81-
#'
82+
#'}
8283
#'
8384
#' @references
8485
#' \itemize{
@@ -90,7 +91,8 @@
9091
#' \item [2] N. B. Erichson, S. Voronin, S. Brunton, J. N. Kutz.
9192
#' "Randomized matrix decompositions using R" (2016).
9293
#' (available at `arXiv \url{http://arxiv.org/abs/1608.02148}).
93-
#' }
94+
#'}
95+
#'
9496
#'
9597
#' @author N. Benjamin Erichson, \email{erichson@uw.edu}
9698
#'

R/rpca.R

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
#'
5151
#'
5252
#' @return \code{rpca} returns a list with class \eqn{rpca} containing the following components:
53+
#' \describe{
5354
#' \item{rotation}{ array_like; \cr
5455
#' the rotation (eigenvectors); \eqn{(n, k)} dimensional array.
5556
#' }
@@ -66,6 +67,8 @@
6667
#' \item{center, scale}{ array_like; \cr
6768
#' the centering and scaling used.
6869
#' }
70+
#'}
71+
#'
6972
#'
7073
#' @note The principal components are not unique and only defined up to sign
7174
#' (a constant of modulus one in the complex case) and so may differ between different
@@ -74,6 +77,7 @@
7477
#' Similar to \code{\link{prcomp}} the variances are computed with the usual divisor N - 1.
7578
#'
7679
#'
80+
#' @references
7781
#' \itemize{
7882
#' \item [1] N. B. Erichson, S. Voronin, S. L. Brunton and J. N. Kutz. 2019.
7983
#' Randomized Matrix Decompositions Using {R}.
@@ -85,7 +89,8 @@
8589
#' algorithms for constructing approximate matrix
8690
#' decompositions" (2009).
8791
#' (available at arXiv \url{http://arxiv.org/abs/0909.4061}).
88-
#' }
92+
#'}
93+
#'
8994
#'
9095
#' @author N. Benjamin Erichson, \email{erichson@berkeley.edu}
9196
#'

R/rqb.R

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,18 @@
4040
#'
4141
#'
4242
#'@return \code{rqb} returns a list containing the following components:
43+
#' \describe{
4344
#'\item{Q}{ array_like; \cr
4445
#' matrix with orthogonal columns; \eqn{(m, k)} dimensional array.
4546
#'}
4647
#'
4748
#'\item{B}{ array_like; \cr
4849
#' smaller matrix; \eqn{(k, n)} dimensional array.
4950
#'}
51+
#'}
52+
#'
5053
#'
54+
#' @references
5155
#' \itemize{
5256
#' \item [1] N. B. Erichson, S. Voronin, S. L. Brunton and J. N. Kutz. 2019.
5357
#' Randomized Matrix Decompositions Using {R}.
@@ -59,7 +63,7 @@
5963
#' algorithms for constructing approximate matrix
6064
#' decompositions" (2009).
6165
#' (available at arXiv \url{http://arxiv.org/abs/0909.4061}).
62-
#' }
66+
#'}
6367
#'
6468
#' @author N. Benjamin Erichson, \email{erichson@berkeley.edu}
6569
#'

R/rrpca.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,19 @@
4040
#'
4141
#'
4242
#' @return \code{rrpca} returns a list containing the following components:
43+
#' \describe{
4344
#' \item{L}{ array_like; \cr
4445
#' low-rank component; \eqn{(m, n)} dimensional array.
4546
#' }
4647
#' \item{S}{ array_like \cr
4748
#' sparse component; \eqn{(m, n)} dimensional array.
4849
#' }
49-
#'
50+
#'}
5051
#'
5152
#' @author N. Benjamin Erichson, \email{erichson@berkeley.edu}
5253
#'
5354
#'
54-
#'
55+
#' @references
5556
#' \itemize{
5657
#' \item [1] N. B. Erichson, S. Voronin, S. L. Brunton and J. N. Kutz. 2019.
5758
#' Randomized Matrix Decompositions Using {R}.
@@ -64,7 +65,6 @@
6465
#' (available at arXiv \url{http://arxiv.org/abs/1009.5055}).
6566
#' }
6667
#'
67-
#'
6868
#' @examples
6969
#' library('rsvd')
7070
#'

R/rsvd.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
#' \eqn{'rademacher'} : Rademacher random variates. \cr
5454
#'
5555
#'@return \code{rsvd} returns a list containing the following three components:
56+
#'\describe{
5657
#'\item{d}{ array_like; \cr
5758
#' singular values; vector of length \eqn{(k)}.
5859
#'}
@@ -64,6 +65,7 @@
6465
#'\item{v}{ array_like; \cr
6566
#' right singular vectors; \eqn{(n, k)} or \eqn{(n, nv)} dimensional array. \cr
6667
#'}
68+
#'}
6769
#'
6870
#' @note The singular vectors are not unique and only defined up to sign
6971
#' (a constant of modulus one in the complex case). If a left singular vector
@@ -78,7 +80,7 @@
7880
#' Journal of Statistical Software, 89(11), 1-48.
7981
#' \url{http://doi.org/10.18637/jss.v089.i11}.
8082
#'
81-
#' \item [2] N. Halko, P. Martinsson, and J. Tropp.
83+
#' \item [2] N. Halko, P. Martinsson, and J. Tropp.
8284
#' "Finding structure with randomness: probabilistic
8385
#' algorithms for constructing approximate matrix
8486
#' decompositions" (2009).

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ devtools::install_github("erichson/rsvd")
7171

7272
The source packge can be obtained here: [CRAN: rsvd](https://cran.r-project.org/web/packages/rsvd/index.html).
7373

74+
## New in Version 1.0.2
75+
76+
* Several small issues are fixed.
77+
* Thanks to Aaron Lun, who has fixed a bug in the rsvd function that occured when nu=0 or nv=0.
78+
7479
## New in Version 1.0.0
7580

7681
* Support for non-default matrix types to deal with large-scale matrices that are held on file, added by Aaron Lun.
@@ -86,7 +91,6 @@ The source packge can be obtained here: [CRAN: rsvd](https://cran.r-project.org/
8691
## Cite as
8792

8893
```
89-
9094
@Article{,
9195
title = {Randomized Matrix Decompositions Using {R}},
9296
author = {N. Benjamin Erichson and Sergey Voronin and Steven L.
@@ -98,7 +102,6 @@ The source packge can be obtained here: [CRAN: rsvd](https://cran.r-project.org/
98102
pages = {1--48},
99103
doi = {10.18637/jss.v089.i11},
100104
}
101-
102105
```
103106

104107

man/rcur.Rd

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/rid.Rd

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)