Skip to content

File specification

Jaap Baak edited this page Mar 25, 2024 · 4 revisions

A matrix file, containing one or more matrices, is specified by a sequence of key=value pairs, separated by semicolons.

Common keys that are always required:

Key Description Valid values
file Path to the file containing the matrices Existing file path
format Format of the file containing the matrices txt (Text format)
mtp (Minutp format)
visum (PTV Visum binary format)
omx (Open Matrix Format)
4g (4g Format)

Additional input file keys (depending on the format):

Format Key Description Valid values Default
txt encoding Text encoding Valid encoding name ascii
delim Column delimiter comma
tab
semicolon
space
tab
separator Decimal separator comma
point
point
e3separator Thousand separator comma
point
none
none
header File contains header line false
true
true
mtp prec Multiplier applied to the matrices Integer value n to indicate a multiplier value 10n 0

Additional output file keys (depending on the format):

Format Key Description Valid values Default
txt encoding Text encoding Valid encoding name ascii
delim Column delimiter comma
tab
semicolon
space
tab
separator Decimal separator comma
point
point
e3separator Thousand separator comma
point
none
none
header Write header line to file false
true
true
decimals Number of decimals written to file Integer value 3
bom Write byte order mark to file false
true
false
mtp prec Multiplier to be applied to the matrices Integer value n to indicate a multiplier value 10n 0
omx prec Storage precision float32
float64
float32
4g prec Storage precision float16
float32
float64
float32
compress Compression method none
gzip
gzip
Clone this wiki locally