Navigation

Operators and Keywords

Function List:

C++ API

test_io.m File Reference


Functions

input a1 ()
 !if (nargin< 1)%!input=0
 !if (!input)%!for i
 !load (file)
 !assert (a1, b1, tol)
 !assert (a2, b2, tol)
 !assert (a3, b3, tol)
 !assert (a4, b4, tol)
"ferror (1, \"clear\", 2 fail ()
"foo" ferror ()
id ftell ()
id fseek ()
id frewind ()

Variables

!endif !a1 = 1
!persistent a2 = hilb(3)
!persistent a3 = 1 + 1i
!persistent a4 = hilb(3) + 1i*hilb(3)
!persistent a5 = (1 == 1)
!persistent a6 = ([ones(1,5), zeros(1,5)] == ones(1,10))
!persistent a7 = 1:10
!persistent a8 = struct ("a", a1, "b", a3)
!persistent a9 = {a1, a3}
!persistent a10 = ["test"
 strings
!persistent a11 = int8(floor(256*rand(2,2)))
!persistent a12 = int16(floor(65536*rand(2,2)))
!persistent a13 = int32(floor(1e6*rand(2,2)))
!persistent a14 = int64(floor(10*rand(2,2)))
!persistent a15 = uint8(floor(256*rand(2,2)))
!persistent a16 = uint16(floor(65536*rand(2,2)))
!persistent a17 = uint32(floor(1e6*rand(2,2)))
!persistent a18 = uint64(floor(10*rand(2,2)))
!persistent a19 = sprandn(100,100,0.01)
!persistent a20 = sprandn(100,100,0.01) + 1i * sprandn(100,100,0.01)
 !ret = 0
 !files = {"text.mat", "binary.mat", "mat5.mat", "mat7.mat"}
 !opts = {"-z -text", "-z -binary", "-z -mat", "-v7"}
 !tols = {2*eps, 0, 0, 0}
 !vars = "a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 a11 a12 a13 a14 a15 a16 a17 a18 a19 a20"
!endfor!else !b1 = a1
 b2 = a2
 b3 = a3
 b4 = a4
 b5 = a5
 !b6 = a6
 b7 = a7
 b8 = a8
 b9 = a9
 !b10 = a10
 b11 = a11
 b12 = a12
 b13 = a13
 b14 = a14
 b15 = a15
 !b16 = a16
 b17 = a17
 b18 = a18
 b19 = a19
 b20 = a20
!for i
 !file = files{i}
 !tol = tols{i}
 !if (!isequal(a5, b5))%!error("failed

Function Documentation

!assert ( a4  ,
b4  ,
tol   
)

!assert ( a3  ,
b3  ,
tol   
)

!assert ( a2  ,
b2  ,
tol   
)

!assert ( a1  ,
b1  ,
tol   
)

!if ( input  ) 

!if (  )  [pure virtual]

!load ( file   ) 

input a1 (  )  [virtual]

"ferror (1, \"clear\", 2 fail (  )  [virtual]

Type Constraints

"foo" ferror (  )  [virtual]

foo frewind (  )  [virtual]

foo SEEK_SET fseek (  )  [virtual]

foo ftell (  )  [virtual]


Variable Documentation

! endif !a1 = 1

! endfor ! else !b1 = a1

!b10 = a10

!b16 = a16

!b6 = a6

!file = files{i}

!files = {"text.mat", "binary.mat", "mat5.mat", "mat7.mat"}

!if(!isequal(a5, b5))%!error("failed

!opts = {"-z -text", "-z -binary", "-z -mat", "-v7"}

!ret = 0

!tol = tols{i}

!tols = {2*eps, 0, 0, 0}

!vars = "a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 a11 a12 a13 a14 a15 a16 a17 a18 a19 a20"

! persistent a10 = ["test"

! persistent a11 = int8(floor(256*rand(2,2)))

! persistent a12 = int16(floor(65536*rand(2,2)))

! persistent a13 = int32(floor(1e6*rand(2,2)))

! persistent a14 = int64(floor(10*rand(2,2)))

! persistent a15 = uint8(floor(256*rand(2,2)))

! persistent a16 = uint16(floor(65536*rand(2,2)))

! persistent a17 = uint32(floor(1e6*rand(2,2)))

! persistent a18 = uint64(floor(10*rand(2,2)))

! persistent a19 = sprandn(100,100,0.01)

! persistent a2 = hilb(3)

! persistent a20 = sprandn(100,100,0.01) + 1i * sprandn(100,100,0.01)

a3 = 1 + 1i

! persistent a4 = hilb(3) + 1i*hilb(3)

! persistent a5 = (1 == 1)

! persistent a6 = ([ones(1,5), zeros(1,5)] == ones(1,10))

! persistent a7 = 1:10

! persistent a8 = struct ("a", a1, "b", a3)

! persistent a9 = {a1, a3}

b11 = a11

b12 = a12

b13 = a13

b14 = a14

b15 = a15

b17 = a17

b18 = a18

b19 = a19

b2 = a2

b20 = a20

b3 = a3

b4 = a4

b5 = a5

b7 = a7

b8 = a8

b9 = a9

! for i

Initial value: