% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/S3_matvec.R
\name{diag<-}
\alias{diag<-}
\title{Set diagonal of an HDF5Matrix (generic)}
\usage{
diag(x) <- value
}
\arguments{
\item{x}{A matrix or \code{HDF5Matrix} object.}

\item{value}{Numeric vector of replacement values for the diagonal.}
}
\value{
The modified object with the diagonal replaced.
}
\description{
S3 generic for \code{diag<-}. Dispatches to the \code{diag<-.HDF5Matrix} method
for \code{HDF5Matrix} objects, and to \code{base::diag<-} for all others.
}
