Revision 1025 trunk/src/df1b2-separable/f1b2vc1.cpp

f1b2vc1.cpp (revision 1025)
576 576
}
577 577

  
578 578
/**
579
 * Construct df1b2vector from dvector v.
580
 */
581
df1b2vector::df1b2vector(const dvector& v)
582
{
583
  if (!v)
584
  {
585
    allocate();
586
  }
587
  else
588
  {
589
    const int lb = v.indexmin();
590
    const int ub = v.indexmax();
591
    if (lb<=ub)
592
    {
593
      allocate(lb,ub);
594
      for (int i = lb; i <= ub; i++)
595
      {
596
        (*this)[i] = v[i];
597
      }
598
    }
599
  }
600
}
601

  
602
/**
579 603
 * Description not yet available.
580 604
 * \param
581 605
 */

Also available in: Unified diff