% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/autograd.R
\name{ag_add}
\alias{ag_add}
\title{Element-wise addition with broadcasting}
\usage{
ag_add(A, B)
}
\arguments{
\item{A}{ag_tensor or numeric matrix}

\item{B}{ag_tensor or numeric matrix (may be \code{[m,1]} or \code{[1,n]}
for broadcasting)}
}
\value{
ag_tensor
}
\description{
Computes \code{A + B}. If \code{B} is \code{[m, 1]} and \code{A} is
\code{[m, n]}, \code{B} is broadcast across columns (useful for bias
vectors).
}
