~ubuntu-branches/ubuntu/maverick/openturns/maverick

« back to all changes in this revision

Viewing changes to lib/test/t_NumericalSample_big.cxx

  • Committer: Bazaar Package Importer
  • Author(s): Christophe Prud'homme
  • Date: 2008-11-18 06:32:22 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20081118063222-pa0qncclrerrqkg2
Tags: 0.12.2-1
* New upstream release
* Bug fix: "New upstream release available (0.12.2)", thanks to Jerome
  Robert (Closes: #506005).
* Applied patch by J. Robert.
* debian/control: build-depends on libxml2

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
21
21
 *
22
22
 *  @author: $LastChangedBy: dutka $
23
 
 *  @date:   $LastChangedDate: 2008-06-26 13:50:17 +0200 (jeu, 26 jun 2008) $
24
 
 *  Id:      $Id: t_NumericalSample_big.cxx 862 2008-06-26 11:50:17Z dutka $
 
23
 *  @date:   $LastChangedDate: 2008-10-31 11:52:04 +0100 (ven 31 oct 2008) $
 
24
 *  Id:      $Id: t_NumericalSample_big.cxx 995 2008-10-31 10:52:04Z dutka $
25
25
 */
26
26
#include <iostream>
27
27
#include <sstream>
44
44
 
45
45
    {
46
46
      // We create an empty NumericalSample
47
 
      NumericalSample sample(0, 2, "EmptySample");
 
47
      NumericalSample sample(0, 2);
 
48
      sample.setName("EmptySample");
48
49
      std::cout << "sample=" << sample << std::endl;
49
50
 
50
51
      try {
63
64
 
64
65
    {
65
66
      // We create an small NumericalSample
66
 
      NumericalSample sample(1, 2, "SmallSample");
 
67
      NumericalSample sample(1, 2);
 
68
      sample.setName("SmallSample");
67
69
      std::cout << "sample=" << sample << std::endl;
68
70
 
69
71
      // We access the element of the sample
87
89
 
88
90
    {
89
91
      // We create a big NumericalSample
90
 
      NumericalSample sample(1000000, 2, "BigSample");
 
92
      NumericalSample sample(1000000, 2);
 
93
      sample.setName("BigSample");
91
94
 
92
95
      // We populate the sample
93
96
      UnsignedLong size(sample.getSize());