FortranScalarType¶
forttyp.spad line 1 [edit on github]
Creates and manipulates objects which correspond to the basic FORTRAN data types: REAL, INTEGER, COMPLEX, LOGICAL and CHARACTER
- =: (%, %) -> Boolean
x=ytests for equality
- character?: % -> Boolean
character?(t)tests whethertis equivalent to the FORTRAN type CHARACTER.
- coerce: % -> OutputForm
from CoercibleTo OutputForm
- coerce: % -> SExpression
coerce(x)returns thes-expression associated withx
- coerce: % -> String
coerce(x)returns the uppercase string associated withx
- coerce: % -> Symbol
coerce(x)returns the symbol associated withx
- coerce: String -> %
coerce(s)transforms the stringsinto an element of FortranScalarType providedsis one of “real”, “double precision”, “complex”, “logical”, “integer”, “character”, “REAL”, “COMPLEX”, “LOGICAL”, “INTEGER”, “CHARACTER”, “DOUBLE PRECISION”
- coerce: Symbol -> %
coerce(s)transforms the symbolsinto an element of FortranScalarType providedsis one of real, complex, double precision, logical, integer, character, REAL, COMPLEX, LOGICAL, INTEGER, CHARACTER, DOUBLE PRECISION
- complex?: % -> Boolean
complex?(t)tests whethertis equivalent to the FORTRAN type COMPLEX.
- double?: % -> Boolean
double?(t)tests whethertis equivalent to the FORTRAN type DOUBLE PRECISION
- doubleComplex?: % -> Boolean
doubleComplex?(t)tests whethertis equivalent to the (non-standard) FORTRAN type DOUBLE COMPLEX.
- integer?: % -> Boolean
integer?(t)tests whethertis equivalent to the FORTRAN type INTEGER.
- logical?: % -> Boolean
logical?(t)tests whethertis equivalent to the FORTRAN type LOGICAL.
- real?: % -> Boolean
real?(t)tests whethertis equivalent to the FORTRAN type REAL.