Click or drag to resize
Accord.NET (logo)

IdxReaderMagic Property

MNIST's magic number. See remarks for more details

Namespace:  Accord.IO
Assembly:  Accord.IO (in Accord.IO.dll) Version: 3.8.0
Syntax
public int Magic { get; }
Request Example View Source

Property Value

Type: Int32
Remarks

The magic number is an integer (MSB first). The first 2 bytes are always 0. The third byte codes the type of the data. The 4-th byte codes the number of dimensions of the vector/matrix: 1 for vectors, 2 for matrices.

CodeMeaning
0x08unsigned byte
0x09signed byte
0x0Bshort (2 bytes)
0x0Cint (4 bytes)
0x0Dfloat (4 bytes)
0x0Edouble (8 bytes)
See Also