-
Notifications
You must be signed in to change notification settings - Fork 57
/
Copy pathbvec.html
233 lines (211 loc) · 6.29 KB
/
bvec.html
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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
<html>
<head>
<title>
BVEC - Binary Vector Representation of Signed Integers
</title>
</head>
<body bgcolor="#EEEEEE" link="#CC0000" alink="#FF3300" vlink="#000055">
<h1 align = "center">
BVEC <br> Binary Vector Representation of Signed Integers
</h1>
<hr>
<p>
<b>BVEC</b>
is a MATLAB library which
demonstrates how signed integers can be stored as
binary vectors, and arithmetic can be performed on them.
</p>
<h3 align = "center">
Licensing:
</h3>
<p>
The computer code and data files made available on this
web page are distributed under
<a href = "../../txt/gnu_lgpl.txt">the GNU LGPL license.</a>
</p>
<h3 align = "center">
Languages:
</h3>
<p>
<b>BVEC</b> is available in
<a href = "../../c_src/bvec/bvec.html">a C version</a> and
<a href = "../../cpp_src/bvec/bvec.html">a C++ version</a> and
<a href = "../../f77_src/bvec/bvec.html">a FORTRAN77 version</a> and
<a href = "../../f_src/bvec/bvec.html">a FORTRAN90 version</a> and
<a href = "../../m_src/bvec/bvec.html">a MATLAB version</a> and
<a href = "../../py_src/bvec/bvec.html">a Python version</a>.
</p>
<h3 align = "center">
Related Data and Programs:
</h3>
<p>
<a href = "../../py_src/subset/subset.html">
SUBSET</a>,
a MATLAB library which
enumerates, generates, randomizes, ranks and unranks combinatorial objects
including combinations, compositions, Gray codes, index sets, partitions,
permutations, polynomials, subsets, and Young tables. Backtracking
routines are included to solve some combinatorial problems.
</p>
<h3 align = "center">
Source Code:
</h3>
<p>
<ul>
<li>
<a href = "bvec_add.m">bvec_add.m</a>,
adds two binary vectors.
</li>
<li>
<a href = "bvec_and.m">bvec_and.m</a>,
computes the logical AND of two binary vectors.
</li>
<li>
<a href = "bvec_check.m">bvec_check.m</a>,
checks a binary vector.
</li>
<li>
<a href = "bvec_complement2.m">bvec_complement2.m</a>,
returns the complement of a binary vector.
</li>
<li>
<a href = "bvec_enum.m">bvec_enum.m</a>,
returns the number of binary vectors of given length.
</li>
<li>
<a href = "bvec_mul.m">bvec_mul.m</a>,
multiplies two binary vectors.
</li>
<li>
<a href = "bvec_next.m">bvec_next.m</a>,
returns the next binary vector.
</li>
<li>
<a href = "bvec_next_grlex.m">bvec_next_grlex.m</a>,
returns the next binary vector in GRLEX order.
</li>
<li>
<a href = "bvec_not.m">bvec_not.m</a>,
negates a binary vector.
</li>
<li>
<a href = "bvec_or.m">bvec_or.m</a>,
returns the logical OR of two binary vectors.
</li>
<li>
<a href = "bvec_print.m">bvec_print.m</a>,
prints a binary vector.
</li>
<li>
<a href = "bvec_reverse.m">bvec_reverse.m</a>,
reverses a binary vector.
</li>
<li>
<a href = "bvec_sub.m">bvec_sub.m</a>,
subtracts two binary vectors.
</li>
<li>
<a href = "bvec_to_i4.m">bvec_to_i4.m</a>,
converts a (signed) binary vector to an integer.
</li>
<li>
<a href = "bvec_uniform.m">bvec_uniform.m</a>,
returns a random BVEC (a binary vector).
</li>
<li>
<a href = "bvec_xor.m">bvec_xor.m</a>,
returns the exclusive OR of two binary vectors.
</li>
<li>
<a href = "i4_bclr.m">i4_bclr.m</a>,
sets a given bit of an I4 to 0.
</li>
<li>
<a href = "i4_bset.m">i4_bset.m</a>,
sets a given bit of an I4 to 1.
</li>
<li>
<a href = "i4_btest.m">i4_btest.m</a>,
returns TRUE if bit POS of I is a 1.
</li>
<li>
<a href = "i4_to_bvec.m">i4_to_bvec.m</a>,
converts an I4 to a (signed) binary vector.
</li>
<li>
<a href = "i4_uniform_ab.m">i4_uniform_ab.m</a>,
returns a random integer in a given range.
</li>
<li>
<a href = "s_len_trim.m">s_len_trim.m</a>,
returns the length of a string to the last nonblank.
</li>
<li>
<a href = "timestamp.m">timestamp.m</a>,
returns the current YMDHMS date as a timestamp.
</li>
</ul>
</p>
<h3 align = "center">
Examples and Tests:
</h3>
<p>
<ul>
<li>
<a href = "bvec_test.m">bvec_test.m</a>,
runs all the tests;
</li>
<li>
<a href = "bvec_test_output.txt">bvec_test_output.txt</a>,
the output file;
</li>
<li>
<a href = "bvec_add_test.m">bvec_add_test.m</a>
</li>
<li>
<a href = "bvec_complement2_test.m">bvec_complement2_test.m</a>
</li>
<li>
<a href = "bvec_mul_test.m">bvec_mul_test.m</a>
</li>
<li>
<a href = "bvec_next_test.m">bvec_next_test.m</a>
</li>
<li>
<a href = "bvec_print_test.m">bvec_print_test.m</a>
</li>
<li>
<a href = "bvec_sub_test.m">bvec_sub_test.m</a>
</li>
<li>
<a href = "bvec_to_i4_test.m">bvec_to_i4_test.m</a>
</li>
<li>
<a href = "bvec_uniform_test.m">bvec_uniform_test.m</a>
</li>
<li>
<a href = "i4_bclr_test.m">i4_bclr_test.m</a>
</li>
<li>
<a href = "i4_bset_test.m">i4_bset_test.m</a>
</li>
<li>
<a href = "i4_btest_test.m">i4_btest_test.m</a>
</li>
<li>
<a href = "i4_to_bvec_test.m">i4_to_bvec_text</a>
</li>
</ul>
</p>
<p>
You can go up one level to <a href = "../m_src.html">
the MATLAB source codes</a>.
</p>
<hr>
<i>
Last revised on 31 December 2014.
</i>
<!-- John Burkardt -->
</body>
<!-- Initial HTML skeleton created by HTMLINDEX. -->
</html>