# 3. Tensor decomposition by DelayedTensor

Koki Tsuyuzaki1 and Itoshi Nikaido1*

1Laboratory for Bioinformatics Research, RIKEN Center for Biosystems Dynamics Research

*k.t.the-answer@hotmail.co.jp

#### 15 April 2025

#### Package

DelayedTensor 1.14.0

Authors: Koki Tsuyuzaki [aut, cre]
Last modified: 2025-04-15 15:16:31.229982
Compiled: Tue Apr 15 20:09:33 2025

# 1 Setting

    suppressPackageStartupMessages(library("DelayedTensor"))
    suppressPackageStartupMessages(library("DelayedArray"))
    suppressPackageStartupMessages(library("HDF5Array"))
    suppressPackageStartupMessages(library("DelayedRandomArray"))

    darr <- RandomUnifArray(c(3,4,5))

    setVerbose(FALSE)
    setSparse(FALSE)
    setAutoBlockSize(1E+8)

    ## automatic block size set to 1e+08 bytes (was 1e+08)

    tmpdir <- tempdir()
    setHDF5DumpDir(tmpdir)

# 2 Tensor Decomposition

Tensor decomposition models decompose multiple factor matrices and core tensor. Each factor matrix means the patterns of each mode and is used for the visualization and the downstream analysis. Core tensor means the intensity of the patterns and is used to decide which patterns are informative.

We reimplemented some of the tensor decomposition functions of rTensor using block processing of DelayedArray.

Only tensor decomposition algorithms and utility functions that require Fast Fourier Transform (e.g., `t_mult`, `t_svd`, and `t_svd_reconstruct`) are exceptions and have not yet been implemented in DelayedArray because we are still investigating how to calculate them with out-of-core manner.

## 2.1 Tucker Decomposition

Suppose a tensor \(\mathcal{X} \in \Re^{I \times J \times K}\). Tucker decomposition models decomposes a tensor \(\mathcal{X}\) into a core tensor \(\mathcal{G} \in \Re^{p \times q \times r}\), and multiple factor matrices \(A \in \Re^{I \times p}\), \(B \in \Re^{J \times q}\), and \(C \in \Re^{K \times r}\) (\(p \leq I, q \leq J, \textrm{and}\ r \leq K\)).

\[ \mathcal{X} = \mathcal{G} \times_{1} A \times_{2} B \times_{3} C \]

For simplicity, here we will use a third-order tensor but the Tucker decomposition can be applied to tensors of larger orders.

There are well-known two algorithms; Higher-Order Singular Value Decomposition (HOSVD) and Higher-order Orthogonal Iteration (HOOI).

`hosvd` performs the HOSVD Tucker decomposition and `tucker` performs HOOI Tucker decomposition.

