% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/svd.R
\name{db_svd}
\alias{db_svd}
\title{Perform Streaming SVD on a dbMatrix}
\usage{
db_svd(
  dbm,
  k = 10,
  center = TRUE,
  scale = FALSE,
  center_rows = NULL,
  memory_limit = getOption("dbMatrix.svd_memory", 8 * 1024^3),
  return_format = c("svd", "pca")
)
}
\arguments{
\item{dbm}{A dbSparseMatrix object}

\item{k}{Number of singular values to compute}

\item{center}{Logical, center rows (default TRUE)}

\item{scale}{Logical, scale rows (default FALSE)}

\item{center_rows}{Logical, center rows vs columns (default TRUE for standard PCA)}

\item{memory_limit}{Bytes for Fast Path. Default 8 GB.}

\item{return_format}{"svd" (d, u, v) or "pca" (eigenvalues, loadings, coords)}
}
\value{
List with SVD or PCA components
}
\description{
Perform Streaming SVD on a dbMatrix
}
