
KronA matrix-free product (Kamath Eq 4.7)
Source:R/kamath_llm2_native.R
morie_kamath_ch4_krona_efficient.Rd(A (x) B) x = gamma(B eta(x) A^T). Both folds are COLUMN-MAJOR, which is
R's native matrix() layout and what makes the identity hold.
Examples
morie_kamath_ch4_krona_efficient(A = c(1, 2, 3, 4, 5, 6, 7, 8), B = 5L, x = 5L)
#> $y
#> [1] 25 50 75 100 125 150 175 200
#>
#> $folded_shape
#> [1] 1 1
#>
#> $estimate
#> [1] 25
#>
#> $n
#> [1] 8
#>
#> $products_avoided
#> [1] 8
#>
#> $method
#> [1] "KronA matrix-free product (Kamath Eq 4.7)"
#>