TF++, Miscellaneous classes and modules in C++:

◆ sameShape()

template<class T1 , class T2 , int N1, int N2>
bool tfxx::blitzutil::sameShape ( const blitz::Array< T1, N1 > &  a1,
const blitz::Array< T2, N2 > &  a2 
)

test for conforming shapes

Parameters
a1any blitz array
a2any other blitz array
Returns
true if both have same shape

Definition at line 63 of file blitzutil.h.

65  { return(blitz::areShapesConformable(a1.shape(),a2.shape())); }