% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RcppExports.R
\name{tensor_unfold_cpp}
\alias{tensor_unfold_cpp}
\title{Tensor Unfolding (Matricization) for Synthetic Interventions}
\usage{
tensor_unfold_cpp(T_cube, mode)
}
\arguments{
\item{T_cube}{A 3D array (cube) of dimensions (n1, n2, n3)}

\item{mode}{The mode to unfold along (1, 2, or 3)}
}
\value{
A numeric matrix: the mode-\code{mode} unfolding (matricization) of
\code{T_cube}, with dimensions \verb{n1 x (n2 * n3)}, \verb{n2 x (n1 * n3)}, or
\verb{n3 x (n1 * n2)} for \code{mode} 1, 2, or 3 respectively.
}
\description{
Tensor Unfolding (Matricization) for Synthetic Interventions
}
