% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{normalize}
\alias{normalize}
\title{Normalize a matrix or nd-array}
\usage{
normalize(x, axis = -1, order = 2)
}
\arguments{
\item{x}{Matrix or array to normalize}

\item{axis}{Axis along which to normalize}

\item{order}{Normalization order (e.g. 2 for L2 norm)}
}
\value{
A normalized copy of the array.
}
\description{
Normalize a matrix or nd-array
}