For the details, check the `hosvd` and `tucker` functions of rTensor.

    out_hosvd <- hosvd(darr, ranks=c(2,1,3))

    ##
      |
      |                                                                      |   0%
      |
      |=======================                                               |  33%
      |
      |===============================================                       |  67%
      |
      |======================================================================| 100%

    str(out_hosvd)

    ## List of 4
    ##  $ Z          :Formal class 'DelayedArray' [package "DelayedArray"] with 1 slot
    ##   .. ..@ seed:Formal class 'HDF5ArraySeed' [package "HDF5Array"] with 7 slots
    ##   .. .. .. ..@ filepath : chr "E:/biocbuild/bbs-3.21-bioc/tmpdir/RtmpAj0mXo/auto1acc8f5c3988.h5"
    ##   .. .. .. ..@ name     : chr "/HDF5ArrayAUTO00125"
    ##   .. .. .. ..@ as_sparse: logi FALSE
    ##   .. .. .. ..@ type     : chr NA
    ##   .. .. .. ..@ dim      : int [1:3] 2 1 3
    ##   .. .. .. ..@ chunkdim : int [1:3] 2 1 3
    ##   .. .. .. ..@ first_val: num -4.32
    ##  $ U          :List of 3
    ##   ..$ :Formal class 'DelayedMatrix' [package "DelayedArray"] with 1 slot
    ##   .. .. ..@ seed: num [1:3, 1:2] -0.562 -0.609 -0.56 0.57 0.206 ...
    ##   ..$ :Formal class 'DelayedMatrix' [package "DelayedArray"] with 1 slot
    ##   .. .. ..@ seed: num [1:4, 1] -0.544 -0.534 -0.455 -0.46
    ##   ..$ :Formal class 'DelayedMatrix' [package "DelayedArray"] with 1 slot
    ##   .. .. ..@ seed: num [1:5, 1:3] -0.422 -0.401 -0.518 -0.361 -0.512 ...
    ##  $ est        :Formal class 'DelayedArray' [package "DelayedArray"] with 1 slot
    ##   .. ..@ seed:Formal class 'HDF5ArraySeed' [package "HDF5Array"] with 7 slots
    ##   .. .. .. ..@ filepath : chr "E:/biocbuild/bbs-3.21-bioc/tmpdir/RtmpAj0mXo/auto1acc811e51bab.h5"
    ##   .. .. .. ..@ name     : chr "/HDF5ArrayAUTO00142"
    ##   .. .. .. ..@ as_sparse: logi FALSE
    ##   .. .. .. ..@ type     : chr NA
    ##   .. .. .. ..@ dim      : int [1:3] 3 4 5
    ##   .. .. .. ..@ chunkdim : int [1:3] 3 4 5
    ##   .. .. .. ..@ first_val: num 0.564
    ##  $ fnorm_resid: num 1.84

    out_tucker <- tucker(darr, ranks=c(2,3,2))

    ##
      |
      |                                                                      |   0%
      |
      |===                                                                   |   4%
      |
      |======                                                                |   8%
      |
      |========                                                              |  12%
      |
      |===========                                                           |  16%
      |
      |==============                                                        |  20%
      |
      |=================                                                     |  24%
      |
      |======================================================================| 100%

    str(out_tucker)

    ## List of 7
    ##  $ Z           :Formal class 'DelayedArray' [package "DelayedArray"] with 1 slot
    ##   .. ..@ seed:Formal class 'HDF5ArraySeed' [package "HDF5Array"] with 7 slots
    ##   .. .. .. ..@ filepath : chr "E:/biocbuild/bbs-3.21-bioc/tmpdir/RtmpAj0mXo/auto1acc887247a0.h5"
    ##   .. .. .. ..@ name     : chr "/HDF5ArrayAUTO00509"
    ##   .. .. .. ..@ as_sparse: logi FALSE
    ##   .. .. .. ..@ type     : chr NA
    ##   .. .. .. ..@ dim      : int [1:3] 2 3 2
    ##   .. .. .. ..@ chunkdim : int [1:3] 2 3 2
    ##   .. .. .. ..@ first_val: num 4.32
    ##  $ U           :List of 3
    ##   ..$ :Formal class 'DelayedMatrix' [package "DelayedArray"] with 1 slot
    ##   .. .. ..@ seed: num [1:3, 1:2] -0.56 -0.61 -0.56 0.405 0.388 ...
    ##   ..$ :Formal class 'DelayedMatrix' [package "DelayedArray"] with 1 slot
    ##   .. .. ..@ seed: num [1:4, 1:3] -0.548 -0.525 -0.448 -0.473 0.318 ...
    ##   ..$ :Formal class 'DelayedMatrix' [package "DelayedArray"] with 1 slot
    ##   .. .. ..@ seed: num [1:5, 1:2] 0.42 0.406 0.516 0.357 0.515 ...
    ##  $ conv        : logi TRUE
    ##  $ est         :Formal class 'DelayedArray' [package "DelayedArray"] with 1 slot
    ##   .. ..@ seed:Formal class 'HDF5ArraySeed' [package "HDF5Array"] with 7 slots
    ##   .. .. .. ..@ filepath : chr "E:/biocbuild/bbs-3.21-bioc/tmpdir/RtmpAj0mXo/auto1acc863a86ba.h5"
    ##   .. .. .. ..@ name     : chr "/HDF5ArrayAUTO00543"
    ##   .. .. .. ..@ as_sparse: logi FALSE
    ##   .. .. .. ..@ type     : chr NA
    ##   .. .. .. ..@ dim      : int [1:3] 3 4 5
    ##   .. .. .. ..@ chunkdim : int [1:3] 3 4 5
    ##   .. .. .. ..@ first_val: num 0.473
    ##  $ norm_percent: num 69.1
    ##  $ fnorm_resid : num 1.46
    ##  $ all_resids  : num [1:6] 1.49 1.46 1.46 1.46 1.46 ...

