35#ifndef _BLAZE_MATH_DENSE_DENSEVECTOR_H_
36#define _BLAZE_MATH_DENSE_DENSEVECTOR_H_
80template<
typename T1,
typename T2,
bool TF >
84template<
typename T1,
typename T2,
bool TF >
88template<
typename T1,
typename T2,
bool TF >
92template<
typename T1,
typename T2,
bool TF >
96template<
typename VT,
bool TF,
typename ST >
100template<
typename VT,
bool TF,
typename ST >
104template<
typename VT,
bool TF,
typename ST >
108template<
typename VT,
bool TF,
typename ST >
112template<
typename VT,
bool TF,
typename ST >
116template<
typename VT,
bool TF,
typename ST >
120template<
typename VT,
bool TF,
typename ST >
124template<
typename VT,
bool TF,
typename ST >
128template<
typename VT,
bool TF >
131template<
typename VT,
bool TF >
134template<
typename VT1,
typename VT2,
bool TF >
137template<
typename VT1,
typename VT2,
bool TF >
140template<
typename VT,
bool TF >
143template<
typename VT,
bool TF >
146template<
typename VT1,
typename VT2,
bool TF >
149template<
typename VT1,
typename VT2,
bool TF >
152template<
typename VT,
bool TF,
typename ST >
156template<
typename VT,
bool TF,
typename ST >
160template<
typename VT1,
typename VT2,
bool TF >
163template<
typename VT1,
typename VT2,
bool TF >
166template<
typename VT,
bool TF,
typename ST >
170template<
typename VT,
bool TF,
typename ST >
174template<
typename VT1,
typename VT2,
bool TF >
177template<
typename VT1,
typename VT2,
bool TF >
180template<
typename VT,
bool TF,
typename ST >
184template<
typename VT,
bool TF,
typename ST >
188template<
typename VT1,
typename VT2,
bool TF >
191template<
typename VT1,
typename VT2,
bool TF >
222 for(
size_t i=0; i<a.size(); ++i )
223 if( !
equal( a[i], scalar ) )
return false;
247 return ( vec == scalar );
270 return !( vec == scalar );
293 return !( vec == scalar );
318 if( !tryAdd( *vec, 0UL, (*vec).size(), scalar ) ) {
323 decltype(
auto) left( derestrict( *vec ) );
378 if( !trySub( *vec, 0UL, (*vec).size(), scalar ) ) {
383 decltype(
auto) left( derestrict( *vec ) );
438 if( !tryMult( *vec, 0UL, (*vec).size(), scalar ) ) {
443 decltype(
auto) left( derestrict( *vec ) );
502 if( !tryDiv( *vec, 0UL, (*vec).size(), scalar ) ) {
507 decltype(
auto) left( derestrict( *vec ) );
561 if( !tryShift( *vec, 0UL, (*vec).size(), count ) ) {
566 decltype(
auto) left( derestrict( *vec ) );
610template<
typename VT1
616 if( !tryShiftAssign( *lhs, *rhs, 0UL ) ) {
621 decltype(
auto) left( derestrict( *lhs ) );
645template<
typename VT1
672 if( !tryShift( *vec, 0UL, (*vec).size(), count ) ) {
677 decltype(
auto) left( derestrict( *vec ) );
721template<
typename VT1
727 if( !tryShiftAssign( *lhs, *rhs, 0UL ) ) {
732 decltype(
auto) left( derestrict( *lhs ) );
755template<
typename VT1
784 if( !tryBitand( *vec, 0UL, (*vec).size(), scalar ) ) {
789 decltype(
auto) left( derestrict( *vec ) );
836template<
typename VT1
842 if( !tryBitandAssign( *lhs, *rhs, 0UL ) ) {
847 decltype(
auto) left( derestrict( *lhs ) );
870template<
typename VT1
899 if( !tryBitor( *vec, 0UL, (*vec).size(), scalar ) ) {
904 decltype(
auto) left( derestrict( *vec ) );
951template<
typename VT1
957 if( !tryBitorAssign( *lhs, *rhs, 0UL ) ) {
962 decltype(
auto) left( derestrict( *lhs ) );
985template<
typename VT1
1007template<
typename VT
1014 if( !tryBitxor( *vec, 0UL, (*vec).size(), scalar ) ) {
1019 decltype(
auto) left( derestrict( *vec ) );
1043template<
typename VT
1066template<
typename VT1
1072 if( !tryBitxorAssign( *lhs, *rhs, 0UL ) ) {
1077 decltype(
auto) left( derestrict( *lhs ) );
1100template<
typename VT1
1121template<
typename VT,
bool TF >
1122bool isnan(
const DenseVector<VT,TF>& dv );
1124template<
typename VT,
bool TF >
1125bool isinf(
const DenseVector<VT,TF>& dv );
1127template<
typename VT,
bool TF >
1128bool isfinite(
const DenseVector<VT,TF>& dv );
1130template<
typename VT,
bool TF >
1131bool isDivisor(
const DenseVector<VT,TF>& dv );
1133template< RelaxationFlag RF,
typename VT,
bool TF >
1134bool isUniform(
const DenseVector<VT,TF>& dv );
1136template< RelaxationFlag RF,
typename VT,
bool TF >
1137bool isZero(
const DenseVector<VT,TF>& dv );
1159template<
typename VT
1168 for(
size_t i=0UL; i<a.size(); ++i ) {
1169 if(
isnan( a[i] ) )
return true;
1192template<
typename VT
1201 for(
size_t i=0UL; i<a.size(); ++i ) {
1202 if(
isinf( a[i] ) )
return true;
1226template<
typename VT
1235 for(
size_t i=0UL; i<a.size(); ++i ) {
1236 if( !
isfinite( a[i] ) )
return false;
1259template<
typename VT
1265 for(
size_t i=0UL; i<a.size(); ++i ) {
1316 const auto& cmp( a[0UL] );
1318 for(
size_t i=1UL; i<a.size(); ++i ) {
1371 for(
size_t i=0UL; i<a.size(); ++i ) {
Header file for auxiliary alias declarations.
typename T::CompositeType CompositeType_t
Alias declaration for nested CompositeType type definitions.
Definition Aliases.h:110
Header file for run time assertion macros.
Header file for the EnableIf class template.
Header file for the isDivisor shim.
Header file for the isfinite shim.
Header file for the IsFloatingPoint type trait.
Header file for the isinf shim.
Header file for the isnan shim.
Header file for the IsRestricted type trait.
Header file for the IsScalar type trait.
Deactivation of problematic macros.
Constraint on the data type.
Header file for the relaxation flag enumeration.
Header file for the RemoveReference type trait.
Header file for the UnderlyingBuiltin type trait.
Base class for N-dimensional dense vectors.
Definition DenseVector.h:77
Header file for the DenseVector 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 isinf(const DenseMatrix< MT, SO > &dm)
Checks the given dense matrix for infinite elements.
Definition DenseMatrix.h:1339
bool isUniform(const DenseMatrix< MT, SO > &dm)
Checks if the given dense matrix is a uniform matrix.
Definition DenseMatrix.h:1766
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
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
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
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
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
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 isZero(const DenseMatrix< MT, SO > &dm)
Checks if the given dense matrix is a zero matrix.
Definition DenseMatrix.h:1819
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
typename UnderlyingBuiltin< T >::Type UnderlyingBuiltin_t
Auxiliary alias declaration for the UnderlyingBuiltin type trait.
Definition UnderlyingBuiltin.h:117
constexpr bool IsUniform_v
Auxiliary variable template for the IsUniform type trait.
Definition IsUniform.h:164
constexpr bool IsZero_v
Auxiliary variable template for the IsZero type trait.
Definition IsZero.h:166
constexpr bool IsRestricted_v
Auxiliary variable template for the IsRestricted type trait.
Definition IsRestricted.h:140
RelaxationFlag
Relaxation flag for strict or relaxed semantics.
Definition RelaxationFlag.h:66
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
#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
typename EnableIf< Condition, T >::Type EnableIf_t
Auxiliary type for the EnableIf class template.
Definition EnableIf.h:138
#define BLAZE_THROW_INVALID_ARGUMENT(MESSAGE)
Macro for the emission of a std::invalid_argument exception.
Definition Exception.h:235
Header file for the exception macros of the math module.
Header file for the equal shim.
Header file for the isZero shim.
Header file for the pow2 shim.
Header file for the sqrt shim.
Header file for the IsZero type trait.
Header file for basic type definitions.