Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
friendly committed Aug 3, 2024
1 parent 6fd2ddc commit b8a38a3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 237 deletions.
2 changes: 1 addition & 1 deletion dev/symbolicMatrix.R
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
#' str(mat)
#' cat(mat)
#' # copy to clipboard
#' clipr::write_clip(mat)
#' #clipr::write_clip(mat) # can't be done in non-interactive mode
#'
#' # numeric rows/cols
#' symbolicMatrix(ncol=3)
Expand Down
232 changes: 0 additions & 232 deletions dev/symbolicMatrix2.R

This file was deleted.

9 changes: 5 additions & 4 deletions dev/test-symbolic-matrix.R
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,11 @@ symbolicMatrix(nrow=3.1, ncol=3)

# SVD

X <- symbolicMatrix("x", "n", "p")
U <- symbolicMatrix("u", "n", "k")
D <- symbolicMatrix("\\lambda", "k", "k", diag=TRUE)
V <- symbolicMatrix("v", "k", "p", transpose = TRUE)
X <- symbolicMatrix("x", "n", "p", print=FALSE)
U <- symbolicMatrix("u", "n", "k", print=FALSE)
D <- symbolicMatrix("\\lambda", "k", "k", diag=TRUE, print=FALSE)
V <- symbolicMatrix("v", "k", "p", transpose = TRUE, print=FALSE)
cat("\\mathrm{SVD:}\n", X, "=\n", U, D, V)

#cat("SVD:\n", X, "=\n", U, "\n", D, "\n", V)

Binary file added man/figures/symbMat-SVD.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b8a38a3

Please sign in to comment.