## 2.2 CANDECOMP/PARAFAC (CP) Decomposition

Suppose a tensor \(\mathcal{X} \in \Re^{I \times J \times K}\). CP decomposition models decomposes a tensor \(X\) into a core diagonal tensor \(\mathcal{G} \in \Re^{r \times r \times r}\), and multiple factor matrices \(A \in \Re^{I \times r}\), \(B \in \Re^{J \times r}\), and \(C \in \Re^{K \times r}\) (\(r \leq \min{\left(I,J,K\right)}\)).

\[ \mathcal{X} = \mathcal{G} \times_{1} A \times_{2} B \times_{3} C \]

For simplicity, here we will use a third-order tensor but the CP decomposition can be applied to tensors of larger orders.

Alternating least squares (ALS) is a well-known algorithm for CP decomposition and `cp` performs the ALS CP decomposition.

For the details, check the `cp` function of rTensor.

    out_cp <- cp(darr, num_components=2)

    ##
      |
      |                                                                      |   0%
      |
      |===                                                                   |   4%
      |
      |======                                                                |   8%
      |
      |========                                                              |  12%
      |
      |===========                                                           |  16%
      |
      |==============                                                        |  20%
      |
      |=================                                                     |  24%
      |
      |====================                                                  |  28%
      |
      |======================                                                |  32%
      |
      |=========================                                             |  36%
      |
      |============================                                          |  40%
      |
      |===============================                                       |  44%
      |
      |==================================                                    |  48%
      |
      |====================================                                  |  52%
      |
      |=======================================                               |  56%
      |
      |==========================================                            |  60%
      |
      |=============================================                         |  64%
      |
      |================================================                      |  68%
      |
      |==================================================                    |  72%
      |
      |=====================================================                 |  76%
      |
      |========================================================              |  80%
      |
      |===========================================================           |  84%
      |
      |==============================================================        |  88%
      |
      |================================================================      |  92%
      |
      |===================================================================   |  96%
      |
      |======================================================================| 100%

    str(out_cp)

    ## List of 7
    ##  $ lambdas     : num [1:2] 7.86 33.26
    ##  $ U           :List of 3
    ##   ..$ :Formal class 'DelayedMatrix' [package "DelayedArray"] with 1 slot
    ##   .. .. ..@ seed:Formal class 'DelayedAperm' [package "DelayedArray"] with 2 slots
    ##   .. .. .. .. ..@ perm: int [1:2] 2 1
    ##   .. .. .. .. ..@ seed:Formal class 'DelayedUnaryIsoOpWithArgs' [package "DelayedArray"] with 6 slots
    ##   .. .. .. .. .. .. ..@ OP    :function (e1, e2)
    ##   .. .. .. .. .. .. ..@ Largs : list()
    ##   .. .. .. .. .. .. ..@ Rargs :List of 1
    ##   .. .. .. .. .. .. .. ..$ : num [1:2] 7.85 33.27
    ##   .. .. .. .. .. .. ..@ Lalong: int(0)
    ##   .. .. .. .. .. .. ..@ Ralong: int 1
    ##   .. .. .. .. .. .. ..@ seed  :Formal class 'DelayedAperm' [package "DelayedArray"] with 2 slots
    ##   .. .. .. .. .. .. .. .. ..@ perm: int [1:2] 2 1
    ##   .. .. .. .. .. .. .. .. ..@ seed:Formal class 'HDF5ArraySeed' [package "HDF5Array"] with 7 slots
    ##   .. .. .. .. .. .. .. .. .. .. ..@ filepath : chr "E:/biocbuild/bbs-3.21-bioc/tmpdir/RtmpAj0mXo/auto1acc865b47406.h5"
    ##   .. .. .. .. .. .. .. .. .. .. ..@ name     : chr "/HDF5ArrayAUTO02142"
    ##   .. .. .. .. .. .. .. .. .. .. ..@ as_sparse: logi FALSE
    ##   .. .. .. .. .. .. .. .. .. .. ..@ type     : chr NA
    ##   .. .. .. .. .. .. .. .. .. .. ..@ dim      : int [1:2] 3 2
    ##   .. .. .. .. .. .. .. .. .. .. ..@ chunkdim : int [1:2] 3 2
    ##   .. .. .. .. .. .. .. .. .. .. ..@ first_val: num -2.14
    ##   ..$ :Formal class 'DelayedMatrix' [package "DelayedArray"] with 1 slot
    ##   .. .. ..@ seed:Formal class 'DelayedAperm' [package "DelayedArray"] with 2 slots
    ##   .. .. .. .. ..@ perm: int [1:2] 2 1
    ##   .. .. .. .. ..@ seed:Formal class 'DelayedUnaryIsoOpWithArgs' [package "DelayedArray"] with 6 slots
    ##   .. .. .. .. .. .. ..@ OP    :function (e1, e2)
    ##   .. .. .. .. .. .. ..@ Largs : list()
    ##   .. .. .. .. .. .. ..@ Rargs :List of 1
    ##   .. .. .. .. .. .. .. ..$ : num [1:2] 7.86 33.26
    ##   .. .. .. .. .. .. ..@ Lalong: int(0)
    ##   .. .. .. .. .. .. ..@ Ralong: int 1
    ##   .. .. .. .. .. .. ..@ seed  :Formal class 'DelayedAperm' [package "DelayedArray"] with 2 slots
    ##   .. .. .. .. .. .. .. .. ..@ perm: int [1:2] 2 1
    ##   .. .. .. .. .. .. .. .. ..@ seed:Formal class 'HDF5ArraySeed' [package "HDF5Array"] with 7 slots
    ##   .. .. .. .. .. .. .. .. .. .. ..@ filepath : chr "E:/biocbuild/bbs-3.21-bioc/tmpdir/RtmpAj0mXo/auto1acc8148b7805.h5"
    ##   .. .. .. .. .. .. .. .. .. .. ..@ name     : chr "/HDF5ArrayAUTO02165"
    ##   .. .. .. .. .. .. .. .. .. .. ..@ as_sparse: logi FALSE
    ##   .. .. .. .. .. .. .. .. .. .. ..@ type     : chr NA
    ##   .. .. .. .. .. .. .. .. .. .. ..@ dim      : int [1:2] 4 2
    ##   .. .. .. .. .. .. .. .. .. .. ..@ chunkdim : int [1:2] 4 2
    ##   .. .. .. .. .. .. .. .. .. .. ..@ first_val: num -1.84
    ##   ..$ :Formal class 'DelayedMatrix' [package "DelayedArray"] with 1 slot
    ##   .. .. ..@ seed:Formal class 'DelayedAperm' [package "DelayedArray"] with 2 slots
    ##   .. .. .. .. ..@ perm: int [1:2] 2 1
    ##   .. .. .. .. ..@ seed:Formal class 'DelayedUnaryIsoOpWithArgs' [package "DelayedArray"] with 6 slots
    ##   .. .. .. .. .. .. ..@ OP    :function (e1, e2)
    ##   .. .. .. .. .. .. ..@ Largs : list()
    ##   .. .. .. .. .. .. ..@ Rargs :List of 1
    ##   .. .. .. .. .. .. .. ..$ : num [1:2] 7.86 33.26
    ##   .. .. .. .. .. .. ..@ Lalong: int(0)
    ##   .. .. .. .. .. .. ..@ Ralong: int 1
    ##   .. .. .. .. .. .. ..@ seed  :Formal class 'DelayedAperm' [package "DelayedArray"] with 2 slots
    ##   .. .. .. .. .. .. .. .. ..@ perm: int [1:2] 2 1
    ##   .. .. .. .. .. .. .. .. ..@ seed:Formal class 'HDF5ArraySeed' [package "HDF5Array"] with 7 slots
    ##   .. .. .. .. .. .. .. .. .. .. ..@ filepath : chr "E:/biocbuild/bbs-3.21-bioc/tmpdir/RtmpAj0mXo/auto1acc8654c2b5.h5"
    ##   .. .. .. .. .. .. .. .. .. .. ..@ name     : chr "/HDF5ArrayAUTO02188"
    ##   .. .. .. .. .. .. .. .. .. .. ..@ as_sparse: logi FALSE
    ##   .. .. .. .. .. .. .. .. .. .. ..@ type     : chr NA
    ##   .. .. .. .. .. .. .. .. .. .. ..@ dim      : int [1:2] 5 2
    ##   .. .. .. .. .. .. .. .. .. .. ..@ chunkdim : int [1:2] 5 2
    ##   .. .. .. .. .. .. .. .. .. .. ..@ first_val: num -1.94
    ##  $ conv        : logi TRUE
    ##  $ est         :Formal class 'DelayedArray' [package "DelayedArray"] with 1 slot
    ##   .. ..@ seed:Formal class 'HDF5ArraySeed' [package "HDF5Array"] with 7 slots
    ##   .. .. .. ..@ filepath : chr "E:/biocbuild/bbs-3.21-bioc/tmpdir/RtmpAj0mXo/auto1acc840fc27e2.h5"
    ##   .. .. .. ..@ name     : chr "/HDF5ArrayAUTO02205"
    ##   .. .. .. ..@ as_sparse: logi FALSE
    ##   .. .. .. ..@ type     : chr NA
    ##   .. .. .. ..@ dim      : int [1:3] 3 4 5
    ##   .. .. .. ..@ chunkdim : int [1:3] 3 4 5
    ##   .. .. .. ..@ first_val: num 0.445
    ##  $ norm_percent: num 68
    ##  $ fnorm_resid : num 1.51
    ##  $ all_resids  : num [1:24] 1.83 1.64 1.61 1.6 1.59 ...

