1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/revdiag.R
\name{revdiag}
\alias{revdiag}
\alias{revdiag<-}
\alias{offdiag}
\alias{offdiag<-}
\title{Create/extract 'reverse'-diagonal matrix or off-diagonal elements}
\usage{
revdiag(x,...)
offdiag(x,type=0,...)
revdiag(x,...) <- value
offdiag(x,type=0,...) <- value
}
\arguments{
\item{x}{vector}
\item{\dots}{additional arguments to lower level functions}
\item{value}{For the assignment function the values to put in the diagonal}
\item{type}{0: upper and lower triangular, 1: upper triangular, 2: lower triangular, 3: upper triangular + diagonal, 4: lower triangular + diagonal}
}
\description{
Create/extract 'reverse'-diagonal matrix or off-diagonal elements
}
\author{
Klaus K. Holst
}
|