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

« back to all changes in this revision

Viewing changes to lib/src/Base/Type/TensorImplementation.cxx

  • Committer: Bazaar Package Importer
  • Author(s): Fabrice Coutadeur
  • Date: 2009-08-18 18:14:38 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20090818181438-copqi92r4z7y0ejc
Tags: 0.13.1-1ubuntu1
debian/python-openturns.install: update to use python* and *-packages.
This fix a FTBFS with python2.6.  (LP: #350437)

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-10-31 11:52:04 +0100 (ven 31 oct 2008) $
24
 
 *  Id:      $Id: TensorImplementation.cxx 995 2008-10-31 10:52:04Z dutka $
 
23
 *  @date:   $LastChangedDate: 2009-05-28 14:47:53 +0200 (jeu. 28 mai 2009) $
 
24
 *  Id:      $Id: TensorImplementation.cxx 1262 2009-05-28 12:47:53Z dutka $
25
25
 */
26
26
#include "TensorImplementation.hxx"
27
27
#include "PersistentObjectFactory.hxx"
89
89
 
90
90
 
91
91
      /* String converter */
92
 
      String TensorImplementation::str() const
 
92
      String TensorImplementation::__repr__() const
93
93
      {
94
94
        return OSS() << "class=" << getClassName()
95
95
                     << " name=" << getName()
96
96
                     << " rows=" << getNbRows()
97
97
                     << " columns=" << getNbColumns()
98
98
                     << " sheets=" << getNbSheets()
99
 
                     << " values=" << PersistentCollection<NumericalScalar>::str();
 
99
                     << " values=" << PersistentCollection<NumericalScalar>::__repr__();
100
100
      }
101
101
 
 
102
      String TensorImplementation::__str__() const
 
103
      {
 
104
        return __repr__();
 
105
      }
102
106
 
103
107
      /* Get the dimensions of the TensorImplementation : number of rows */
104
108
      const UnsignedLong TensorImplementation::getNbRows() const
200
204
      }
201
205
      
202
206
 
203
 
      /*
204
 
       * @fn std::ostream & operator <<(std::ostream & os, const TensorImplementation & obj)
205
 
       * @brief Output stream converter
206
 
       * @param os A STL output stream object
207
 
       * @param obj The object read by \em os
208
 
       * @return A reference to \em os
209
 
       */
210
 
      std::ostream & operator <<(std::ostream & os, const TensorImplementation & obj)
211
 
      {
212
 
        return os << obj.str();
213
 
      }
214
 
 
215
 
 
216
207
      /* Symmetrize MatrixImplementation in case it is a symmetric matrix (stored as a triangular matrix) */
217
208
      void TensorImplementation::symmetrize() const
218
209
      {