% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tools.R
\name{validate_corr_matrix}
\alias{validate_corr_matrix}
\title{Validate a user-supplied correlation matrix}
\usage{
validate_corr_matrix(Corr, D, label = "'Corr'")
}
\arguments{
\item{Corr}{A D x D matrix or \code{NULL}.}

\item{D}{Expected number of dimensions.}

\item{label}{Character label for error messages.}
}
\value{
A valid D x D correlation matrix.
}
\description{
Checks dimensions, symmetry, unit diagonal, and positive semi-definiteness.
Returns a valid correlation matrix (or \code{diag(D)} when \code{NULL}).
}
\keyword{internal}
