% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/llama.R
\name{llama_memory_seq_div}
\alias{llama_memory_seq_div}
\title{Integer-divide token positions in a sequence}
\usage{
llama_memory_seq_div(ctx, seq_id, p0, p1, d)
}
\arguments{
\item{ctx}{Context handle returned by [llama_new_context]}

\item{seq_id}{Sequence ID}

\item{p0}{Start position (inclusive). Use -1 for beginning.}

\item{p1}{End position (exclusive). Use -1 for end.}

\item{d}{Divisor (positive integer)}
}
\value{
No return value, called for side effects.
}
\description{
Divides all token positions in the range \code{[p0, p1)} for the given
sequence by \code{d}. Use \code{p0 = -1} and \code{p1 = -1} for the full range.
Useful for implementing sliding-window context compression.
}
