Skip to content

Commit 4377b23

Browse files
authored
Merge pull request #79 from mns-nordicals/matrix-part-2
Matrix part 2
2 parents cdf43db + 5cbad69 commit 4377b23

18 files changed

Lines changed: 2965 additions & 88 deletions

NEWS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
- Added initial matrix/linear algebra handler support from base R, using the
44
same BLAS/LAPACK as R: `%*%`, `t()`, `crossprod()`, `tcrossprod()`,
5-
`outer()` (with `FUN="*"`), `%o%`, `forwardsolve()`, and `backsolve()`.
5+
`outer()` (with `FUN="*"`), `%o%`, `forwardsolve()`, `backsolve()`, `diag()`, `t()`, `chol()`, `chol2inv()` and `solve()`
66

7-
The plan is to add more functions in the future (#77 @mns-nordicals)
7+
The plan is to add more functions in the future (#77, #79 @mns-nordicals)
88

99
- Added support for `cbind()` and `rbind()` for rank-0/1/2 inputs, with scalar
1010
recycling only and strict length checks for non-scalar inputs.

R/manifest.R

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,14 @@ dims2f_eval_base_env[["length"]] <- function(x) {
325325
glue("size({x})")
326326
}
327327
}
328+
dims2f_eval_base_env[["min"]] <- function(...) {
329+
args <- list(...)
330+
glue("min({str_flatten_commas(args)})")
331+
}
332+
dims2f_eval_base_env[["max"]] <- function(...) {
333+
args <- list(...)
334+
glue("max({str_flatten_commas(args)})")
335+
}
328336

329337

330338
dims2f <- function(dims, scope) {

0 commit comments

Comments
 (0)