35#ifndef _BLAZE_MATH_DENSE_UNIFORMVECTOR_H_
36#define _BLAZE_MATH_DENSE_UNIFORMVECTOR_H_
181template<
typename Type
185 :
public Expression< DenseVector< UniformVector<Type,TF,Tag>, TF > >
216 template<
typename NewType >
225 template<
size_t NewN >
253 template< typename VT >
295 template< typename ST >
298 template< typename ST >
306 constexpr
size_t size() const noexcept;
312 constexpr
void resize(
size_t n,
bool preserve=true );
313 constexpr
void extend(
size_t n,
bool preserve=true );
321 template< typename Other > inline
UniformVector& scale( const Other& scalar );
335 template< typename Other > inline
bool canAlias ( const Other* alias ) const noexcept;
336 template< typename Other > inline
bool isAliased( const Other* alias ) const noexcept;
379template< typename
Type
394template<
typename Type
412template<
typename Type
431template<
typename Type
434template<
typename VT >
469template<
typename Type
494template<
typename Type
500 if( index >=
size_ ) {
504 return (*
this)[index];
517template<
typename Type
533template<
typename Type
549template<
typename Type
565template<
typename Type
581template<
typename Type
606template<
typename Type
628template<
typename Type
631template<
typename VT >
641 size_ = (*rhs).size();
643 if( (*rhs).size() > 0UL ) {
663template<
typename Type
666template<
typename VT >
672 if( (*rhs).size() !=
size_ ) {
680 if( (*rhs).size() > 0UL ) {
700template<
typename Type
703template<
typename VT >
709 if( (*rhs).size() !=
size_ ) {
717 if( (*rhs).size() > 0UL ) {
738template<
typename Type
741template<
typename VT >
747 if( (*rhs).size() !=
size_ ) {
755 if( (*rhs).size() > 0UL ) {
775template<
typename Type
778template<
typename VT >
784 if( (*rhs).size() !=
size_ ) {
792 if( (*rhs).size() > 0UL ) {
808template<
typename Type
811template<
typename ST >
812inline auto UniformVector<Type,TF,Tag>::operator*=( ST scalar ) &
831template<
typename Type
834template<
typename ST >
835inline auto UniformVector<Type,TF,Tag>::operator/=( ST scalar ) &
860template<
typename Type
878template<
typename Type
893template<
typename Type
912template<
typename Type
930template<
typename Type
949template<
typename Type
971template<
typename Type
994template<
typename Type
1010template<
typename Type
1048template<
typename Type
1051template<
typename Other >
1081template<
typename Type
1084template<
typename Other >
1087 return static_cast<const void*
>( this ) ==
static_cast<const void*
>( alias );
1102template<
typename Type
1105template<
typename Other >
1108 return static_cast<const void*
>( this ) ==
static_cast<const void*
>( alias );
1122template<
typename Type
1142template<
typename Type
1147 return (
size() > SMP_DVECASSIGN_THRESHOLD );
1164template<
typename Type
1170 return loada( index );
1188template<
typename Type
1220template<
typename Type
1249template< RelaxationFlag RF,
typename Type,
bool TF,
typename Tag >
1252template<
typename Type,
bool TF,
typename Tag >
1255template<
typename Type,
bool TF,
typename Tag >
1291 return ( v.
size() == 0UL );
1314template<
typename Type
1334template<
typename Type
1378template<
bool TF = defaultTransposeFlag,
typename T >
1379constexpr decltype(
auto)
uniform(
size_t n, T&& init )
1396template<
typename Type,
bool TF,
typename Tag >
1397struct IsUniform< UniformVector<Type,TF,Tag> >
1414template<
typename Type,
bool TF,
typename Tag >
1432template<
typename T1,
typename T2 >
1433struct AddTraitEval1< T1, T2
1457template<
typename T1,
typename T2 >
1458struct SubTraitEval1< T1, T2
1482template<
typename T1,
typename T2 >
1483struct MultTraitEval1< T1, T2
1493template<
typename T1,
typename T2 >
1494struct MultTraitEval1< T1, T2
1504template<
typename T1,
typename T2 >
1505struct MultTraitEval1< T1, T2
1516template<
typename T1,
typename T2 >
1517struct MultTraitEval1< T1, T2
1531template<
typename T1,
typename T2 >
1532struct MultTraitEval1< T1, T2
1559template<
typename T1,
typename T2 >
1560struct KronTraitEval1< T1, T2
1584template<
typename T1,
typename T2 >
1585struct DivTraitEval1< T1, T2
1595template<
typename T1,
typename T2 >
1596struct DivTraitEval1< T1, T2
1620template<
typename T,
typename OP >
1621struct UnaryMapTraitEval1< T, OP
1626 using ElementType =
decltype( std::declval<OP>()( std::declval< ElementType_t<T> >() ) );
1638template<
typename T1,
typename T2,
typename OP >
1639struct BinaryMapTraitEval1< T1, T2, OP
1645 using ElementType =
decltype( std::declval<OP>()( std::declval< ElementType_t<T1> >()
1646 , std::declval< ElementType_t<T2> >() ) );
1666template<
typename T,
typename OP, ReductionFlag RF >
1667struct PartialReduceTraitEval1< T, OP, RF
1691template<
typename T,
size_t R0 >
1692struct RepeatTraitEval1< T, R0,
inf,
inf
1714template<
typename T1,
bool TF,
typename Tag,
typename T2 >
1717 using Type = UniformVector< typename HighType<T1,T2>::Type, TF, Tag >;
1733template<
typename T1,
bool TF,
typename Tag,
typename T2 >
1736 using Type = UniformVector< typename LowType<T1,T2>::Type, TF, Tag >;
1752template<
typename VT,
size_t I,
size_t N >
1753struct SubvectorTraitEval1< VT, I, N
1774template<
typename VT,
size_t N >
1775struct ElementsTraitEval1< VT, N
1796template<
typename MT,
size_t I >
1797struct RowTraitEval1< MT, I
1818template<
typename MT,
size_t I >
1819struct ColumnTraitEval1< MT, I
1840template<
typename MT, ptrdiff_t I >
1841struct BandTraitEval1< MT, I
Header file for the addition trait.
Header file for auxiliary alias declarations.
typename ResultType_t< T >::TagType TagType_t
Alias declaration for nested TagType type definitions.
Definition Aliases.h:530
typename T::ElementType ElementType_t
Alias declaration for nested ElementType type definitions.
Definition Aliases.h:190
Header file for the alignment flag enumeration.
Header file for run time assertion macros.
Header file for the band trait.
Header file for the column trait.
Constraint on the data type.
Header file for the division trait.
Header file for the elements trait.
Header file for the EnableIf class template.
Header file for the EvaluateTrait class template.
Header file for the HighType type trait.
Header file for the IntegralConstant class template.
Header file for the IsAligned type trait.
Header file for the IsColumnVector type trait.
Header file for the isDefault shim.
Header file for the IsIdentity type trait.
Header file for the IsMatrix type trait.
Header file for the IsRowVector type trait.
Header file for the IsSMPAssignable type trait.
Header file for the IsScalar type trait.
Header file for the IsVector type trait.
Header file for the IsVectorizable type trait.
Header file for the Kron product trait.
Header file for the LowType type trait.
Header file for the map trait.
Header file for the MAYBE_UNUSED function template.
Header file for the multiplication trait.
Constraint on the data type.
Header file for the reduce trait.
Header file for the reduction flags.
constexpr ReductionFlag columnwise
Reduction flag for column-wise reduction operations.
Definition ReductionFlag.h:97
Constraint on the data type.
Header file for the relaxation flag enumeration.
Header file for the RemoveCVRef type trait.
Header file for the RemoveConst type trait.
Header file for the repeat trait.
Header file for the row trait.
Header file for all SIMD functionality.
Header file for the subtraction trait.
Header file for the subvector trait.
Constraint on the data type.
Constraint on the data type.
Header file for the YieldsZero type trait.
Base class for N-dimensional dense vectors.
Definition DenseVector.h:77
Base class for N-dimensional vectors.
Definition Vector.h:82
Header file for the DenseVector base class.
Header file for the Expression base class.
#define BLAZE_CONSTRAINT_MUST_NOT_BE_VOLATILE(T)
Constraint on the data type.
Definition Volatile.h:79
#define BLAZE_CONSTRAINT_MUST_NOT_BE_POINTER_TYPE(T)
Constraint on the data type.
Definition Pointer.h:79
#define BLAZE_CONSTRAINT_MUST_BE_VECTORIZABLE_TYPE(T)
Constraint on the data type.
Definition Vectorizable.h:61
#define BLAZE_CONSTRAINT_MUST_NOT_BE_CONST(T)
Constraint on the data type.
Definition Const.h:79
#define BLAZE_CONSTRAINT_MUST_BE_SAME_TAG(A, B)
Data type constraint.
Definition SameTag.h:68
#define BLAZE_CONSTRAINT_MUST_NOT_BE_REFERENCE_TYPE(T)
Constraint on the data type.
Definition Reference.h:79
bool isUniform(const DenseMatrix< MT, SO > &dm)
Checks if the given dense matrix is a uniform matrix.
Definition DenseMatrix.h:1766
bool isIntact(const DiagonalMatrix< MT, SO, DF > &m)
Returns whether the invariants of the given diagonal matrix are intact.
Definition DiagonalMatrix.h:207
void swap(DiagonalMatrix< MT, SO, DF > &a, DiagonalMatrix< MT, SO, DF > &b) noexcept
Swapping the contents of two matrices.
Definition DiagonalMatrix.h:225
bool isDefault(const DiagonalMatrix< MT, SO, DF > &m)
Returns whether the given diagonal matrix is in default state.
Definition DiagonalMatrix.h:169
typename SubTrait< T1, T2 >::Type SubTrait_t
Auxiliary alias declaration for the SubTrait class template.
Definition SubTrait.h:163
typename AddTrait< T1, T2 >::Type AddTrait_t
Auxiliary alias declaration for the AddTrait class template.
Definition AddTrait.h:163
typename MapTrait< Args... >::Type MapTrait_t
Auxiliary alias declaration for the MapTrait class template.
Definition MapTrait.h:131
typename DivTrait< T1, T2 >::Type DivTrait_t
Auxiliary alias declaration for the DivTrait class template.
Definition DivTrait.h:164
typename MultTrait< T1, T2 >::Type MultTrait_t
Auxiliary alias declaration for the MultTrait class template.
Definition MultTrait.h:165
constexpr bool IsScalar_v
Auxiliary variable template for the IsScalar type trait.
Definition IsScalar.h:104
constexpr bool IsUniform_v
Auxiliary variable template for the IsUniform type trait.
Definition IsUniform.h:164
constexpr bool IsVector_v
Auxiliary variable template for the IsVector type trait.
Definition IsVector.h:125
constexpr bool YieldsUniform_v
Auxiliary variable template for the YieldsUniform type trait.
Definition YieldsUniform.h:125
constexpr bool IsZero_v
Auxiliary variable template for the IsZero type trait.
Definition IsZero.h:166
constexpr bool YieldsZero_v
Auxiliary variable template for the YieldsZero type trait.
Definition YieldsZero.h:125
constexpr bool IsMatrix_v
Auxiliary variable template for the IsMatrix type trait.
Definition IsMatrix.h:124
constexpr bool IsColumnVector_v
Auxiliary variable template for the IsColumnVector type trait.
Definition IsColumnVector.h:126
constexpr bool IsIdentity_v
Auxiliary variable template for the IsIdentity type trait.
Definition IsIdentity.h:137
constexpr bool IsSMPAssignable_v
Auxiliary variable template for the IsSMPAssignable type trait.
Definition IsSMPAssignable.h:132
constexpr bool IsRowVector_v
Auxiliary variable template for the IsRowVector type trait.
Definition IsRowVector.h:126
constexpr bool TransposeFlag_v
Auxiliary variable template for the TransposeFlag type trait.
Definition TransposeFlag.h:93
RelaxationFlag
Relaxation flag for strict or relaxed semantics.
Definition RelaxationFlag.h:66
constexpr Infinity inf
Global Infinity instance.
Definition Infinity.h:1080
constexpr void clear(Matrix< MT, SO > &matrix)
Clearing the given matrix.
Definition Matrix.h:960
#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
BLAZE_ALWAYS_INLINE const EnableIf_t< IsIntegral_v< T > &&HasSize_v< T, 1UL >, If_t< IsSigned_v< T >, SIMDint8, SIMDuint8 > > set(T value) noexcept
Sets all values in the vector to the given 1-byte integral value.
Definition Set.h:75
typename SIMDTrait< T >::Type SIMDTrait_t
Auxiliary alias declaration for the SIMDTrait class template.
Definition SIMDTrait.h:315
#define BLAZE_ALWAYS_INLINE
Platform dependent setup of an enforced inline keyword.
Definition Inline.h:85
constexpr bool defaultTransposeFlag
The default transpose flag for all vectors of the Blaze library.
Definition TransposeFlag.h:75
constexpr bool IsVectorizable_v
Auxiliary variable template for the IsVectorizable type trait.
Definition IsVectorizable.h:157
constexpr void MAYBE_UNUSED(const Args &...)
Suppression of unused parameter warnings.
Definition MaybeUnused.h:81
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_OUT_OF_RANGE(MESSAGE)
Macro for the emission of a std::out_of_range exception.
Definition Exception.h:331
#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 all forward declarations for dense vectors and matrices.
Header file for the TransposeFlag type trait.
Header file for the clear shim.
Base class for all expression templates.
Definition Expression.h:60
Base template for the HighType type trait.
Definition HighType.h:322
Compile time check for the alignment of data types.
Definition IsAligned.h:88
Base template for the LowType type trait.
Definition LowType.h:322
Header file for the thresholds for matrix/vector and matrix/matrix multiplications.
Header file for the default transpose flag for all vectors of the Blaze library.
Header file for the IsZero type trait.
Header file for basic type definitions.