Commit 91e07f8f authored by thomas.forbriger's avatar thomas.forbriger Committed by thomas.forbriger
Browse files

stop this misuse

This is a legacy commit from before 2015-03-01.
It may be incomplete as well as inconsistent.
See COPYING.legacy and README.history for details.


SVN Path:     http://gpitrsvn.gpi.uni-karlsruhe.de/repos/TFSoftware/trunk
SVN Revision: 1118
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent f3667e17
......@@ -3,7 +3,7 @@
*
* ----------------------------------------------------------------------------
*
* $Id: blitzutil.h,v 1.1 2002-11-27 22:38:38 forbrig Exp $
* $Id: blitzutil.h,v 1.2 2002-11-28 09:06:07 forbrig Exp $
* \author Thomas Forbriger
* \date 27/11/2002
*
......@@ -23,7 +23,7 @@
#define TF_BLITZUTIL_H_VERSION \
"TF_BLITZUTIL_H V1.0 "
#define TF_BLITZUTIL_H_CVSID \
"$Id: blitzutil.h,v 1.1 2002-11-27 22:38:38 forbrig Exp $"
"$Id: blitzutil.h,v 1.2 2002-11-28 09:06:07 forbrig Exp $"
#include<tfxx/error.h>
......@@ -63,32 +63,6 @@ namespace blitzutil {
{ return(blitz::areShapesConformable(a1.lbound(),a2.lbound())&&
blitz::areShapesConformable(a1.ubound(),a2.ubound())); }
/*! \brief assert conforming shapes
*
* \ingroup group_blitzutil
* \param a1 any blitz array
* \param a2 any other blitz array
*
* Throws a tfxx::error::Exception if assertion fails
*/
template<class T1, class T2, int N1, int N2>
void assertSameShape(const blitz::Array<T1,N1>& a1,
const blitz::Array<T2,N2>& a2)
{ TFXX_assert(sameShape(a1,a2), "shape of blitz arrays differs!"); }
/*! \brief assert conforming domains
*
* \ingroup group_blitzutil
* \param a1 any blitz array
* \param a2 any other blitz array
*
* Throws a tfxx::error::Exception if assertion fails
*/
template<class T1, class T2, int N1, int N2>
void assertSameDomain(const blitz::Array<T1,N1>& a1,
const blitz::Array<T2,N2>& a2)
{ TFXX_assert(sameDomain(a1,a2), "domain of blitz arrays differs!"); }
} // namespace blitzutil
} // namespace tfxx
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment