/[escript]/branches/lapack2681/escript/src/DataMaths.h
ViewVC logotype

Diff of /branches/lapack2681/escript/src/DataMaths.h

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

revision 2739 by jfenwick, Mon Nov 9 06:25:31 2009 UTC revision 2740 by jfenwick, Tue Nov 10 06:48:24 2009 UTC
# Line 899  reductionOp(const DataTypes::ValueType& Line 899  reductionOp(const DataTypes::ValueType&
899       \param outShape - expected shape of the inverses       \param outShape - expected shape of the inverses
900       \param outOffset - starting location for storing the inverses in out       \param outOffset - starting location for storing the inverses in out
901       \param count - number of matricies to invert       \param count - number of matricies to invert
902         \param piv - array of int with at least N elements (matrix is NxN) only required for Lapack interface
903    
904       \exception DataException if input and output are not the correct shape or if any of the matricies are not invertible.       \exception DataException if input and output are not the correct shape or if any of the matricies are not invertible.
905         \return 0 on success, on failure the return value should be passed to matrixInverseError(int err).
906  */  */
907  void  int
908  matrix_inverse(const DataTypes::ValueType& in,  matrix_inverse(const DataTypes::ValueType& in,
909          const DataTypes::ShapeType& inShape,          const DataTypes::ShapeType& inShape,
910              DataTypes::ValueType::size_type inOffset,              DataTypes::ValueType::size_type inOffset,
911              DataTypes::ValueType& out,              DataTypes::ValueType& out,
912          const DataTypes::ShapeType& outShape,          const DataTypes::ShapeType& outShape,
913              DataTypes::ValueType::size_type outOffset,              DataTypes::ValueType::size_type outOffset,
914          int count);          int count,
915            int* piv);
916    
917    /**
918       \brief
919       throws an appropriate exception based on failure of matrix_inverse.
920    
921       \param err - error code returned from matrix_inverse
922       \warning do not call in a parallel region since it throws.
923    */
924    void
925    matrixInverseError(int err);
926    
927  }  // end namespace DataMath  }  // end namespace DataMath
928  }  // end namespace escript  }  // end namespace escript

Legend:
Removed from v.2739  
changed lines
  Added in v.2740

  ViewVC Help
Powered by ViewVC 1.1.26