## 2.3 Multilinear Principal Component Analysis (MPCA)

MPCA is a kind of Tucker decomposition and when the order of tensor is 3, this is also known as the Generalized Low-Rank Approximation of Matrices (GLRAM). For the details, check the `mpca` function of rTensor.

    out_mpca <- mpca(darr, ranks=c(2,2))

    ##
      |
      |                                                                      |   0%
      |
      |===                                                                   |   4%
      |
      |======                                                                |   8%
      |
      |========                                                              |  12%
      |
      |===========                                                           |  16%
      |
      |======================================================================| 100%

    str(out_mpca)

    ## List of 7
    ##  $ Z_ext       :Formal class 'DelayedArray' [package "DelayedArray"] with 1 slot
    ##   .. ..@ seed:Formal class 'HDF5ArraySeed' [package "HDF5Array"] with 7 slots
    ##   .. .. .. ..@ filepath : chr "E:/biocbuild/bbs-3.21-bioc/tmpdir/RtmpAj0mXo/auto1acc8344a3501.h5"
    ##   .. .. .. ..@ name     : chr "/HDF5ArrayAUTO02339"
    ##   .. .. .. ..@ as_sparse: logi FALSE
    ##   .. .. .. ..@ type     : chr NA
    ##   .. .. .. ..@ dim      : int [1:3] 2 2 5
    ##   .. .. .. ..@ chunkdim : int [1:3] 2 2 5
    ##   .. .. .. ..@ first_val: num 1.76
    ##  $ U           :List of 3
    ##   ..$ :Formal class 'DelayedMatrix' [package "DelayedArray"] with 1 slot
    ##   .. .. ..@ seed: num [1:3, 1:2] -0.556 -0.612 -0.562 0.512 0.281 ...
    ##   ..$ :Formal class 'DelayedMatrix' [package "DelayedArray"] with 1 slot
    ##   .. .. ..@ seed: num [1:4, 1:2] -0.543 -0.531 -0.448 -0.471 0.32 ...
    ##   ..$ : NULL
    ##  $ conv        : logi TRUE
    ##  $ est         :Formal class 'DelayedArray' [package "DelayedArray"] with 1 slot
    ##   .. ..@ seed:Formal class 'HDF5ArraySeed' [package "HDF5Array"] with 7 slots
    ##   .. .. .. ..@ filepath : chr "E:/biocbuild/bbs-3.21-bioc/tmpdir/RtmpAj0mXo/auto1acc8202f28fb.h5"
    ##   .. .. .. ..@ name     : chr "/HDF5ArrayAUTO02361"
    ##   .. .. .. ..@ as_sparse: logi FALSE
    ##   .. .. .. ..@ type     : chr NA
    ##   .. .. .. ..@ dim      : int [1:3] 3 4 5
    ##   .. .. .. ..@ chunkdim : int [1:3] 3 4 5
    ##   .. .. .. ..@ first_val: num 0.495
    ##  $ norm_percent: num 70.7
    ##  $ fnorm_resid : num 1.38
    ##  $ all_resids  : num [1:4] 1.39 1.38 1.38 1.38

