GeneralMatrixMatrixTriangular_BLAS.h File Reference

Go to the source code of this file.

Classes

struct  Eigen::internal::general_matrix_matrix_rankupdate< Index, Scalar, AStorageOrder, ConjugateA, ResStorageOrder, UpLo >
 

Namespaces

 Eigen
 Namespace containing all symbols from the Eigen library.
 
 Eigen::internal
 Namespace containing low-level routines from the Eigen library.
 

Macros

#define EIGEN_BLAS_RANKUPDATE_SPECIALIZE(Scalar)
 
#define EIGEN_BLAS_RANKUPDATE_R(EIGTYPE, BLASTYPE, BLASFUNC)
 
#define EIGEN_BLAS_RANKUPDATE_C(EIGTYPE, BLASTYPE, RTYPE, BLASFUNC)
 

Macro Definition Documentation

◆ EIGEN_BLAS_RANKUPDATE_C

#define EIGEN_BLAS_RANKUPDATE_C (   EIGTYPE,
  BLASTYPE,
  RTYPE,
  BLASFUNC 
)

◆ EIGEN_BLAS_RANKUPDATE_R

#define EIGEN_BLAS_RANKUPDATE_R (   EIGTYPE,
  BLASTYPE,
  BLASFUNC 
)
Value:
template <typename Index, int AStorageOrder, bool ConjugateA, int UpLo> \
struct general_matrix_matrix_rankupdate<Index, EIGTYPE, AStorageOrder, ConjugateA, ColMajor, UpLo> { \
enum { \
IsLower = (UpLo & Lower) == Lower, \
LowUp = IsLower ? Lower : Upper, \
conjA = ((AStorageOrder == ColMajor) && ConjugateA) ? 1 : 0 \
}; \
static EIGEN_STRONG_INLINE void run(Index size, Index depth, const EIGTYPE* lhs, Index lhsStride, \
const EIGTYPE* /*rhs*/, Index /*rhsStride*/, EIGTYPE* res, Index resStride, \
EIGTYPE alpha, level3_blocking<EIGTYPE, EIGTYPE>& /*blocking*/) { \
/* typedef Matrix<EIGTYPE, Dynamic, Dynamic, RhsStorageOrder> MatrixRhs;*/ \
if (size == 0 || depth == 0) return; \
char uplo = ((IsLower) ? 'L' : 'U'), trans = ((AStorageOrder == RowMajor) ? 'T' : 'N'); \
EIGTYPE beta(1); \
BLASFUNC(&uplo, &trans, &n, &k, (const BLASTYPE*)&numext::real_ref(alpha), lhs, &lda, \
(const BLASTYPE*)&numext::real_ref(beta), res, &ldc); \
} \
};
const unsigned n
Definition: CG3DPackingUnitTest.cpp:11
MatrixXd L
Definition: LLT_example.cpp:6
#define EIGEN_STRONG_INLINE
Definition: Macros.h:834
cout<< "Here is the matrix m:"<< endl<< m<< endl;Matrix< ptrdiff_t, 3, 1 > res
Definition: PartialRedux_count.cpp:3
Scalar Scalar int size
Definition: benchVecAdd.cpp:17
#define BLASFUNC(FUNC)
Definition: bench/btl/libs/BLAS/blas.h:4
@ N
Definition: constructor.cpp:22
@ Lower
Definition: Constants.h:211
@ Upper
Definition: Constants.h:213
@ ColMajor
Definition: Constants.h:318
@ RowMajor
Definition: Constants.h:320
if n return
Definition: level1_cplx_impl.h:31
RealScalar alpha
Definition: level1_cplx_impl.h:151
const char * uplo
Definition: level2_cplx_impl.h:20
const char const int const RealScalar const RealScalar const int * lda
Definition: level2_cplx_impl.h:20
Scalar beta
Definition: level2_cplx_impl.h:36
char * trans
Definition: level2_impl.h:240
char char char int int * k
Definition: level2_impl.h:374
const char const int const RealScalar const RealScalar const int RealScalar const int * ldc
Definition: level2_real_impl.h:71
EIGEN_DEVICE_FUNC IndexDest convert_index(const IndexSrc &idx)
Definition: XprHelper.h:63
EIGEN_DEVICE_FUNC internal::add_const_on_value_type_t< EIGEN_MATHFUNC_RETVAL(real_ref, Scalar)> real_ref(const Scalar &x)
Definition: MathFunctions.h:1051
int BlasIndex
Definition: MKL_support.h:134
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition: Meta.h:83
double U
Swimming speed.
Definition: two_d_variable_diff_adapt.cc:53
void run(const string &dir_name, LinearSolver *linear_solver_pt, const unsigned nel_1d, bool mess_up_order)
Definition: two_d_poisson_compare_solvers.cc:317

◆ EIGEN_BLAS_RANKUPDATE_SPECIALIZE

#define EIGEN_BLAS_RANKUPDATE_SPECIALIZE (   Scalar)
Value:
template <typename Index, int LhsStorageOrder, bool ConjugateLhs, int RhsStorageOrder, bool ConjugateRhs, int UpLo> \
struct general_matrix_matrix_triangular_product<Index, Scalar, LhsStorageOrder, ConjugateLhs, Scalar, \
RhsStorageOrder, ConjugateRhs, ColMajor, 1, UpLo, Specialized> { \
static EIGEN_STRONG_INLINE void run(Index size, Index depth, const Scalar* lhs, Index lhsStride, \
const Scalar* rhs, Index rhsStride, Scalar* res, Index resIncr, \
Index resStride, Scalar alpha, level3_blocking<Scalar, Scalar>& blocking) { \
if (lhs == rhs && ((UpLo & (Lower | Upper)) == UpLo)) { \
size, depth, lhs, lhsStride, rhs, rhsStride, res, resStride, alpha, blocking); \
} else { \
general_matrix_matrix_triangular_product<Index, Scalar, LhsStorageOrder, ConjugateLhs, Scalar, \
RhsStorageOrder, ConjugateRhs, ColMajor, 1, UpLo, \
BuiltIn>::run(size, depth, lhs, lhsStride, rhs, rhsStride, res, \
resIncr, resStride, alpha, blocking); \
} \
} \
};
SCALAR Scalar
Definition: bench_gemm.cpp:45
@ Specialized
Definition: Constants.h:311