/[escript]/trunk/escript/src/Data.cpp
ViewVC logotype

Diff of /trunk/escript/src/Data.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2421 by gross, Thu May 14 02:29:06 2009 UTC revision 2455 by jfenwick, Wed Jun 3 03:29:07 2009 UTC
# Line 1015  Data::getLength() const Line 1015  Data::getLength() const
1015    return m_data->getLength();    return m_data->getLength();
1016  }  }
1017    
 const  
 boost::python::numeric :: array  
 Data:: getValueOfDataPoint(int dataPointNo)  
 {  
     return boost::python::numeric::array(getValueOfDataPointAsTuple(dataPointNo));  
 }  
   
1018  const boost::python::object  const boost::python::object
1019  Data::getValueOfDataPointAsTuple(int dataPointNo)  Data::getValueOfDataPointAsTuple(int dataPointNo)
1020  {  {
# Line 1118  Data::setValueOfDataPoint(int dataPointN Line 1111  Data::setValueOfDataPoint(int dataPointN
1111  }  }
1112    
1113  const  const
 boost::python::numeric::array  
 Data::getValueOfGlobalDataPoint(int procNo, int dataPointNo)  
 {  
    return boost::python::numeric::array(getValueOfGlobalDataPointAsTuple(procNo, dataPointNo));  
 }  
   
 const  
1114  boost::python::object  boost::python::object
1115  Data::getValueOfGlobalDataPointAsTuple(int procNo, int dataPointNo)  Data::getValueOfGlobalDataPointAsTuple(int procNo, int dataPointNo)
1116  {  {
# Line 1199  Data::integrateToTuple() Line 1185  Data::integrateToTuple()
1185    
1186  }  }
1187    
   
 boost::python::object  
 Data::integrate_const() const  
 {  
   if (isLazy())  
   {  
     throw DataException("Error - cannot integrate for constant lazy data.");  
   }  
   return boost::python::numeric::array(integrateWorker());  
 }  
   
 boost::python::object  
 Data::integrate()  
 {  
   if (isLazy())  
   {  
     expand();  
   }  
   return boost::python::numeric::array(integrateWorker());  
 }  
   
   
   
1188  boost::python::object  boost::python::object
1189  Data::integrateWorker() const  Data::integrateWorker() const
1190  {  {

Legend:
Removed from v.2421  
changed lines
  Added in v.2455

  ViewVC Help
Powered by ViewVC 1.1.26