## 2.4 Population Value Decomposition (PVD)

Suppose a series of 2D data X_{j}, where \(X_{j} \in \Re^{n_{1} \times n_{2}}\), and \(j = 1, \ldots , n_{3}\). PVD models decomposes a tensor \(X_{j}\) into two common factor matrices across all \(X_{j}\), \(P \in \Re^{n_{1} \times r_{1}}\) and \(D \in \Re^{n_{2} \times r_{2}}\), and a \(X_{j}\) specific factor matrix \(V_{j} \in \Re^{r_{1} \times r_{2}}\) (\(r_{1} \leq n_{1}, \textrm{and}\ r_{2} \leq n_{2}\)).

\[ X_{j} = P \times V_{j} \times D \]

For the details, check the `pvd` function of rTensor.

    out_pvd <- pvd(darr,
      uranks=rep(2,dim(darr)[3]), wranks=rep(3,dim(darr)[3]), a=2, b=3)

    ##
      |
      |                                                                      |   0%
      |
      |=========                                                             |  12%
      |
      |==================                                                    |  25%
      |
      |==========================                                            |  38%
      |
      |===================================                                   |  50%
      |
      |============================================                          |  62%
      |
      |====================================================                  |  75%
      |
      |=============================================================         |  88%
      |
      |======================================================================| 100%

    str(out_pvd)

    ## List of 6
    ##  $ P           :Formal class 'DelayedMatrix' [package "DelayedArray"] with 1 slot
    ##   .. ..@ seed: num [1:3, 1:2] -0.57 -0.622 -0.536 0.425 0.336 ...
    ##  $ D           :Formal class 'DelayedMatrix' [package "DelayedArray"] with 1 slot
    ##   .. ..@ seed:Formal class 'DelayedAperm' [package "DelayedArray"] with 2 slots
    ##   .. .. .. ..@ perm: int [1:2] 2 1
    ##   .. .. .. ..@ seed: num [1:4, 1:3] 0.5279 0.5317 0.3515 0.5613 -0.0855 ...
    ##  $ V           :List of 5
    ##   ..$ :Formal class 'DelayedMatrix' [package "DelayedArray"] with 1 slot
    ##   .. .. ..@ seed:Formal class 'HDF5ArraySeed' [package "HDF5Array"] with 7 slots
    ##   .. .. .. .. ..@ filepath : chr "E:/biocbuild/bbs-3.21-bioc/tmpdir/RtmpAj0mXo/auto1acc8db24707.h5"
    ##   .. .. .. .. ..@ name     : chr "/HDF5ArrayAUTO02395"
    ##   .. .. .. .. ..@ as_sparse: logi FALSE
    ##   .. .. .. .. ..@ type     : chr NA
    ##   .. .. .. .. ..@ dim      : int [1:2] 2 3
    ##   .. .. .. .. ..@ chunkdim : int [1:2] 2 3
    ##   .. .. .. .. ..@ first_val: num -1.75
    ##   ..$ :Formal class 'DelayedMatrix' [package "DelayedArray"] with 1 slot
    ##   .. .. ..@ seed:Formal class 'HDF5ArraySeed' [package "HDF5Array"] with 7 slots
    ##   .. .. .. .. ..@ filepath : chr "E:/biocbuild/bbs-3.21-bioc/tmpdir/RtmpAj0mXo/auto1acc81365a8a.h5"
    ##   .. .. .. .. ..@ name     : chr "/HDF5ArrayAUTO02401"
    ##   .. .. .. .. ..@ as_sparse: logi FALSE
    ##   .. .. .. .. ..@ type     : chr NA
    ##   .. .. .. .. ..@ dim      : int [1:2] 2 3
    ##   .. .. .. .. ..@ chunkdim : int [1:2] 2 3
    ##   .. .. .. .. ..@ first_val: num -1.69
    ##   ..$ :Formal class 'DelayedMatrix' [package "DelayedArray"] with 1 slot
    ##   .. .. ..@ seed:Formal class 'HDF5ArraySeed' [package "HDF5Array"] with 7 slots
    ##   .. .. .. .. ..@ filepath : chr "E:/biocbuild/bbs-3.21-bioc/tmpdir/RtmpAj0mXo/auto1acc875417f11.h5"
    ##   .. .. .. .. ..@ name     : chr "/HDF5ArrayAUTO02407"
    ##   .. .. .. .. ..@ as_sparse: logi FALSE
    ##   .. .. .. .. ..@ type     : chr NA
    ##   .. .. .. .. ..@ dim      : int [1:2] 2 3
    ##   .. .. .. .. ..@ chunkdim : int [1:2] 2 3
    ##   .. .. .. .. ..@ first_val: num -2.23
    ##   ..$ :Formal class 'DelayedMatrix' [package "DelayedArray"] with 1 slot
    ##   .. .. ..@ seed:Formal class 'HDF5ArraySeed' [package "HDF5Array"] with 7 slots
    ##   .. .. .. .. ..@ filepath : chr "E:/biocbuild/bbs-3.21-bioc/tmpdir/RtmpAj0mXo/auto1acc87cc37c19.h5"
    ##   .. .. .. .. ..@ name     : chr "/HDF5ArrayAUTO02413"
    ##   .. .. .. .. ..@ as_sparse: logi FALSE
    ##   .. .. .. .. ..@ type     : chr NA
    ##   .. .. .. .. ..@ dim      : int [1:2] 2 3
    ##   .. .. .. .. ..@ chunkdim : int [1:2] 2 3
    ##   .. .. .. .. ..@ first_val: num -1.62
    ##   ..$ :Formal class 'DelayedMatrix' [package "DelayedArray"] with 1 slot
    ##   .. .. ..@ seed:Formal class 'HDF5ArraySeed' [package "HDF5Array"] with 7 slots
    ##   .. .. .. .. ..@ filepath : chr "E:/biocbuild/bbs-3.21-bioc/tmpdir/RtmpAj0mXo/auto1acc87e7438f7.h5"
    ##   .. .. .. .. ..@ name     : chr "/HDF5ArrayAUTO02419"
    ##   .. .. .. .. ..@ as_sparse: logi FALSE
    ##   .. .. .. .. ..@ type     : chr NA
    ##   .. .. .. .. ..@ dim      : int [1:2] 2 3
    ##   .. .. .. .. ..@ chunkdim : int [1:2] 2 3
    ##   .. .. .. .. ..@ first_val: num -2.21
    ##  $ est         :Formal class 'DelayedArray' [package "DelayedArray"] with 1 slot
    ##   .. ..@ seed: num [1:3, 1:4, 1:5] 0.432 0.509 0.777 0.703 0.721 ...
    ##  $ norm_percent: num 71.5
    ##  $ fnorm_resid : num 1.34

