Eigen::internal::checkTransposeAliasing_impl< Derived, OtherDerived, MightHaveTransposeAliasing > Struct Template Reference

#include <Transpose.h>

Static Public Member Functions

static EIGEN_DEVICE_FUNC void run (const Derived &dst, const OtherDerived &other)
 

Member Function Documentation

◆ run()

template<typename Derived , typename OtherDerived , bool MightHaveTransposeAliasing = check_transpose_aliasing_compile_time_selector<blas_traits<Derived>::IsTransposed, OtherDerived>::ret>
static EIGEN_DEVICE_FUNC void Eigen::internal::checkTransposeAliasing_impl< Derived, OtherDerived, MightHaveTransposeAliasing >::run ( const Derived &  dst,
const OtherDerived &  other 
)
inlinestatic
401  {
402  eigen_assert(
403  (!check_transpose_aliasing_run_time_selector<typename Derived::Scalar, blas_traits<Derived>::IsTransposed,
404  OtherDerived>::run(extract_data(dst), other)) &&
405  "aliasing detected during transposition, use transposeInPlace() "
406  "or evaluate the rhs into a temporary using .eval()");
407  }
#define eigen_assert(x)
Definition: Macros.h:910
SCALAR Scalar
Definition: bench_gemm.cpp:45
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE const T::Scalar * extract_data(const T &m)
Definition: BlasUtil.h:581
@ IsTransposed
Definition: BlasUtil.h:465
static EIGEN_DEVICE_FUNC void run(const Derived &dst, const OtherDerived &other)
Definition: Transpose.h:401

References eigen_assert, and Eigen::internal::extract_data().

Referenced by Eigen::internal::check_for_aliasing().


The documentation for this struct was generated from the following file: