Return a scalar, matrix or N-dimensional array whose elements are all equal to the IEEE representation for positive infinity.
Infinity is produced when results are too large to be represented using the IEEE floating point format for numbers. Two common examples which produce infinity are division by zero and overflow.
[ 1/0 e^800 ] ⇒ Inf Inf
When called with no arguments, return a scalar with the value ‘Inf’.
When called with a single argument, return a square matrix with the dimension specified.
When called with more than one scalar argument the first two arguments are taken as the number of rows and columns and any further arguments specify additional matrix dimensions.
The optional argument class specifies the return type and may be
either "double"
or "single"
.
See also: isinf, NaN.
Package: octave