35#ifndef _BLAZE_MATH_DENSE_DENSEMATRIX_H_
36#define _BLAZE_MATH_DENSE_DENSEMATRIX_H_
110template<
typename T1,
typename T2 >
114template<
typename T1,
typename T2 >
118template<
typename T1,
typename T2,
bool SO >
122template<
typename T1,
typename T2,
bool SO >
126template<
typename T1,
typename T2,
bool SO >
130template<
typename MT,
bool SO,
typename ST >
134template<
typename MT,
bool SO,
typename ST >
138template<
typename MT,
bool SO,
typename ST >
142template<
typename MT,
bool SO,
typename ST >
146template<
typename MT,
bool SO,
typename ST >
150template<
typename MT,
bool SO,
typename ST >
154template<
typename MT,
bool SO,
typename ST >
158template<
typename MT,
bool SO,
typename ST >
162template<
typename MT,
bool SO >
165template<
typename MT,
bool SO >
168template<
typename MT1,
bool SO1,
typename MT2,
bool SO2 >
171template<
typename MT1,
bool SO1,
typename MT2,
bool SO2 >
174template<
typename MT,
bool SO >
177template<
typename MT,
bool SO >
180template<
typename MT1,
bool SO1,
typename MT2,
bool SO2 >
183template<
typename MT1,
bool SO1,
typename MT2,
bool SO2 >
186template<
typename MT,
bool SO,
typename ST >
190template<
typename MT,
bool SO,
typename ST >
194template<
typename MT1,
bool SO1,
typename MT2,
bool SO2 >
197template<
typename MT1,
bool SO1,
typename MT2,
bool SO2 >
200template<
typename MT,
bool SO,
typename ST >
204template<
typename MT,
bool SO,
typename ST >
208template<
typename MT1,
bool SO1,
typename MT2,
bool SO2 >
211template<
typename MT1,
bool SO1,
typename MT2,
bool SO2 >
214template<
typename MT,
bool SO,
typename ST >
218template<
typename MT,
bool SO,
typename ST >
222template<
typename MT1,
bool SO1,
typename MT2,
bool SO2 >
225template<
typename MT1,
bool SO1,
typename MT2,
bool SO2 >
255 for(
size_t i=0; i<A.rows(); ++i ) {
256 for(
size_t j=0; j<A.columns(); ++j ) {
257 if( !
equal( A(i,j), scalar ) )
return false;
290 for(
size_t j=0; j<A.columns(); ++j ) {
291 for(
size_t i=0; i<A.rows(); ++i ) {
292 if( !
equal( A(i,j), scalar ) )
return false;
319 return ( mat == scalar );
342 return !( mat == scalar );
365 return !( mat == scalar );
392 if( !tryAdd( *mat, 0UL, 0UL, (*mat).rows(), (*mat).columns(), scalar ) ) {
397 decltype(
auto) left( derestrict( *mat ) );
454 if( !trySub( *mat, 0UL, 0UL, (*mat).rows(), (*mat).columns(), scalar ) ) {
459 decltype(
auto) left( derestrict( *mat ) );
516 if( !tryMult( *mat, 0UL, 0UL, (*mat).rows(), (*mat).columns(), scalar ) ) {
521 decltype(
auto) left( derestrict( *mat ) );
582 if( !tryDiv( *mat, 0UL, 0UL, (*mat).rows(), (*mat).columns(), scalar ) ) {
587 decltype(
auto) left( derestrict( *mat ) );
643 if( !tryShift( *mat, 0UL, 0UL, (*mat).rows(), (*mat).columns(), count ) ) {
648 decltype(
auto) left( derestrict( *mat ) );
692template<
typename MT1
699 if( !tryShiftAssign( *lhs, *rhs, 0UL, 0UL ) ) {
704 decltype(
auto) left( derestrict( *lhs ) );
727template<
typename MT1
757 if( !tryShift( *mat, 0UL, 0UL, (*mat).rows(), (*mat).columns(), count ) ) {
762 decltype(
auto) left( derestrict( *mat ) );
806template<
typename MT1
813 if( !tryShiftAssign( *lhs, *rhs, 0UL, 0UL ) ) {
818 decltype(
auto) left( derestrict( *lhs ) );
841template<
typename MT1
873 if( !tryBitand( *mat, 0UL, 0UL, (*mat).rows(), (*mat).columns(), scalar ) ) {
878 decltype(
auto) left( derestrict( *mat ) );
925template<
typename MT1
932 if( !tryBitandAssign( *lhs, *rhs, 0UL, 0UL ) ) {
937 decltype(
auto) left( derestrict( *lhs ) );
960template<
typename MT1
992 if( !tryBitor( *mat, 0UL, 0UL, (*mat).rows(), (*mat).columns(), scalar ) ) {
997 decltype(
auto) left( derestrict( *mat ) );
1021template<
typename MT
1044template<
typename MT1
1051 if( !tryBitorAssign( *lhs, *rhs, 0UL, 0UL ) ) {
1056 decltype(
auto) left( derestrict( *lhs ) );
1079template<
typename MT1
1102template<
typename MT
1111 if( !tryBitxor( *mat, 0UL, 0UL, (*mat).rows(), (*mat).columns(), scalar ) ) {
1116 decltype(
auto) left( derestrict( *mat ) );
1140template<
typename MT
1163template<
typename MT1
1170 if( !tryBitxorAssign( *lhs, *rhs, 0UL, 0UL ) ) {
1175 decltype(
auto) left( derestrict( *lhs ) );
1198template<
typename MT1
1220template<
typename MT,
bool SO >
1221bool isnan(
const DenseMatrix<MT,SO>& dm );
1223template<
typename MT,
bool SO >
1224bool isinf(
const DenseMatrix<MT,SO>& dm );
1226template<
typename MT,
bool SO >
1227bool isfinite(
const DenseMatrix<MT,SO>& dm );
1229template< RelaxationFlag RF,
typename MT,
bool SO >
1232template< RelaxationFlag RF,
typename MT,
bool SO >
1235template< RelaxationFlag RF,
typename MT,
bool SO >
1236bool isUniform(
const DenseMatrix<MT,SO>& dm );
1238template< RelaxationFlag RF,
typename MT,
bool SO >
1239bool isZero(
const DenseMatrix<MT,SO>& dm );
1241template< RelaxationFlag RF,
typename MT,
bool SO >
1242bool isLower(
const DenseMatrix<MT,SO>& dm );
1244template< RelaxationFlag RF,
typename MT,
bool SO >
1245bool isUniLower(
const DenseMatrix<MT,SO>& dm );
1247template< RelaxationFlag RF,
typename MT,
bool SO >
1250template< RelaxationFlag RF,
typename MT,
bool SO >
1251bool isUpper(
const DenseMatrix<MT,SO>& dm );
1253template< RelaxationFlag RF,
typename MT,
bool SO >
1254bool isUniUpper(
const DenseMatrix<MT,SO>& dm );
1256template< RelaxationFlag RF,
typename MT,
bool SO >
1259template< RelaxationFlag RF,
typename MT,
bool SO >
1260bool isDiagonal(
const DenseMatrix<MT,SO>& dm );
1262template< RelaxationFlag RF,
typename MT,
bool SO >
1263bool isIdentity(
const DenseMatrix<MT,SO>& dm );
1265template<
typename MT,
bool SO >
1288template<
typename MT
1300 for(
size_t i=0UL; i<A.rows(); ++i ) {
1303 for(
size_t j=jbegin; j<jend; ++j )
1304 if(
isnan( A(i,j) ) )
return true;
1308 for(
size_t j=0UL; j<A.columns(); ++j ) {
1311 for(
size_t i=ibegin; i<iend; ++i )
1312 if(
isnan( A(i,j) ) )
return true;
1337template<
typename MT
1349 for(
size_t i=0UL; i<A.rows(); ++i ) {
1352 for(
size_t j=jbegin; j<jend; ++j )
1353 if(
isinf( A(i,j) ) )
return true;
1357 for(
size_t j=0UL; j<A.columns(); ++j ) {
1360 for(
size_t i=ibegin; i<iend; ++i )
1361 if(
isinf( A(i,j) ) )
return true;
1387template<
typename MT
1399 for(
size_t i=0UL; i<A.rows(); ++i ) {
1402 for(
size_t j=jbegin; j<jend; ++j )
1403 if( !
isfinite( A(i,j) ) )
return false;
1407 for(
size_t j=0UL; j<A.columns(); ++j ) {
1410 for(
size_t i=ibegin; i<iend; ++i )
1411 if( !
isfinite( A(i,j) ) )
return false;
1475 for(
size_t i=1UL; i<A.rows(); ++i ) {
1476 for(
size_t j=0UL; j<i; ++j ) {
1483 for(
size_t j=1UL; j<A.columns(); ++j ) {
1484 for(
size_t i=0UL; i<j; ++i ) {
1551 for(
size_t i=0UL; i<A.rows(); ++i ) {
1552 for(
size_t j=0UL; j<i; ++j ) {
1561 for(
size_t j=0UL; j<A.columns(); ++j ) {
1562 for(
size_t i=0UL; i<j; ++i ) {
1586bool isUniform_backend(
const DenseMatrix<MT,false>& dm,
TrueType )
1597 for(
size_t i=ibegin; i<iend; ++i ) {
1599 for(
size_t j=0UL; j<i; ++j ) {
1607 for(
size_t j=i+1UL; j<(*dm).columns(); ++j ) {
1641 for(
size_t j=jbegin; j<jend; ++j ) {
1643 for(
size_t i=0UL; i<j; ++i ) {
1651 for(
size_t i=j+1UL; i<(*dm).rows(); ++i ) {
1682 const auto& cmp( (*dm)(0UL,0UL) );
1684 for(
size_t i=0UL; i<(*dm).rows(); ++i ) {
1685 for(
size_t j=0UL; j<(*dm).columns(); ++j ) {
1715 const auto& cmp( (*dm)(0UL,0UL) );
1717 for(
size_t j=0UL; j<(*dm).columns(); ++j ) {
1718 for(
size_t i=0UL; i<(*dm).rows(); ++i ) {
1769 (*dm).rows() == 0UL || (*dm).columns() == 0UL ||
1770 ( (*dm).rows() == 1UL && (*dm).columns() == 1UL ) )
1821 const size_t M( (*dm).rows() );
1822 const size_t N( (*dm).columns() );
1837 for(
size_t i=0UL; i<M; ++i )
1846 for(
size_t j=jbegin; j<jend; ++j ) {
1854 for(
size_t j=0UL; j<N; ++j )
1863 for(
size_t i=ibegin; i<iend; ++i ) {
1943 for(
size_t i=0UL; i<A.rows()-1UL; ++i ) {
1944 for(
size_t j=i+1UL; j<A.columns(); ++j ) {
1951 for(
size_t j=1UL; j<A.columns(); ++j ) {
1952 for(
size_t i=0UL; i<j; ++i ) {
2025 for(
size_t i=0UL; i<A.rows(); ++i ) {
2028 for(
size_t j=i+1UL; j<A.columns(); ++j ) {
2035 for(
size_t j=0UL; j<A.columns(); ++j ) {
2036 for(
size_t i=0UL; i<j; ++i ) {
2121 for(
size_t i=0UL; i<A.rows(); ++i ) {
2122 for(
size_t j=i; j<A.columns(); ++j ) {
2129 for(
size_t j=0UL; j<A.columns(); ++j ) {
2130 for(
size_t i=0UL; i<=j; ++i ) {
2210 for(
size_t i=1UL; i<A.rows(); ++i ) {
2211 for(
size_t j=0UL; j<i; ++j ) {
2218 for(
size_t j=0UL; j<A.columns()-1UL; ++j ) {
2219 for(
size_t i=j+1UL; i<A.rows(); ++i ) {
2292 for(
size_t i=0UL; i<A.rows(); ++i ) {
2293 for(
size_t j=0UL; j<i; ++j ) {
2302 for(
size_t j=0UL; j<A.columns(); ++j ) {
2305 for(
size_t i=j+1UL; i<A.rows(); ++i ) {
2388 for(
size_t i=0UL; i<A.rows(); ++i ) {
2389 for(
size_t j=0UL; j<=i; ++j ) {
2396 for(
size_t j=0UL; j<A.columns(); ++j ) {
2397 for(
size_t i=j; i<A.rows(); ++i ) {
2478 for(
size_t i=0UL; i<A.rows(); ++i ) {
2480 for(
size_t j=0UL; j<i; ++j ) {
2486 for(
size_t j=i+1UL; j<A.columns(); ++j ) {
2494 for(
size_t j=0UL; j<A.columns(); ++j ) {
2496 for(
size_t i=0UL; i<j; ++i ) {
2502 for(
size_t i=j+1UL; i<A.rows(); ++i ) {
2574 if( (*dm).rows() == 0UL )
2580 for(
size_t i=0UL; i<A.rows(); ++i ) {
2582 for(
size_t j=0UL; j<i; ++j ) {
2591 for(
size_t j=i+1UL; j<A.columns(); ++j ) {
2599 for(
size_t j=0UL; j<A.columns(); ++j ) {
2601 for(
size_t i=0UL; i<j; ++i ) {
2610 for(
size_t i=j+1UL; i<A.rows(); ++i ) {
2655template<
typename MT
2664 if( (*dm).rows() < 2UL )
2674 potrf( uplo, n, (*L).data(), lda, &info );
2676 return ( info == 0 );
2713template<
typename MT
2725 return std::count_if(
begin(s),
end(s), [tolerance](
auto val ) {
return abs(val) > tolerance; } );
Header file for auxiliary alias declarations.
typename T::ReturnType ReturnType_t
Alias declaration for nested ReturnType type definitions.
Definition Aliases.h:470
typename T::CompositeType CompositeType_t
Alias declaration for nested CompositeType type definitions.
Definition Aliases.h:110
typename T::ElementType ElementType_t
Alias declaration for nested ElementType type definitions.
Definition Aliases.h:190
typename T::ResultType ResultType_t
Alias declaration for nested ResultType type definitions.
Definition Aliases.h:450
Header file for run time assertion macros.
Constraint on the data type.
Header file for the blaze::checked and blaze::unchecked instances.
Header file for the conjugate shim.
Header file for the EnableIf class template.
Numerical epsilon value for floating point data types.
Header file for the If class template.
Header file for the IntegralConstant class template.
Header file for the IsBuiltin type trait.
Header file for the isDefault shim.
Header file for the IsDiagonal type trait.
Header file for the isDivisor shim.
Header file for the IsExpression type trait class.
Header file for the isfinite shim.
Header file for the IsFloatingPoint type trait.
Header file for the IsHermitian type trait.
Header file for the IsIdentity type trait.
Header file for the isinf shim.
Header file for the IsLower type trait.
Header file for the isnan shim.
Header file for the isOne shim.
Header file for the isReal shim.
Header file for the IsRestricted type trait.
Header file for the IsRowMajorMatrix type trait.
Header file for the IsScalar type trait.
Header file for the IsStrictlyLower type trait.
Header file for the IsStrictlyUpper type trait.
Header file for the IsSymmetric type trait.
Header file for the IsTriangular type trait.
Header file for the IsUniLower type trait.
Header file for the IsUniTriangular type trait.
Header file for the IsUniUpper type trait.
Header file for the IsUpper type trait.
Numerical limits of built-in data types.
Cast operators for numeric types.
Header file for the reduction flags.
Header file for the relaxation flag enumeration.
Header file for the RemoveAdaptor type trait.
Constraint on the data type.
Header file for the UnderlyingBuiltin type trait.
Constraint on the data type.
Header file for the CLAPACK potrf wrapper functions.
Base class for dense matrices.
Definition DenseMatrix.h:82
Constraint on the data type.
Constraint on the data type.
Header file for the DenseMatrix base class.
auto operator/=(DenseMatrix< MT, SO > &mat, ST scalar) -> EnableIf_t< IsScalar_v< ST >, MT & >
Division assignment operator for the division of a dense matrix by a scalar value ( ).
Definition DenseMatrix.h:574
bool isStrictlyLower(const DenseMatrix< MT, SO > &dm)
Checks if the given dense matrix is a strictly lower triangular matrix.
Definition DenseMatrix.h:2096
decltype(auto) max(const DenseMatrix< MT1, SO1 > &lhs, const DenseMatrix< MT2, SO2 > &rhs)
Computes the componentwise maximum of the dense matrices lhs and rhs.
Definition DMatDMatMapExpr.h:1375
bool isinf(const DenseMatrix< MT, SO > &dm)
Checks the given dense matrix for infinite elements.
Definition DenseMatrix.h:1339
decltype(auto) conj(const DenseMatrix< MT, SO > &dm)
Returns a matrix containing the complex conjugate of each single element of dm.
Definition DMatMapExpr.h:1464
bool isLower(const DenseMatrix< MT, SO > &dm)
Checks if the given dense matrix is a lower triangular matrix.
Definition DenseMatrix.h:1921
bool isUniform(const DenseMatrix< MT, SO > &dm)
Checks if the given dense matrix is a uniform matrix.
Definition DenseMatrix.h:1766
decltype(auto) abs(const DenseMatrix< MT, SO > &dm)
Applies the abs() function to each single element of the dense matrix dm.
Definition DMatMapExpr.h:1296
auto operator|=(DenseMatrix< MT, SO > &mat, ST scalar) -> EnableIf_t< IsScalar_v< ST >, MT & >
Bitwise OR assignment operator for the bitwise OR of a dense matrix and a scalar value.
Definition DenseMatrix.h:986
bool isPositiveDefinite(const DenseMatrix< MT, SO > &dm)
Checks if the given dense matrix is a positive definite matrix.
Definition DenseMatrix.h:2657
auto operator+=(DenseMatrix< MT, SO > &mat, ST scalar) -> EnableIf_t< IsScalar_v< ST >, MT & >
Addition assignment operator for the addition of a dense matrix and a scalar value ( ).
Definition DenseMatrix.h:386
bool isnan(const DenseMatrix< MT, SO > &dm)
Checks the given dense matrix for not-a-number elements.
Definition DenseMatrix.h:1290
void svd(const DenseMatrix< MT, SO > &A, DenseVector< VT, TF > &s)
Singular value decomposition (SVD) of the given dense general matrix.
Definition SVD.h:135
bool isUniLower(const DenseMatrix< MT, SO > &dm)
Checks if the given dense matrix is a lower unitriangular matrix.
Definition DenseMatrix.h:2009
size_t rank(const DenseMatrix< MT, SO > &dm)
Computes the rank of the given dense matrix.
Definition DenseMatrix.h:2715
bool isfinite(const DenseMatrix< MT, SO > &dm)
Checks the given dense matrix for finite elements.
Definition DenseMatrix.h:1389
MT & operator>>=(DenseMatrix< MT, SO > &mat, int count)
Right-shift assignment operator for the uniform right-shift of a dense matrix.
Definition DenseMatrix.h:752
bool isStrictlyUpper(const DenseMatrix< MT, SO > &dm)
Checks if the given dense matrix is a strictly upper triangular matrix.
Definition DenseMatrix.h:2363
bool isHermitian(const DenseMatrix< MT, SO > &dm)
Checks if the given dense matrix is Hermitian.
Definition DenseMatrix.h:1534
auto operator*=(DenseMatrix< MT, SO > &mat, ST scalar) -> EnableIf_t< IsScalar_v< ST >, MT & >
Multiplication assignment operator for the multiplication of a dense matrix and a scalar value ( ).
Definition DenseMatrix.h:510
bool isSymmetric(const DenseMatrix< MT, SO > &dm)
Checks if the given dense matrix is symmetric.
Definition DenseMatrix.h:1456
auto operator&=(DenseMatrix< MT, SO > &mat, ST scalar) -> EnableIf_t< IsScalar_v< ST >, MT & >
Bitwise AND assignment operator for the bitwise AND of a dense matrix and a scalar value.
Definition DenseMatrix.h:867
bool isUniUpper(const DenseMatrix< MT, SO > &dm)
Checks if the given dense matrix is an upper unitriangular matrix.
Definition DenseMatrix.h:2276
auto operator-=(DenseMatrix< MT, SO > &mat, ST scalar) -> EnableIf_t< IsScalar_v< ST >, MT & >
Subtraction assignment operator for the subtraction of a dense matrix and a scalar value ( ).
Definition DenseMatrix.h:448
bool isDiagonal(const DenseMatrix< MT, SO > &dm)
Checks if the given dense matrix is diagonal.
Definition DenseMatrix.h:2456
bool isZero(const DenseMatrix< MT, SO > &dm)
Checks if the given dense matrix is a zero matrix.
Definition DenseMatrix.h:1819
bool isUpper(const DenseMatrix< MT, SO > &dm)
Checks if the given dense matrix is an upper triangular matrix.
Definition DenseMatrix.h:2188
bool isIdentity(const DenseMatrix< MT, SO > &dm)
Checks if the given dense matrix is an identity matrix.
Definition DenseMatrix.h:2561
auto operator^=(DenseMatrix< MT, SO > &mat, ST scalar) -> EnableIf_t< IsScalar_v< ST >, MT & >
Bitwise XOR assignment operator for the bitwise XOR of a dense matrix and a scalar value.
Definition DenseMatrix.h:1105
MT & operator<<=(DenseMatrix< MT, SO > &mat, int count)
Left-shift assignment operator for the uniform left-shift of a dense matrix.
Definition DenseMatrix.h:638
bool isDivisor(const DenseVector< VT, TF > &dv)
Returns whether the given dense vector is a valid divisor.
Definition DenseVector.h:1261
bool isIntact(const DiagonalMatrix< MT, SO, DF > &m)
Returns whether the invariants of the given diagonal matrix are intact.
Definition DiagonalMatrix.h:207
bool isDefault(const DiagonalMatrix< MT, SO, DF > &m)
Returns whether the given diagonal matrix is in default state.
Definition DiagonalMatrix.h:169
void potrf(char uplo, blas_int_t n, float *A, blas_int_t lda, blas_int_t *info)
LAPACK kernel for the Cholesky decomposition of the given dense positive definite single precision co...
Definition potrf.h:137
#define BLAZE_CONSTRAINT_MUST_BE_BLAS_COMPATIBLE_TYPE(T)
Constraint on the data type.
Definition BLASCompatible.h:61
#define BLAZE_CONSTRAINT_MUST_NOT_REQUIRE_EVALUATION(T)
Constraint on the data type.
Definition RequiresEvaluation.h:81
#define BLAZE_CONSTRAINT_MUST_NOT_BE_COMPUTATION_TYPE(T)
Constraint on the data type.
Definition Computation.h:81
#define BLAZE_CONSTRAINT_MUST_NOT_BE_TRIANGULAR_MATRIX_TYPE(T)
Constraint on the data type.
Definition Triangular.h:81
#define BLAZE_CONSTRAINT_MUST_BE_TRIANGULAR_MATRIX_TYPE(T)
Constraint on the data type.
Definition Triangular.h:61
#define BLAZE_CONSTRAINT_MUST_NOT_BE_UNITRIANGULAR_MATRIX_TYPE(T)
Constraint on the data type.
Definition UniTriangular.h:81
constexpr bool IsStrictlyUpper_v
Auxiliary variable template for the IsStrictlyUpper type trait.
Definition IsStrictlyUpper.h:173
constexpr bool IsSymmetric_v
Auxiliary variable template for the IsSymmetric type trait.
Definition IsSymmetric.h:172
typename UnderlyingBuiltin< T >::Type UnderlyingBuiltin_t
Auxiliary alias declaration for the UnderlyingBuiltin type trait.
Definition UnderlyingBuiltin.h:117
constexpr bool IsTriangular_v
Auxiliary variable template for the IsTriangular type trait.
Definition IsTriangular.h:106
constexpr bool IsHermitian_v
Auxiliary variable template for the IsHermitian type trait.
Definition IsHermitian.h:172
constexpr bool IsScalar_v
Auxiliary variable template for the IsScalar type trait.
Definition IsScalar.h:104
constexpr bool IsUniUpper_v
Auxiliary variable template for the IsUniUpper type trait.
Definition IsUniUpper.h:173
constexpr bool IsStrictlyLower_v
Auxiliary variable template for the IsStrictlyLower type trait.
Definition IsStrictlyLower.h:173
constexpr bool IsUniform_v
Auxiliary variable template for the IsUniform type trait.
Definition IsUniform.h:164
constexpr bool IsRowMajorMatrix_v
Auxiliary variable template for the IsRowMajorMatrix type trait.
Definition IsRowMajorMatrix.h:129
constexpr bool IsUpper_v
Auxiliary variable template for the IsUpper type trait.
Definition IsUpper.h:175
constexpr bool IsDiagonal_v
Auxiliary variable template for the IsDiagonal type trait.
Definition IsDiagonal.h:148
constexpr bool IsZero_v
Auxiliary variable template for the IsZero type trait.
Definition IsZero.h:166
constexpr bool IsIdentity_v
Auxiliary variable template for the IsIdentity type trait.
Definition IsIdentity.h:137
constexpr bool IsUniTriangular_v
Auxiliary variable template for the IsUniTriangular type trait.
Definition IsUniTriangular.h:106
constexpr bool IsRestricted_v
Auxiliary variable template for the IsRestricted type trait.
Definition IsRestricted.h:140
constexpr bool IsLower_v
Auxiliary variable template for the IsLower type trait.
Definition IsLower.h:175
typename RemoveAdaptor< T >::Type RemoveAdaptor_t
Auxiliary alias declaration for the RemoveAdaptor type trait.
Definition RemoveAdaptor.h:153
constexpr bool IsUniLower_v
Auxiliary variable template for the IsUniLower type trait.
Definition IsUniLower.h:173
RelaxationFlag
Relaxation flag for strict or relaxed semantics.
Definition RelaxationFlag.h:66
bool isOne(const Proxy< PT, RT > &proxy)
Returns whether the represented element is 1.
Definition Proxy.h:2337
bool isReal(const Proxy< PT, RT > &proxy)
Returns whether the element represents a real number.
Definition Proxy.h:2297
constexpr bool operator==(const NegativeAccuracy< A > &lhs, const T &rhs)
Equality comparison between a NegativeAccuracy object and a floating point value.
Definition Accuracy.h:253
constexpr bool operator!=(const NegativeAccuracy< A > &lhs, const T &rhs)
Inequality comparison between a NegativeAccuracy object and a floating point value.
Definition Accuracy.h:293
int32_t blas_int_t
Signed integer type used in the BLAS/LAPACK wrapper functions.
Definition Types.h:64
MT::ResultType evaluate(const Matrix< MT, SO > &matrix)
Evaluates the given matrix expression.
Definition Matrix.h:1282
constexpr size_t rows(const Matrix< MT, SO > &matrix) noexcept
Returns the current number of rows of the matrix.
Definition Matrix.h:644
constexpr size_t columns(const Matrix< MT, SO > &matrix) noexcept
Returns the current number of columns of the matrix.
Definition Matrix.h:660
MT::Iterator end(Matrix< MT, SO > &matrix, size_t i)
Returns an iterator just past the last element of row/column i.
Definition Matrix.h:584
MT::Iterator begin(Matrix< MT, SO > &matrix, size_t i)
Returns an iterator to the first element of row/column i.
Definition Matrix.h:518
bool isSquare(const Matrix< MT, SO > &matrix) noexcept
Checks if the given matrix is a square matrix.
Definition Matrix.h:1383
#define BLAZE_INTERNAL_ASSERT(expr, msg)
Run time assertion macro for internal checks.
Definition Assert.h:101
#define BLAZE_USER_ASSERT(expr, msg)
Run time assertion macro for user checks.
Definition Assert.h:117
auto smpAssign(Matrix< MT1, SO1 > &lhs, const Matrix< MT2, SO2 > &rhs) -> EnableIf_t< IsDenseMatrix_v< MT1 > >
Default implementation of the SMP assignment of a matrix to a dense matrix.
Definition DenseMatrix.h:100
bool equal(const SharedValue< T1 > &lhs, const SharedValue< T2 > &rhs)
Equality check for a two shared values.
Definition SharedValue.h:343
constexpr bool IsFloatingPoint_v
Auxiliary variable template for the IsFloatingPoint type trait.
Definition IsFloatingPoint.h:95
constexpr bool IsBuiltin_v
Auxiliary variable template for the IsBuiltin type trait.
Definition IsBuiltin.h:95
BoolConstant< false > FalseType
Type/value traits base class.
Definition IntegralConstant.h:121
To numeric_cast(From from)
Checked conversion of values of numeric type.
Definition NumericCast.h:275
typename EnableIf< Condition, T >::Type EnableIf_t
Auxiliary type for the EnableIf class template.
Definition EnableIf.h:138
BoolConstant< true > TrueType
Type traits base class.
Definition IntegralConstant.h:132
#define BLAZE_THROW_INVALID_ARGUMENT(MESSAGE)
Macro for the emission of a std::invalid_argument exception.
Definition Exception.h:235
typename If< Condition >::template Type< T1, T2 > If_t
Auxiliary alias template for the If class template.
Definition If.h:108
Header file for the matrix storage order types.
constexpr bool rowMajor
Storage order flag for row-major matrices.
Definition StorageOrder.h:71
Header file for the equal shim.
Header file for the isZero shim.
Compile time check for triangular matrix types.
Definition IsTriangular.h:88
Numerical limits of built-in data types.
Definition Limits.h:108
Header file for the IsZero type trait.
Header file for basic type definitions.
Header file for the generic max algorithm.