sync
This commit is contained in:
parent
90e61bf99b
commit
86a6edf877
1449
LaTeX/GMLM.tex
1449
LaTeX/GMLM.tex
File diff suppressed because it is too large
Load Diff
@ -13,6 +13,11 @@ gmlm_tensor_normal <- function(X, F, sample.axis = length(dim(X)),
|
||||
dim(F) <- ifelse(seq_along(dim(X)) == sample.axis, length(F), 1L)
|
||||
}
|
||||
|
||||
# Convert data to numeric arrays
|
||||
if (!is.numeric(X)) {
|
||||
X <- array(as.numeric(X), dim = dim(X))
|
||||
}
|
||||
|
||||
# rearrange `X`, `F` such that the last axis enumerates observations
|
||||
if (!missing(sample.axis)) {
|
||||
axis.perm <- c(seq_along(dim(X))[-sample.axis], sample.axis)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user