35 #ifndef _BLAZE_MATH_ADAPTORS_SYMMETRICMATRIX_H_ 36 #define _BLAZE_MATH_ADAPTORS_SYMMETRICMATRIX_H_ 99 template<
typename MT,
bool SO,
bool DF,
bool NF >
100 inline void reset( SymmetricMatrix<MT,SO,DF,NF>& m );
102 template<
typename MT,
bool SO,
bool DF,
bool NF >
103 inline void reset( SymmetricMatrix<MT,SO,DF,NF>& m,
size_t i );
105 template<
typename MT,
bool SO,
bool DF,
bool NF >
106 inline void clear( SymmetricMatrix<MT,SO,DF,NF>& m );
108 template<
bool RF,
typename MT,
bool SO,
bool DF,
bool NF >
109 inline bool isDefault(
const SymmetricMatrix<MT,SO,DF,NF>& m );
111 template<
typename MT,
bool SO,
bool DF,
bool NF >
112 inline bool isIntact(
const SymmetricMatrix<MT,SO,DF,NF>& m );
114 template<
typename MT,
bool SO,
bool DF,
bool NF >
115 inline void swap( SymmetricMatrix<MT,SO,DF,NF>& a, SymmetricMatrix<MT,SO,DF,NF>& b ) noexcept;
127 template<
typename MT
151 template<
typename MT
169 template<
typename MT
212 return isDefault<RF>( m.matrix_ );
238 template<
typename MT
257 template<
typename MT
312 m.matrix_ = std::move( tmp );
336 template<
typename MT1
354 const size_t M( (~rhs).
rows() );
355 const size_t N( (~rhs).
columns() );
357 if( ( row + M <= column ) || ( column + N <= row ) )
360 const bool lower( row > column );
361 const size_t size (
min( row + M, column + N ) - ( lower ? row : column ) );
366 const size_t subrow( lower ? 0UL : column - row );
367 const size_t subcol( lower ? row - column : 0UL );
391 template<
typename MT1
400 return tryAssign( lhs, ~rhs, row, column );
423 template<
typename MT1
432 return tryAssign( lhs, ~rhs, row, column );
448 template<
typename MT,
bool SO,
bool DF,
bool NF >
449 struct Rows< SymmetricMatrix<MT,SO,DF,NF> > :
public Rows<MT>
465 template<
typename MT,
bool SO,
bool DF,
bool NF >
466 struct Columns< SymmetricMatrix<MT,SO,DF,NF> > :
public Columns<MT>
482 template<
typename MT,
bool SO,
bool DF,
bool NF >
499 template<
typename MT,
bool SO,
bool DF,
bool NF >
516 template<
typename MT,
bool SO,
bool DF,
bool NF >
518 :
public BoolConstant< IsBuiltin< ElementType_<MT> >::value >
534 template<
typename MT,
bool SO,
bool DF,
bool NF >
551 template<
typename MT,
bool SO,
bool DF,
bool NF >
568 template<
typename MT,
bool SO,
bool NF >
585 template<
typename MT,
bool SO,
bool DF,
bool NF >
602 template<
typename MT,
bool SO,
bool DF,
bool NF >
619 template<
typename MT,
bool SO,
bool DF,
bool NF >
636 template<
typename MT,
bool SO,
bool DF,
bool NF >
655 template<
typename MT,
bool SO1,
bool DF,
bool NF,
typename T,
size_t M,
size_t N,
bool SO2 >
656 struct AddTrait< SymmetricMatrix<MT,SO1,DF,NF>, StaticMatrix<T,M,N,SO2> >
661 template<
typename T,
size_t M,
size_t N,
bool SO1,
typename MT,
bool SO2,
bool DF,
bool NF >
662 struct AddTrait< StaticMatrix<T,M,N,SO1>, SymmetricMatrix<MT,SO2,DF,NF> >
667 template<
typename MT,
bool SO1,
bool DF,
bool NF,
typename T,
size_t M,
size_t N,
bool SO2 >
668 struct AddTrait< SymmetricMatrix<MT,SO1,DF,NF>, HybridMatrix<T,M,N,SO2> >
673 template<
typename T,
size_t M,
size_t N,
bool SO1,
typename MT,
bool SO2,
bool DF,
bool NF >
674 struct AddTrait< HybridMatrix<T,M,N,SO1>, SymmetricMatrix<MT,SO2,DF,NF> >
679 template<
typename MT,
bool SO1,
bool DF,
bool NF,
typename T,
bool SO2 >
680 struct AddTrait< SymmetricMatrix<MT,SO1,DF,NF>, DynamicMatrix<T,SO2> >
685 template<
typename T,
bool SO1,
typename MT,
bool SO2,
bool DF,
bool NF >
686 struct AddTrait< DynamicMatrix<T,SO1>, SymmetricMatrix<MT,SO2,DF,NF> >
691 template<
typename MT,
bool SO1,
bool DF,
bool NF,
typename T,
bool AF,
bool PF,
bool SO2 >
692 struct AddTrait< SymmetricMatrix<MT,SO1,DF,NF>, CustomMatrix<T,AF,PF,SO2> >
697 template<
typename T,
bool AF,
bool PF,
bool SO1,
typename MT,
bool SO2,
bool DF,
bool NF >
698 struct AddTrait< CustomMatrix<T,AF,PF,SO1>, SymmetricMatrix<MT,SO2,DF,NF> >
703 template<
typename MT,
bool SO1,
bool DF,
bool NF,
typename T,
bool SO2 >
704 struct AddTrait< SymmetricMatrix<MT,SO1,DF,NF>, CompressedMatrix<T,SO2> >
709 template<
typename T,
bool SO1,
typename MT,
bool SO2,
bool DF,
bool NF >
710 struct AddTrait< CompressedMatrix<T,SO1>, SymmetricMatrix<MT,SO2,DF,NF> >
715 template<
typename MT1,
bool SO1,
bool DF1,
bool NF1,
typename MT2,
bool SO2,
bool DF2,
bool NF2 >
716 struct AddTrait< SymmetricMatrix<MT1,SO1,DF1,NF1>, SymmetricMatrix<MT2,SO2,DF2,NF2> >
734 template<
typename MT,
bool SO1,
bool DF,
bool NF,
typename T,
size_t M,
size_t N,
bool SO2 >
735 struct SubTrait< SymmetricMatrix<MT,SO1,DF,NF>, StaticMatrix<T,M,N,SO2> >
740 template<
typename T,
size_t M,
size_t N,
bool SO1,
typename MT,
bool SO2,
bool DF,
bool NF >
741 struct SubTrait< StaticMatrix<T,M,N,SO1>, SymmetricMatrix<MT,SO2,DF,NF> >
746 template<
typename MT,
bool SO1,
bool DF,
bool NF,
typename T,
size_t M,
size_t N,
bool SO2 >
747 struct SubTrait< SymmetricMatrix<MT,SO1,DF,NF>, HybridMatrix<T,M,N,SO2> >
752 template<
typename T,
size_t M,
size_t N,
bool SO1,
typename MT,
bool SO2,
bool DF,
bool NF >
753 struct SubTrait< HybridMatrix<T,M,N,SO1>, SymmetricMatrix<MT,SO2,DF,NF> >
758 template<
typename MT,
bool SO1,
bool DF,
bool NF,
typename T,
bool SO2 >
759 struct SubTrait< SymmetricMatrix<MT,SO1,DF,NF>, DynamicMatrix<T,SO2> >
764 template<
typename T,
bool SO1,
typename MT,
bool SO2,
bool DF,
bool NF >
765 struct SubTrait< DynamicMatrix<T,SO1>, SymmetricMatrix<MT,SO2,DF,NF> >
770 template<
typename MT,
bool SO1,
bool DF,
bool NF,
typename T,
bool AF,
bool PF,
bool SO2 >
771 struct SubTrait< SymmetricMatrix<MT,SO1,DF,NF>, CustomMatrix<T,AF,PF,SO2> >
776 template<
typename T,
bool AF,
bool PF,
bool SO1,
typename MT,
bool SO2,
bool DF,
bool NF >
777 struct SubTrait< CustomMatrix<T,AF,PF,SO1>, SymmetricMatrix<MT,SO2,DF,NF> >
782 template<
typename MT,
bool SO1,
bool DF,
bool NF,
typename T,
bool SO2 >
783 struct SubTrait< SymmetricMatrix<MT,SO1,DF,NF>, CompressedMatrix<T,SO2> >
788 template<
typename T,
bool SO1,
typename MT,
bool SO2,
bool DF,
bool NF >
789 struct SubTrait< CompressedMatrix<T,SO1>, SymmetricMatrix<MT,SO2,DF,NF> >
794 template<
typename MT1,
bool SO1,
bool DF1,
bool NF1,
typename MT2,
bool SO2,
bool DF2,
bool NF2 >
795 struct SubTrait< SymmetricMatrix<MT1,SO1,DF1,NF1>, SymmetricMatrix<MT2,SO2,DF2,NF2> >
813 template<
typename MT,
bool SO,
bool DF,
bool NF,
typename T >
814 struct MultTrait< SymmetricMatrix<MT,SO,DF,NF>, T, EnableIf_< IsNumeric<T> > >
819 template<
typename T,
typename MT,
bool SO,
bool DF,
bool NF >
820 struct MultTrait< T, SymmetricMatrix<MT,SO,DF,NF>, EnableIf_< IsNumeric<T> > >
825 template<
typename MT,
bool SO,
bool DF,
bool NF,
typename T,
size_t N >
826 struct MultTrait< SymmetricMatrix<MT,SO,DF,NF>, StaticVector<T,N,false> >
831 template<
typename T,
size_t N,
typename MT,
bool SO,
bool DF,
bool NF >
832 struct MultTrait< StaticVector<T,N,true>, SymmetricMatrix<MT,SO,DF,NF> >
837 template<
typename MT,
bool SO,
bool DF,
bool NF,
typename T,
size_t N >
838 struct MultTrait< SymmetricMatrix<MT,SO,DF,NF>, HybridVector<T,N,false> >
843 template<
typename T,
size_t N,
typename MT,
bool SO,
bool DF,
bool NF >
844 struct MultTrait< HybridVector<T,N,true>, SymmetricMatrix<MT,SO,DF,NF> >
849 template<
typename MT,
bool SO,
bool DF,
bool NF,
typename T >
850 struct MultTrait< SymmetricMatrix<MT,SO,DF,NF>, DynamicVector<T,false> >
855 template<
typename T,
typename MT,
bool SO,
bool DF,
bool NF >
856 struct MultTrait< DynamicVector<T,true>, SymmetricMatrix<MT,SO,DF,NF> >
861 template<
typename MT,
bool SO,
bool DF,
bool NF,
typename T,
bool AF,
bool PF >
862 struct MultTrait< SymmetricMatrix<MT,SO,DF,NF>, CustomVector<T,AF,PF,false> >
867 template<
typename T,
bool AF,
bool PF,
typename MT,
bool SO,
bool DF,
bool NF >
868 struct MultTrait< CustomVector<T,AF,PF,true>, SymmetricMatrix<MT,SO,DF,NF> >
873 template<
typename MT,
bool SO,
bool DF,
bool NF,
typename T >
874 struct MultTrait< SymmetricMatrix<MT,SO,DF,NF>, CompressedVector<T,false> >
879 template<
typename T,
typename MT,
bool SO,
bool DF,
bool NF >
880 struct MultTrait< CompressedVector<T,true>, SymmetricMatrix<MT,SO,DF,NF> >
885 template<
typename MT,
bool SO1,
bool DF,
bool NF,
typename T,
size_t M,
size_t N,
bool SO2 >
886 struct MultTrait< SymmetricMatrix<MT,SO1,DF,NF>, StaticMatrix<T,M,N,SO2> >
891 template<
typename T,
size_t M,
size_t N,
bool SO1,
typename MT,
bool SO2,
bool DF,
bool NF >
892 struct MultTrait< StaticMatrix<T,M,N,SO1>, SymmetricMatrix<MT,SO2,DF,NF> >
897 template<
typename MT,
bool SO1,
bool DF,
bool NF,
typename T,
size_t M,
size_t N,
bool SO2 >
898 struct MultTrait< SymmetricMatrix<MT,SO1,DF,NF>, HybridMatrix<T,M,N,SO2> >
903 template<
typename T,
size_t M,
size_t N,
bool SO1,
typename MT,
bool SO2,
bool DF,
bool NF >
904 struct MultTrait< HybridMatrix<T,M,N,SO1>, SymmetricMatrix<MT,SO2,DF,NF> >
909 template<
typename MT,
bool SO1,
bool DF,
bool NF,
typename T,
bool SO2 >
910 struct MultTrait< SymmetricMatrix<MT,SO1,DF,NF>, DynamicMatrix<T,SO2> >
915 template<
typename T,
bool SO1,
typename MT,
bool SO2,
bool DF,
bool NF >
916 struct MultTrait< DynamicMatrix<T,SO1>, SymmetricMatrix<MT,SO2,DF,NF> >
921 template<
typename MT,
bool SO1,
bool DF,
bool NF,
typename T,
bool AF,
bool PF,
bool SO2 >
922 struct MultTrait< SymmetricMatrix<MT,SO1,DF,NF>, CustomMatrix<T,AF,PF,SO2> >
927 template<
typename T,
bool AF,
bool PF,
bool SO1,
typename MT,
bool SO2,
bool DF,
bool NF >
928 struct MultTrait< CustomMatrix<T,AF,PF,SO1>, SymmetricMatrix<MT,SO2,DF,NF> >
933 template<
typename MT,
bool SO1,
bool DF,
bool NF,
typename T,
bool SO2 >
934 struct MultTrait< SymmetricMatrix<MT,SO1,DF,NF>, CompressedMatrix<T,SO2> >
939 template<
typename T,
bool SO1,
typename MT,
bool SO2,
bool DF,
bool NF >
940 struct MultTrait< CompressedMatrix<T,SO1>, SymmetricMatrix<MT,SO2,DF,NF> >
945 template<
typename MT1,
bool SO1,
bool DF1,
bool NF1,
typename MT2,
bool SO2,
bool DF2,
bool NF2 >
946 struct MultTrait< SymmetricMatrix<MT1,SO1,DF1,NF1>, SymmetricMatrix<MT2,SO2,DF2,NF2> >
964 template<
typename MT,
bool SO,
bool DF,
bool NF,
typename T >
965 struct DivTrait< SymmetricMatrix<MT,SO,DF,NF>, T, EnableIf_< IsNumeric<T> > >
983 template<
typename MT,
bool SO,
bool DF,
bool NF >
984 struct ForEachTrait< SymmetricMatrix<MT,SO,DF,NF>, Abs >
989 template<
typename MT,
bool SO,
bool DF,
bool NF >
990 struct ForEachTrait< SymmetricMatrix<MT,SO,DF,NF>, Floor >
995 template<
typename MT,
bool SO,
bool DF,
bool NF >
996 struct ForEachTrait< SymmetricMatrix<MT,SO,DF,NF>, Ceil >
1001 template<
typename MT,
bool SO,
bool DF,
bool NF >
1002 struct ForEachTrait< SymmetricMatrix<MT,SO,DF,NF>, Conj >
1007 template<
typename MT,
bool SO,
bool DF,
bool NF >
1008 struct ForEachTrait< SymmetricMatrix<MT,SO,DF,NF>, Real >
1013 template<
typename MT,
bool SO,
bool DF,
bool NF >
1014 struct ForEachTrait< SymmetricMatrix<MT,SO,DF,NF>, Imag >
1019 template<
typename MT,
bool SO,
bool DF,
bool NF >
1020 struct ForEachTrait< SymmetricMatrix<MT,SO,DF,NF>, Sqrt >
1025 template<
typename MT,
bool SO,
bool DF,
bool NF >
1026 struct ForEachTrait< SymmetricMatrix<MT,SO,DF,NF>, Cbrt >
1031 template<
typename MT,
bool SO,
bool DF,
bool NF >
1032 struct ForEachTrait< SymmetricMatrix<MT,SO,DF,NF>, InvCbrt >
1037 template<
typename MT,
bool SO,
bool DF,
bool NF,
typename ET >
1038 struct ForEachTrait< SymmetricMatrix<MT,SO,DF,NF>, Pow<ET> >
1043 template<
typename MT,
bool SO,
bool DF,
bool NF >
1044 struct ForEachTrait< SymmetricMatrix<MT,SO,DF,NF>, Exp >
1049 template<
typename MT,
bool SO,
bool DF,
bool NF >
1050 struct ForEachTrait< SymmetricMatrix<MT,SO,DF,NF>, Log >
1055 template<
typename MT,
bool SO,
bool DF,
bool NF >
1056 struct ForEachTrait< SymmetricMatrix<MT,SO,DF,NF>, Log10 >
1061 template<
typename MT,
bool SO,
bool DF,
bool NF >
1062 struct ForEachTrait< SymmetricMatrix<MT,SO,DF,NF>, Sin >
1067 template<
typename MT,
bool SO,
bool DF,
bool NF >
1068 struct ForEachTrait< SymmetricMatrix<MT,SO,DF,NF>, Asin >
1073 template<
typename MT,
bool SO,
bool DF,
bool NF >
1074 struct ForEachTrait< SymmetricMatrix<MT,SO,DF,NF>, Sinh >
1079 template<
typename MT,
bool SO,
bool DF,
bool NF >
1080 struct ForEachTrait< SymmetricMatrix<MT,SO,DF,NF>, Asinh >
1085 template<
typename MT,
bool SO,
bool DF,
bool NF >
1086 struct ForEachTrait< SymmetricMatrix<MT,SO,DF,NF>, Cos >
1091 template<
typename MT,
bool SO,
bool DF,
bool NF >
1092 struct ForEachTrait< SymmetricMatrix<MT,SO,DF,NF>, Acos >
1097 template<
typename MT,
bool SO,
bool DF,
bool NF >
1098 struct ForEachTrait< SymmetricMatrix<MT,SO,DF,NF>, Cosh >
1103 template<
typename MT,
bool SO,
bool DF,
bool NF >
1104 struct ForEachTrait< SymmetricMatrix<MT,SO,DF,NF>, Acosh >
1109 template<
typename MT,
bool SO,
bool DF,
bool NF >
1110 struct ForEachTrait< SymmetricMatrix<MT,SO,DF,NF>, Tan >
1115 template<
typename MT,
bool SO,
bool DF,
bool NF >
1116 struct ForEachTrait< SymmetricMatrix<MT,SO,DF,NF>, Atan >
1121 template<
typename MT,
bool SO,
bool DF,
bool NF >
1122 struct ForEachTrait< SymmetricMatrix<MT,SO,DF,NF>, Tanh >
1127 template<
typename MT,
bool SO,
bool DF,
bool NF >
1128 struct ForEachTrait< SymmetricMatrix<MT,SO,DF,NF>, Atanh >
1133 template<
typename MT,
bool SO,
bool DF,
bool NF >
1134 struct ForEachTrait< SymmetricMatrix<MT,SO,DF,NF>, Erf >
1139 template<
typename MT,
bool SO,
bool DF,
bool NF >
1140 struct ForEachTrait< SymmetricMatrix<MT,SO,DF,NF>, Erfc >
1158 template<
typename MT1,
bool SO1,
bool DF1,
bool NF1,
typename MT2,
bool SO2,
bool DF2,
bool NF2 >
1159 struct HighType< SymmetricMatrix<MT1,SO1,DF1,NF1>, SymmetricMatrix<MT2,SO2,DF2,NF2> >
1177 template<
typename MT1,
bool SO1,
bool DF1,
bool NF1,
typename MT2,
bool SO2,
bool DF2,
bool NF2 >
1178 struct LowType< SymmetricMatrix<MT1,SO1,DF1,NF1>, SymmetricMatrix<MT2,SO2,DF2,NF2> >
1196 template<
typename MT,
bool SO,
bool DF,
bool NF >
1215 template<
typename MT,
bool SO,
bool DF,
bool NF >
1216 struct RowTrait< SymmetricMatrix<MT,SO,DF,NF> >
1234 template<
typename MT,
bool SO,
bool DF,
bool NF >
1235 struct ColumnTrait< SymmetricMatrix<MT,SO,DF,NF> >
Header file for auxiliary alias declarations.
Header file for mathematical functions.
Compile time check for low-level access to constant data.This type trait tests whether the given data...
Definition: HasConstDataAccess.h:75
Header file for the Rows type trait.
Header file for the UNUSED_PARAMETER function template.
Header file for the subtraction trait.
Flag for the inversion of a diagonal matrix.
Definition: InversionFlag.h:115
Flag for the inversion of a general matrix (same as byLU).
Definition: InversionFlag.h:108
Header file for the row trait.
Base template for the SubmatrixTrait class.
Definition: SubmatrixTrait.h:118
Flag for the inversion of a upper unitriangular matrix.
Definition: InversionFlag.h:114
Base template for the ColumnTrait class.
Definition: ColumnTrait.h:117
Flag for the inversion of a lower unitriangular matrix.
Definition: InversionFlag.h:112
typename RowTrait< MT >::Type RowTrait_
Auxiliary alias declaration for the RowTrait type trait.The RowTrait_ alias declaration provides a co...
Definition: RowTrait.h:152
BLAZE_ALWAYS_INLINE size_t size(const Vector< VT, TF > &vector) noexcept
Returns the current size/dimension of the vector.
Definition: Vector.h:261
Generic wrapper for a compile time constant integral value.The IntegralConstant class template repres...
Definition: IntegralConstant.h:71
Header file for the dense matrix inversion flags.
Flag for the Bunch-Kaufman-based inversion for Hermitian matrices.
Definition: InversionFlag.h:105
void reset(const DiagonalProxy< MT > &proxy)
Resetting the represented element to the default initial values.
Definition: DiagonalProxy.h:533
const ElementType_< MT > min(const DenseMatrix< MT, SO > &dm)
Returns the smallest element of the dense matrix.
Definition: DenseMatrix.h:1755
Matrix adapter for symmetric matrices.
Definition: Forward.h:52
typename MultTrait< T1, T2 >::Type MultTrait_
Auxiliary alias declaration for the MultTrait class template.The MultTrait_ alias declaration provide...
Definition: MultTrait.h:245
Header file for the implementation of the base template of the SymmetricMatrix.
bool isIdentity(const DenseMatrix< MT, SO > &dm)
Checks if the give dense matrix is an identity matrix.
Definition: DenseMatrix.h:1679
Compile time check for data types with restricted data access.This type trait tests whether the given...
Definition: IsRestricted.h:82
Header file for the IsSquare type trait.
Compile time check for the alignment of data types.This type trait tests whether the given data type ...
Definition: IsAligned.h:87
void invert(const HermitianProxy< MT > &proxy)
In-place inversion of the represented element.
Definition: HermitianProxy.h:741
Base template for the RowTrait class.
Definition: RowTrait.h:117
Constraint on the data type.
SymmetricMatrix specialization for dense matrices with non-numeric element type.
Header file for the LowType type trait.
Base template for the HighType type trait.
Definition: HighType.h:133
Header file for the multiplication trait.
Header file for the IsSymmetric type trait.
Namespace of the Blaze C++ math library.
Definition: Blaze.h:57
Flag for the LU-based matrix inversion.
Definition: InversionFlag.h:103
Base template for the ForEachTrait class.The ForEachTrait class template offers the possibility to se...
Definition: ForEachTrait.h:79
Header file for all forward declarations of the math module.
Compile time check for data types with padding.This type trait tests whether the given data type empl...
Definition: IsPadded.h:76
SymmetricMatrix specialization for sparse matrices with numeric element type.
Header file for the Columns type trait.
Header file for the implementation of a fixed-size matrix.
typename T::ElementType ElementType_
Alias declaration for nested ElementType type definitions.The ElementType_ alias declaration provides...
Definition: Aliases.h:163
Flag for the inversion of a Hermitian matrix (same as byLDLH).
Definition: InversionFlag.h:110
Compile time check for square matrices.This type trait tests whether or not the given template parame...
Definition: IsSquare.h:88
BLAZE_ALWAYS_INLINE size_t columns(const Matrix< MT, SO > &matrix) noexcept
Returns the current number of columns of the matrix.
Definition: Matrix.h:336
Flag for the Bunch-Kaufman-based inversion for symmetric matrices.
Definition: InversionFlag.h:104
DisableIf_< Or< IsComputation< MT >, IsTransExpr< MT >, IsDeclExpr< MT > >, RowExprTrait_< MT > > row(Matrix< MT, SO > &matrix, size_t index)
Creating a view on a specific row of the given matrix.
Definition: Row.h:128
Compile time check for symmetric matrices.This type trait tests whether or not the given template par...
Definition: IsSymmetric.h:85
Header file for the exception macros of the math module.
Header file for the RemoveAdaptor type trait.
Constraint on the data type.
Compile time check for adaptors.This type trait tests whether the given template parameter is an adap...
Definition: IsAdaptor.h:88
DisableIf_< Or< IsComputation< MT >, IsTransExpr< MT >, IsDeclExpr< MT > >, ColumnExprTrait_< MT > > column(Matrix< MT, SO > &matrix, size_t index)
Creating a view on a specific column of the given matrix.
Definition: Column.h:128
Header file for the EnableIf class template.
void clear(const DiagonalProxy< MT > &proxy)
Clearing the represented element.
Definition: DiagonalProxy.h:553
Header file for the IsPadded type trait.
Header file for the IsAdaptor type trait.
Header file for the IsNumeric type trait.
Base template for the LowType type trait.
Definition: LowType.h:133
Header file for the HasConstDataAccess type trait.
Compile time check for resizable data types.This type trait tests whether the given data type is a re...
Definition: IsResizable.h:75
SymmetricMatrix specialization for sparse matrices with non-numeric element type. ...
Flag for the inversion of a symmetric matrix (same as byLDLT).
Definition: InversionFlag.h:109
Header file for run time assertion macros.
Base template for the AddTrait class.
Definition: AddTrait.h:143
Base template for the MultTrait class.
Definition: MultTrait.h:143
Header file for the addition trait.
Header file for the division trait.
Header file for the submatrix trait.
Header file for the column trait.
Header file for the isDefault shim.
void swap(DiagonalMatrix< MT, SO, DF > &a, DiagonalMatrix< MT, SO, DF > &b) noexcept
Swapping the contents of two matrices.
Definition: DiagonalMatrix.h:267
Compile time check for Hermitian matrices.This type trait tests whether or not the given template par...
Definition: IsHermitian.h:85
Base class for matrices.The Matrix class is a base class for all dense and sparse matrix classes with...
Definition: Forward.h:94
#define BLAZE_CONSTRAINT_MUST_BE_BLAS_COMPATIBLE_TYPE(T)
Constraint on the data type.In case the given data type T is not a BLAS compatible data type (i...
Definition: BLASCompatible.h:61
Flag for the Cholesky-based inversion for positive-definite matrices.
Definition: InversionFlag.h:106
bool isSymmetric(const DenseMatrix< MT, SO > &dm)
Checks if the given dense matrix is symmetric.
Definition: DenseMatrix.h:697
#define BLAZE_CONSTRAINT_MUST_NOT_REQUIRE_EVALUATION(T)
Constraint on the data type.In case the given data type T requires an intermediate evaluation within ...
Definition: RequiresEvaluation.h:81
typename SubmatrixTrait< MT >::Type SubmatrixTrait_
Auxiliary alias declaration for the SubmatrixTrait type trait.The SubmatrixTrait_ alias declaration p...
Definition: SubmatrixTrait.h:153
Base template for the DivTrait class.
Definition: DivTrait.h:143
SymmetricMatrix specialization for dense matrices with numeric element type.
typename ColumnTrait< MT >::Type ColumnTrait_
Auxiliary alias declaration for the ColumnTrait type trait.The ColumnTrait_ alias declaration provide...
Definition: ColumnTrait.h:152
BLAZE_ALWAYS_INLINE size_t rows(const Matrix< MT, SO > &matrix) noexcept
Returns the current number of rows of the matrix.
Definition: Matrix.h:320
Removal of top level adaptor types.In case the given type is an adaptor type (SymmetricMatrix, LowerMatrix, UpperMatrix, ...), the RemoveAdaptor type trait removes the adaptor and extracts the contained general matrix type. Else the given type is returned as is. Note that cv-qualifiers are preserved.
Definition: RemoveAdaptor.h:76
Header file for the IsBuiltin type trait.
typename SubTrait< T1, T2 >::Type SubTrait_
Auxiliary alias declaration for the SubTrait class template.The SubTrait_ alias declaration provides ...
Definition: SubTrait.h:245
Header file for the for-each trait.
Header file for the isDivisor shim.
Header file for the IntegralConstant class template.
Compile time evaluation of the number of columns of a matrix.The Columns type trait evaluates the num...
Definition: Columns.h:76
bool isIntact(const DiagonalMatrix< MT, SO, DF > &m)
Returns whether the invariants of the given diagonal matrix are intact.
Definition: DiagonalMatrix.h:249
Compile time evaluation of the number of rows of a matrix.The Rows type trait evaluates the number of...
Definition: Rows.h:76
bool isDefault(const DiagonalProxy< MT > &proxy)
Returns whether the represented element is in default state.
Definition: DiagonalProxy.h:573
Base template for the SubTrait class.
Definition: SubTrait.h:143
void UNUSED_PARAMETER(const Args &...)
Suppression of unused parameter warnings.
Definition: Unused.h:81
SubmatrixExprTrait_< MT, unaligned > submatrix(Matrix< MT, SO > &matrix, size_t row, size_t column, size_t m, size_t n)
Creating a view on a specific submatrix of the given matrix.
Definition: Submatrix.h:168
Header file for the IsHermitian type trait.
Header file for the IsResizable type trait.
Header file for the IsRestricted type trait.
typename AddTrait< T1, T2 >::Type AddTrait_
Auxiliary alias declaration for the AddTrait class template.The AddTrait_ alias declaration provides ...
Definition: AddTrait.h:245
InversionFlag
Inversion flag.The InversionFlag type enumeration represents the different types of matrix inversion ...
Definition: InversionFlag.h:101
#define BLAZE_INTERNAL_ASSERT(expr, msg)
Run time assertion macro for internal checks.In case of an invalid run time expression, the program execution is terminated. The BLAZE_INTERNAL_ASSERT macro can be disabled by setting the BLAZE_USER_ASSERTION flag to zero or by defining NDEBUG during the compilation.
Definition: Assert.h:101
Header file for the HighType type trait.
Header file for the TrueType type/value trait base class.