summaryrefslogtreecommitdiff
path: root/tests/examplefiles/scilab/scilab.sci.output
blob: 42f8bdcf3adbe273d70e23f4997b6595087ca079 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
'// Scilab ( http://www.scilab.org/ )' Comment.Single
'\n'          Text.Whitespace

'// Copyright (C) INRIA - Serge STEER' Comment.Single
'\n'          Text.Whitespace

'// '         Comment.Single
'\n\n'        Text.Whitespace

'function'    Keyword
' '           Text.Whitespace
'I'           Text
'='           Punctuation
'sub2ind'     Name.Function
'('           Punctuation
'dims,varargin' Text
')'           Punctuation
'\n'          Text.Whitespace

'//sub2ind is used to determine the equivalent single index' Comment.Single
'\n'          Text.Whitespace

'//corresponding to a given set of subscript values.' Comment.Single
'\n \n'       Text.Whitespace

'//I = sub2ind(dims,i1,i2,..) returns the linear index equivalent to the' Comment.Single
'\n'          Text.Whitespace

'//row,  column, ... subscripts in the arrays i1,i2,..  for an matrix of' Comment.Single
'\n'          Text.Whitespace

'//size dims.' Comment.Single
'\n \n'       Text.Whitespace

'//I = sub2ind(dims,Mi) returns the linear index' Comment.Single
'\n'          Text.Whitespace

'//equivalent to the n subscripts in the columns of the matrix Mi for a matrix' Comment.Single
'\n'          Text.Whitespace

'//of size dims.' Comment.Single
'\n \n  '     Text.Whitespace
'd'           Name
'=['          Punctuation
'1'           Literal.Number.Integer
';'           Punctuation
'cumprod'     Name.Builtin
'('           Punctuation
'matrix'      Name.Builtin
'('           Punctuation
'dims'        Name
'('           Punctuation
'1'           Literal.Number.Integer
':'           Punctuation
'$'           Text
'-'           Operator
'1'           Literal.Number.Integer
'),'          Punctuation
'-'           Operator
'1'           Literal.Number.Integer
','           Punctuation
'1'           Literal.Number.Integer
'))]'         Punctuation
'\n  '        Text.Whitespace
'for'         Keyword
' '           Text.Whitespace
'i'           Name
'='           Punctuation
'1'           Literal.Number.Integer
':'           Punctuation
'size'        Name.Builtin
'('           Punctuation
'varargin'    Name
')'           Punctuation
'\n    '      Text.Whitespace
'if'          Keyword
' '           Text.Whitespace
'varargin'    Name
'('           Punctuation
'i'           Name
')==[]'       Punctuation
' '           Text.Whitespace
'then'        Name.Builtin
' '           Text.Whitespace
'I'           Name
'=[],'        Punctuation
'return'      Keyword
','           Punctuation
'end'         Keyword
'\n  '        Text.Whitespace
'end'         Keyword
'\n\n  '      Text.Whitespace
'if'          Keyword
' '           Text.Whitespace
'size'        Name.Builtin
'('           Punctuation
'varargin'    Name
')=='         Punctuation
'1'           Literal.Number.Integer
' '           Text.Whitespace
'then'        Name.Builtin
' '           Text.Whitespace
'//subindices are the columns of the argument' Comment.Single
'\n    '      Text.Whitespace
'I'           Name
'=('          Punctuation
'varargin'    Name
'('           Punctuation
'1'           Literal.Number.Integer
')'           Punctuation
'-'           Operator
'1'           Literal.Number.Integer
')'           Punctuation
'*'           Operator
'd'           Name
'+'           Operator
'1'           Literal.Number.Integer
'\n  '        Text.Whitespace
'else'        Keyword
' '           Text.Whitespace
'//subindices are given as separated arguments' Comment.Single
'\n    '      Text.Whitespace
'I'           Name
'='           Punctuation
'1'           Literal.Number.Integer
'\n    '      Text.Whitespace
'for'         Keyword
' '           Text.Whitespace
'i'           Name
'='           Punctuation
'1'           Literal.Number.Integer
':'           Punctuation
'size'        Name.Builtin
'('           Punctuation
'varargin'    Name
')'           Punctuation
'\n      '    Text.Whitespace
'I'           Name
'='           Punctuation
'I'           Name
'+'           Operator
'('           Punctuation
'varargin'    Name
'('           Punctuation
'i'           Name
')'           Punctuation
'-'           Operator
'1'           Literal.Number.Integer
')'           Punctuation
'*'           Operator
'd'           Name
'('           Punctuation
'i'           Name
')'           Punctuation
'\n    '      Text.Whitespace
'end'         Keyword
'\n  '        Text.Whitespace
'end'         Keyword
'\n'          Text.Whitespace

'endfunction' Keyword
'\n'          Text.Whitespace