% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/GRCFE.R
\name{canonicalize_vec}
\alias{canonicalize_vec}
\title{Canonicalize a projective-space vector}
\usage{
canonicalize_vec(v, s)
}
\arguments{
\item{v}{Numeric vector.}

\item{s}{Prime modulus.}
}
\value{
Integer vector in canonical projective form.
}
\description{
Scales a nonzero vector over \code{GF(s)} so that its first nonzero entry is
equal to 1.
}
\keyword{internal}