# Session information

    ## R version 4.5.0 RC (2025-04-04 r88126 ucrt)
    ## Platform: x86_64-w64-mingw32/x64
    ## Running under: Windows Server 2022 x64 (build 20348)
    ##
    ## Matrix products: default
    ##   LAPACK version 3.12.1
    ##
    ## locale:
    ## [1] LC_COLLATE=C
    ## [2] LC_CTYPE=English_United States.utf8
    ## [3] LC_MONETARY=English_United States.utf8
    ## [4] LC_NUMERIC=C
    ## [5] LC_TIME=English_United States.utf8
    ##
    ## time zone: America/New_York
    ## tzcode source: internal
    ##
    ## attached base packages:
    ## [1] stats4    stats     graphics  grDevices utils     datasets  methods
    ## [8] base
    ##
    ## other attached packages:
    ##  [1] DelayedRandomArray_1.16.0 HDF5Array_1.36.0
    ##  [3] h5mread_1.0.0             rhdf5_2.52.0
    ##  [5] DelayedArray_0.34.0       SparseArray_1.8.0
    ##  [7] S4Arrays_1.8.0            abind_1.4-8
    ##  [9] IRanges_2.42.0            S4Vectors_0.46.0
    ## [11] MatrixGenerics_1.20.0     matrixStats_1.5.0
    ## [13] BiocGenerics_0.54.0       generics_0.1.3
    ## [15] Matrix_1.7-3              DelayedTensor_1.14.0
    ## [17] BiocStyle_2.36.0
    ##
    ## loaded via a namespace (and not attached):
    ##  [1] dqrng_0.4.1         sass_0.4.10         lattice_0.22-7
    ##  [4] digest_0.6.37       evaluate_1.0.3      grid_4.5.0
    ##  [7] bookdown_0.43       fastmap_1.2.0       jsonlite_2.0.0
    ## [10] BiocManager_1.30.25 codetools_0.2-20    jquerylib_0.1.4
    ## [13] cli_3.6.4           rlang_1.1.6         crayon_1.5.3
    ## [16] XVector_0.48.0      cachem_1.1.0        yaml_2.3.10
    ## [19] tools_4.5.0         beachmat_2.24.0     parallel_4.5.0
    ## [22] BiocParallel_1.42.0 einsum_0.1.2        Rhdf5lib_1.30.0
    ## [25] rsvd_1.0.5          R6_2.6.1            lifecycle_1.0.4
    ## [28] BiocSingular_1.24.0 irlba_2.3.5.1       ScaledMatrix_1.16.0
    ## [31] rTensor_1.4.8       bslib_0.9.0         Rcpp_1.0.14
    ## [34] xfun_0.52           knitr_1.50          rhdf5filters_1.20.0
    ## [37] htmltools_0.5.8.1   rmarkdown_2.29      compiler_4.5.0