1Float.ArrayLabels(3) OCaml library Float.ArrayLabels(3)
2
3
4
6 Float.ArrayLabels - no description
7
9 Module Float.ArrayLabels
10
12 Module ArrayLabels
13 : sig end
14
15
16
17
18
19
20
21 type t = floatarray
22
23
24
25
26
27 val length : t -> int
28
29
30
31
32 val get : t -> int -> float
33
34
35
36
37 val set : t -> int -> float -> unit
38
39
40
41
42 val make : int -> float -> t
43
44
45
46
47 val create : int -> t
48
49
50
51
52 val init : int -> f:(int -> float) -> t
53
54
55
56
57 val append : t -> t -> t
58
59
60
61
62 val concat : t list -> t
63
64
65
66
67 val sub : t -> pos:int -> len:int -> t
68
69
70
71
72 val copy : t -> t
73
74
75
76
77 val fill : t -> pos:int -> len:int -> float -> unit
78
79
80
81
82 val blit : src:t -> src_pos:int -> dst:t -> dst_pos:int -> len:int ->
83 unit
84
85
86
87
88 val to_list : t -> float list
89
90
91
92
93 val of_list : float list -> t
94
95
96
97
98 val iter : f:(float -> unit) -> t -> unit
99
100
101
102
103 val iteri : f:(int -> float -> unit) -> t -> unit
104
105
106
107
108 val map : f:(float -> float) -> t -> t
109
110
111
112
113 val mapi : f:(int -> float -> float) -> t -> t
114
115
116
117
118 val fold_left : f:('a -> float -> 'a) -> init:'a -> t -> 'a
119
120
121
122
123 val fold_right : f:(float -> 'a -> 'a) -> t -> init:'a -> 'a
124
125
126
127
128 val iter2 : f:(float -> float -> unit) -> t -> t -> unit
129
130
131
132
133 val map2 : f:(float -> float -> float) -> t -> t -> t
134
135
136
137
138 val for_all : f:(float -> bool) -> t -> bool
139
140
141
142
143 val exists : f:(float -> bool) -> t -> bool
144
145
146
147
148 val mem : float -> set:t -> bool
149
150
151
152
153 val mem_ieee : float -> set:t -> bool
154
155
156
157
158 val sort : cmp:(float -> float -> int) -> t -> unit
159
160
161
162
163 val stable_sort : cmp:(float -> float -> int) -> t -> unit
164
165
166
167
168 val fast_sort : cmp:(float -> float -> int) -> t -> unit
169
170
171
172
173 val to_seq : t -> float Seq.t
174
175
176
177
178 val to_seqi : t -> (int * float) Seq.t
179
180
181
182
183 val of_seq : float Seq.t -> t
184
185
186
187
188 val map_to_array : f:(float -> 'a) -> t -> 'a array
189
190
191
192
193 val map_from_array : f:('a -> float) -> 'a array -> t
194
195
196
197
198 val unsafe_get : t -> int -> float
199
200
201
202
203 val unsafe_set : t -> int -> float -> unit
204
205
206
207
208
209
210OCamldoc 2020-02-27 Float.ArrayLabels(3)