najszybszy sposób, aby uzyskać Min z każdej kolumny w macierzy?
Jaki jest najszybszy sposób wyodrębnienia min z każdej kolumny w macierzy?
EDYTOWAĆ:Przeniesiono wszystkie kryteria do odpowiedzi poniżej.
Używanie wysokiej, krótkiej lub szerokiej matrycy: ## TEST DATA
set.seed(1)
matrix.inputs <- list(
"Square Matrix" = matrix(sample(seq(1e6), 4^2*1e4, T), ncol=400), # 400 x 400
"Tall Matrix" = matrix(sample(seq(1e6), 4^2*1e4, T), nrow=4000), # 4000 x 40
"Wide-short Matrix" = matrix(sample(seq(1e6), 4^2*1e4, T), ncol=4000), # 40 x 4000
"Wide-tall Matrix" = matrix(sample(seq(1e6), 4^2*1e5, T), ncol=4000), # 400 x 4000
"Tiny Sq Matrix" = matrix(sample(seq(1e6), 4^2*1e2, T), ncol=40) # 40 x 40
)