fabien van mook

all packages "fvm-*"

package "fvm-real2text"

function file "real2text_vectorise.m"

Function rt = real2text_vectorise(r)
         rt = real2text_vectorise(rt)

returns a struct with a "vectorisation" of the 
elements in the input. The input argument r is a
numerical scalar, vector, matrix or cell-array;
as a cell-array, it may contain different data
types.

Alternatively, the input data may also be given
within rt.data, by struct rt.

The function distinguishes reals from other data
types. Booleans are seen as reals too.

The function uses the following input:
 either
  r         (scalar, vector, matrix or cell-array)
 or
  rt.data   (scalar, vector, matrix or cell-array)

The output struc rt contains new or renewed fields:
  rt.size   (vector indicating the size of the original 
             input)
  rt.iscell (boolean, whether the original input is 
             a cell-array instead of a matrix)
  rt.data   (vectorised input as a one-dimensional 
             cell-array)
  rt.realtype (vector of integers classifying each 
               element in rt.data with 
               value 0 for a non-real,
               value 1 for a finite real, and
               values 2...5 for non-finite reals 
               -Inf, +Inf, NaN and NA, respectively)


(c) 2026 fabien van mook

2026.08.20 release of this file within package "fvm-real2text" under GNU GPLv3+