% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/matching_memory.R
\name{resolve_memory_mode}
\alias{resolve_memory_mode}
\title{Resolve a requested memory_mode to a concrete decision}
\usage{
resolve_memory_mode(
  n,
  m,
  memory_mode = c("auto", "dense", "lazy"),
  solver_supports_lazy = FALSE,
  ram_fraction = 0.5,
  fallback_threshold_mb = 4000
)
}
\arguments{
\item{n, m}{Problem dimensions (left/right unit counts).}

\item{memory_mode}{One of "auto" (probe RAM and decide), "dense" (always,
skip probing entirely), or "lazy" (always, error if unsupported here).}

\item{solver_supports_lazy}{Whether a lazy path actually exists for the
caller's chosen solver/distance combination (\code{TRUE} only for \code{method = "jv"}/\code{"auction"} with a built-in distance metric, on a caller whose
solve path consumes a \code{lazy_cost_spec}; see R/matching_lazy.R).}

\item{ram_fraction}{Fraction of free RAM the dense matrix may consume
before "auto" switches away from dense.}

\item{fallback_threshold_mb}{Fixed threshold used when free RAM can't be
determined (mirrors the warn+fallback precedent in
\code{R/morph_utils.R}'s \code{matrix_size > 1e8} cell guard).}
}
\value{
"dense" or "lazy".
}
\description{
Resolve a requested memory_mode to a concrete decision
}
\keyword{internal}
