% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/matching_lazy.R
\name{lazy_cost_spec_inv_cov}
\alias{lazy_cost_spec_inv_cov}
\title{Precompute the Mahalanobis inverse covariance matrix for a lazy cost spec}
\usage{
lazy_cost_spec_inv_cov(spec)
}
\value{
p x p inverse covariance matrix, or NULL if distance != "mahalanobis".
}
\description{
Mirrors compute_distance_matrix()'s pooled within-group covariance logic
exactly (R/matching_distance.R) -- computed once in R rather than
reimplemented in C++, so the two code paths can't drift apart.
}
\keyword{internal}
