239 double(
im)*DOUBLE_POW2[64 -
shift]);
245 std::cout <<
"re = " <<
re << std::endl;
246 std::cout <<
"im = " <<
im << std::endl;
255 else if (x.
re == 0 && x.
im == 0)
257 else if (y.
re == 0 && y.
im == 0)
260 it_error(
"assert_shifts: Different shifts not allowed!");
271 else if (x.
re == 0 && x.
im == 0)
276 it_error(
"assert_shifts: Different shifts not allowed!");
284 && (y != 0),
"assert_shifts: Different shifts not allowed!");
290 std::complex<double> value;
292 if (!is.eof() && (is.peek() ==
'<')) {
295 if (is.peek() ==
'<') {
333 os << std::complex<double>(x);
336 os << std::complex<double>(x) <<
"<<" << x.
get_shift();
339 it_error(
"operator<<: Illegal output mode!");
348 std::istringstream buffer(values);
349 int default_shift = 0, pos = 0, maxpos = 10;
352 default_shift =
data[0].get_shift();
355 while (buffer.peek() != EOF) {
356 switch (buffer.peek()) {
358 it_error(
"set: expressions with ':' are not valid for cfixvec");
369 data[pos-1].set_shift(default_shift);
370 buffer >>
data[pos-1];
371 while (buffer.peek() ==
' ') { buffer.get(); }
382 std::istringstream buffer(values);
383 int default_shift = 0,
rows = 0, maxrows = 10,
cols = 0, nocols = 0, maxcols = 10;
386 default_shift =
data[0].get_shift();
388 alloc(maxrows, maxcols);
389 while (buffer.peek() != EOF) {
391 if (
rows > maxrows) {
392 maxrows = maxrows * 2;
396 while ((buffer.peek() !=
';') && (buffer.peek() != EOF)) {
397 if (buffer.peek() ==
',') {
404 if (
cols > maxcols) {
405 maxcols = maxcols * 2;
411 while (buffer.peek() ==
' ') { buffer.get(); }