% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/write.R
\name{.flatten_all_constraints}
\alias{.flatten_all_constraints}
\title{Flatten all ROI constraints into a uniform list of chunk records.}
\usage{
.flatten_all_constraints(cons, pow_tables)
}
\arguments{
\item{cons}{ROI constraint object (possibly compound).}

\item{pow_tables}{List with \code{primal} and \code{dual} sub-lists of
alpha vectors, built by \code{.collect_powcone_tables()}.}
}
\value{
List of chunk records.
}
\description{
Supports \code{L_constraint} and \code{C_constraint} objects, including
combined constraint objects created by \code{c()} or \code{rbind()}.
}
\details{
Each element of the returned list is a list with fields:
\describe{
  \item{L}{slam \code{simple_triplet_matrix}: the constraint-matrix rows
    for this chunk.}
  \item{rhs}{Numeric vector: ROI right-hand sides for this chunk.}
  \item{cbf_cone}{Character: CBF cone token (e.g. \code{"Q."}).}
}
}
\keyword{internal}
