|
Blaze 3.9
|
Classes | |
| class | blaze::ParallelSection< T > |
| Section for the debugging of the shared-memory parallelization. More... | |
| class | blaze::SerialSection< T > |
| Section to enforce the serial execution of operations. More... | |
Dense matrix SMP functions | |
| template<typename MT1, bool SO1, typename MT2, bool SO2> | |
| auto | blaze::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. | |
| template<typename MT1, bool SO1, typename MT2, bool SO2> | |
| auto | blaze::smpAddAssign (Matrix< MT1, SO1 > &lhs, const Matrix< MT2, SO2 > &rhs) -> EnableIf_t< IsDenseMatrix_v< MT1 > > |
| Default implementation of the SMP addition assignment of a matrix to a dense matrix. | |
| template<typename MT1, bool SO1, typename MT2, bool SO2> | |
| auto | blaze::smpSubAssign (Matrix< MT1, SO1 > &lhs, const Matrix< MT2, SO2 > &rhs) -> EnableIf_t< IsDenseMatrix_v< MT1 > > |
| Default implementation of the SMP subtraction assignment of a matrix to dense matrix. | |
| template<typename MT1, bool SO1, typename MT2, bool SO2> | |
| auto | blaze::smpSchurAssign (Matrix< MT1, SO1 > &lhs, const Matrix< MT2, SO2 > &rhs) -> EnableIf_t< IsDenseMatrix_v< MT1 > > |
| Default implementation of the SMP Schur product assignment of a matrix to dense matrix. | |
Dense vector SMP functions | |
| template<typename VT1, bool TF1, typename VT2, bool TF2> | |
| auto | blaze::smpAssign (Vector< VT1, TF1 > &lhs, const Vector< VT2, TF2 > &rhs) -> EnableIf_t< IsDenseVector_v< VT1 > > |
| Default implementation of the SMP assignment of a vector to a dense vector. | |
| template<typename VT1, bool TF1, typename VT2, bool TF2> | |
| auto | blaze::smpAddAssign (Vector< VT1, TF1 > &lhs, const Vector< VT2, TF2 > &rhs) -> EnableIf_t< IsDenseVector_v< VT1 > > |
| Default implementation of the SMP addition assignment of a vector to a dense vector. | |
| template<typename VT1, bool TF1, typename VT2, bool TF2> | |
| auto | blaze::smpSubAssign (Vector< VT1, TF1 > &lhs, const Vector< VT2, TF2 > &rhs) -> EnableIf_t< IsDenseVector_v< VT1 > > |
| Default implementation of the SMP subtraction assignment of a vector to a dense vector. | |
| template<typename VT1, bool TF1, typename VT2, bool TF2> | |
| auto | blaze::smpMultAssign (Vector< VT1, TF1 > &lhs, const Vector< VT2, TF2 > &rhs) -> EnableIf_t< IsDenseVector_v< VT1 > > |
| Default implementation of the SMP multiplication assignment of a vector to a dense vector. | |
| template<typename VT1, bool TF1, typename VT2, bool TF2> | |
| auto | blaze::smpDivAssign (Vector< VT1, TF1 > &lhs, const Vector< VT2, TF2 > &rhs) -> EnableIf_t< IsDenseVector_v< VT1 > > |
| Default implementation of the SMP division assignment of a vector to a dense vector. | |
SMP utility functions | |
| BLAZE_ALWAYS_INLINE size_t | blaze::getNumThreads () |
| Returns the number of threads used for thread parallel operations. | |
| BLAZE_ALWAYS_INLINE void | blaze::setNumThreads (size_t number) |
| Sets the number of threads to be used for thread parallel operations. | |
| BLAZE_ALWAYS_INLINE void | blaze::shutDownThreads () |
| Provides a reliable shutdown of C++11 threads for Visual Studio compilers. | |
Sparse matrix SMP functions | |
| template<typename MT1, bool SO1, typename MT2, bool SO2> | |
| auto | blaze::smpAssign (Matrix< MT1, SO1 > &lhs, const Matrix< MT2, SO2 > &rhs) -> EnableIf_t< IsSparseMatrix_v< MT1 > > |
| Default implementation of the SMP assignment of a matrix to a sparse matrix. | |
| template<typename MT1, bool SO1, typename MT2, bool SO2> | |
| auto | blaze::smpAddAssign (Matrix< MT1, SO1 > &lhs, const Matrix< MT2, SO2 > &rhs) -> EnableIf_t< IsSparseMatrix_v< MT1 > > |
| Default implementation of the SMP addition assignment of a matrix to a sparse matrix. | |
| template<typename MT1, bool SO1, typename MT2, bool SO2> | |
| auto | blaze::smpSubAssign (Matrix< MT1, SO1 > &lhs, const Matrix< MT2, SO2 > &rhs) -> EnableIf_t< IsSparseMatrix_v< MT1 > > |
| Default implementation of the SMP subtraction assignment of a matrix to sparse matrix. | |
| template<typename MT1, bool SO1, typename MT2, bool SO2> | |
| auto | blaze::smpSchurAssign (Matrix< MT1, SO1 > &lhs, const Matrix< MT2, SO2 > &rhs) -> EnableIf_t< IsSparseMatrix_v< MT1 > > |
| Default implementation of the SMP Schur product assignment of a matrix to sparse matrix. | |
Sparse vector SMP functions | |
| template<typename VT1, bool TF1, typename VT2, bool TF2> | |
| auto | blaze::smpAssign (Vector< VT1, TF1 > &lhs, const Vector< VT2, TF2 > &rhs) -> EnableIf_t< IsSparseVector_v< VT1 > > |
| Default implementation of the SMP assignment of a vector to a sparse vector. | |
| template<typename VT1, bool TF1, typename VT2, bool TF2> | |
| auto | blaze::smpAddAssign (Vector< VT1, TF1 > &lhs, const Vector< VT2, TF2 > &rhs) -> EnableIf_t< IsSparseVector_v< VT1 > > |
| Default implementation of the SMP addition assignment of a vector to a sparse vector. | |
| template<typename VT1, bool TF1, typename VT2, bool TF2> | |
| auto | blaze::smpSubAssign (Vector< VT1, TF1 > &lhs, const Vector< VT2, TF2 > &rhs) -> EnableIf_t< IsSparseVector_v< VT1 > > |
| Default implementation of the SMP subtraction assignment of a vector to a sparse vector. | |
| template<typename VT1, bool TF1, typename VT2, bool TF2> | |
| auto | blaze::smpMultAssign (Vector< VT1, TF1 > &lhs, const Vector< VT2, TF2 > &rhs) -> EnableIf_t< IsSparseVector_v< VT1 > > |
| Default implementation of the SMP multiplication assignment of a vector to a sparse vector. | |
ParallelSection functions | |
| bool | blaze::isParallelSectionActive () |
| Returns whether a parallel section is active or not. | |
| #define | BLAZE_PARALLEL_SECTION if( blaze::ParallelSection<int> BLAZE_JOIN( parallelSection, __LINE__ ) = true ) |
| Section for the debugging of the shared-memory parallelization. | |
SerialSection functions | |
| bool | blaze::isSerialSectionActive () |
| Returns whether a serial section is active or not. | |
| #define | BLAZE_SERIAL_SECTION if( blaze::SerialSection<int> BLAZE_JOIN( serialSection, __LINE__ ) = true ) |
| Section to enforce the serial execution of operations. | |
| #define BLAZE_PARALLEL_SECTION if( blaze::ParallelSection<int> BLAZE_JOIN( parallelSection, __LINE__ ) = true ) |
Section for the debugging of the shared-memory parallelization.
During the shared-memory parallel (SMP) execution of an operation nested calls to the SMP assign functions are conceptually not allowed. In other words, it is not allowed to call a SMP assign function from within a non-SMP assign function. The BLAZE_PARALLEL_SECTION macro can be used to mark the start of a parallel section and with that detect nested SMP assign function calls. In case a nested use of a parallel section is detected, a std::runtime_error exception is thrown.
Note that this macro is reserved for internal debugging purposes only and therefore must NOT be used explicitly! Using this macro might result in erroneous results, runtime or compilation errors.
| #define BLAZE_SERIAL_SECTION if( blaze::SerialSection<int> BLAZE_JOIN( serialSection, __LINE__ ) = true ) |
Section to enforce the serial execution of operations.
This macro provides the option to start a serial section to enforce the serial execution of operations. The following example demonstrates how a serial section is used:
Note that it is not allowed to use nested serial sections (i.e. a serial section within another serial section). In case the nested use of a serial section is detected, a std::runtime_error exception is thrown.
| BLAZE_ALWAYS_INLINE size_t blaze::getNumThreads | ( | ) |
Returns the number of threads used for thread parallel operations.
Via this function the number of threads used for thread parallel operations can be queried. Note that in case no parallelization is active the function will always return 1.
|
inline |
Returns whether a parallel section is active or not.
|
inline |
Returns whether a serial section is active or not.
| BLAZE_ALWAYS_INLINE void blaze::setNumThreads | ( | size_t | number | ) |
Sets the number of threads to be used for thread parallel operations.
| number | The given number of threads ![]() |
| std::invalid_argument | Invalid number of threads. |
Via this function the maximum number of threads for thread parallel operations can be specified. Note that the given number must be in the range 
| BLAZE_ALWAYS_INLINE void blaze::shutDownThreads | ( | ) |
Provides a reliable shutdown of C++11 threads for Visual Studio compilers.
There is a known issue in Visual Studio 2012 and 2013 that may cause C++11 threads to hang if their destructor is executed after the main() function:
http://connect.microsoft.com/VisualStudio/feedback/details/747145
This function, which has only an effect for Visual Studio compilers, provides a reliable way to circumvent this problem. If called directly before the end of the main() function it blocks until all threads have been destroyed:
| auto blaze::smpAddAssign | ( | Matrix< MT1, SO1 > & | lhs, |
| const Matrix< MT2, SO2 > & | rhs ) -> EnableIf_t< IsDenseMatrix_v< MT1 > > |
Default implementation of the SMP addition assignment of a matrix to a dense matrix.
| lhs | The target left-hand side dense matrix. |
| rhs | The right-hand side matrix to be added. |
This function implements the default SMP addition assignment of a matrix to a dense matrix.
This function must NOT be called explicitly! It is used internally for the performance optimized evaluation of expression templates. Calling this function explicitly might result in erroneous results and/or in compilation errors. Instead of using this function use the assignment operator.
| auto blaze::smpAddAssign | ( | Matrix< MT1, SO1 > & | lhs, |
| const Matrix< MT2, SO2 > & | rhs ) -> EnableIf_t< IsSparseMatrix_v< MT1 > > |
Default implementation of the SMP addition assignment of a matrix to a sparse matrix.
| lhs | The target left-hand side sparse matrix. |
| rhs | The right-hand side matrix to be added. |
This function implements the default SMP addition assignment of a matrix to a sparse matrix.
This function must NOT be called explicitly! It is used internally for the performance optimized evaluation of expression templates. Calling this function explicitly might result in erroneous results and/or in compilation errors. Instead of using this function use the assignment operator.
| auto blaze::smpAddAssign | ( | Vector< VT1, TF1 > & | lhs, |
| const Vector< VT2, TF2 > & | rhs ) -> EnableIf_t< IsDenseVector_v< VT1 > > |
Default implementation of the SMP addition assignment of a vector to a dense vector.
| lhs | The target left-hand side dense vector. |
| rhs | The right-hand side vector to be added. |
This function implements the default SMP addition assignment of a vector to a dense vector.
This function must NOT be called explicitly! It is used internally for the performance optimized evaluation of expression templates. Calling this function explicitly might result in erroneous results and/or in compilation errors. Instead of using this function use the assignment operator.
| auto blaze::smpAddAssign | ( | Vector< VT1, TF1 > & | lhs, |
| const Vector< VT2, TF2 > & | rhs ) -> EnableIf_t< IsSparseVector_v< VT1 > > |
Default implementation of the SMP addition assignment of a vector to a sparse vector.
| lhs | The target left-hand side sparse vector. |
| rhs | The right-hand side vector to be added. |
This function implements the default SMP addition assignment of a vector to a sparse vector.
This function must NOT be called explicitly! It is used internally for the performance optimized evaluation of expression templates. Calling this function explicitly might result in erroneous results and/or in compilation errors. Instead of using this function use the assignment operator.
| auto blaze::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.
| lhs | The target left-hand side dense matrix. |
| rhs | The right-hand side matrix to be assigned. |
This function implements the default SMP assignment of a matrix to a dense matrix.
This function must NOT be called explicitly! It is used internally for the performance optimized evaluation of expression templates. Calling this function explicitly might result in erroneous results and/or in compilation errors. Instead of using this function use the assignment operator.
| auto blaze::smpAssign | ( | Matrix< MT1, SO1 > & | lhs, |
| const Matrix< MT2, SO2 > & | rhs ) -> EnableIf_t< IsSparseMatrix_v< MT1 > > |
Default implementation of the SMP assignment of a matrix to a sparse matrix.
| lhs | The target left-hand side sparse matrix. |
| rhs | The right-hand side matrix to be assigned. |
This function implements the default SMP assignment of a matrix to a sparse matrix.
This function must NOT be called explicitly! It is used internally for the performance optimized evaluation of expression templates. Calling this function explicitly might result in erroneous results and/or in compilation errors. Instead of using this function use the assignment operator.
| auto blaze::smpAssign | ( | Vector< VT1, TF1 > & | lhs, |
| const Vector< VT2, TF2 > & | rhs ) -> EnableIf_t< IsDenseVector_v< VT1 > > |
Default implementation of the SMP assignment of a vector to a dense vector.
| lhs | The target left-hand side dense vector. |
| rhs | The right-hand side vector to be assigned. |
This function implements the default SMP assignment of a vector to a dense vector.
This function must NOT be called explicitly! It is used internally for the performance optimized evaluation of expression templates. Calling this function explicitly might result in erroneous results and/or in compilation errors. Instead of using this function use the assignment operator.
| auto blaze::smpAssign | ( | Vector< VT1, TF1 > & | lhs, |
| const Vector< VT2, TF2 > & | rhs ) -> EnableIf_t< IsSparseVector_v< VT1 > > |
Default implementation of the SMP assignment of a vector to a sparse vector.
| lhs | The target left-hand side sparse vector. |
| rhs | The right-hand side vector to be assigned. |
This function implements the default SMP assignment of a vector to a sparse vector.
This function must NOT be called explicitly! It is used internally for the performance optimized evaluation of expression templates. Calling this function explicitly might result in erroneous results and/or in compilation errors. Instead of using this function use the assignment operator.
| auto blaze::smpDivAssign | ( | Vector< VT1, TF1 > & | lhs, |
| const Vector< VT2, TF2 > & | rhs ) -> EnableIf_t< IsDenseVector_v< VT1 > > |
Default implementation of the SMP division assignment of a vector to a dense vector.
| lhs | The target left-hand side dense vector. |
| rhs | The right-hand side vector divisor. |
This function implements the default SMP division assignment of a vector to a dense vector.
This function must NOT be called explicitly! It is used internally for the performance optimized evaluation of expression templates. Calling this function explicitly might result in erroneous results and/or in compilation errors. Instead of using this function use the assignment operator.
| auto blaze::smpMultAssign | ( | Vector< VT1, TF1 > & | lhs, |
| const Vector< VT2, TF2 > & | rhs ) -> EnableIf_t< IsDenseVector_v< VT1 > > |
Default implementation of the SMP multiplication assignment of a vector to a dense vector.
| lhs | The target left-hand side dense vector. |
| rhs | The right-hand side vector to be multiplied. |
This function implements the default SMP multiplication assignment of a vector to a dense vector.
This function must NOT be called explicitly! It is used internally for the performance optimized evaluation of expression templates. Calling this function explicitly might result in erroneous results and/or in compilation errors. Instead of using this function use the assignment operator.
| auto blaze::smpMultAssign | ( | Vector< VT1, TF1 > & | lhs, |
| const Vector< VT2, TF2 > & | rhs ) -> EnableIf_t< IsSparseVector_v< VT1 > > |
Default implementation of the SMP multiplication assignment of a vector to a sparse vector.
| lhs | The target left-hand side sparse vector. |
| rhs | The right-hand side vector to be multiplied. |
This function implements the default SMP multiplication assignment of a vector to a sparse vector.
This function must NOT be called explicitly! It is used internally for the performance optimized evaluation of expression templates. Calling this function explicitly might result in erroneous results and/or in compilation errors. Instead of using this function use the assignment operator.
| auto blaze::smpSchurAssign | ( | Matrix< MT1, SO1 > & | lhs, |
| const Matrix< MT2, SO2 > & | rhs ) -> EnableIf_t< IsDenseMatrix_v< MT1 > > |
Default implementation of the SMP Schur product assignment of a matrix to dense matrix.
| lhs | The target left-hand side dense matrix. |
| rhs | The right-hand side matrix for the Schur product. |
This function implements the default SMP Schur product assignment of a matrix to a dense matrix.
This function must NOT be called explicitly! It is used internally for the performance optimized evaluation of expression templates. Calling this function explicitly might result in erroneous results and/or in compilation errors. Instead of using this function use the assignment operator.
| auto blaze::smpSchurAssign | ( | Matrix< MT1, SO1 > & | lhs, |
| const Matrix< MT2, SO2 > & | rhs ) -> EnableIf_t< IsSparseMatrix_v< MT1 > > |
Default implementation of the SMP Schur product assignment of a matrix to sparse matrix.
| lhs | The target left-hand side sparse matrix. |
| rhs | The right-hand side matrix for the Schur product. |
This function implements the default SMP Schur product assignment of a matrix to a sparse matrix.
This function must NOT be called explicitly! It is used internally for the performance optimized evaluation of expression templates. Calling this function explicitly might result in erroneous results and/or in compilation errors. Instead of using this function use the assignment operator.
| auto blaze::smpSubAssign | ( | Matrix< MT1, SO1 > & | lhs, |
| const Matrix< MT2, SO2 > & | rhs ) -> EnableIf_t< IsDenseMatrix_v< MT1 > > |
Default implementation of the SMP subtraction assignment of a matrix to dense matrix.
| lhs | The target left-hand side dense matrix. |
| rhs | The right-hand side matrix to be subtracted. |
This function implements the default SMP subtraction assignment of a matrix to a dense matrix.
This function must NOT be called explicitly! It is used internally for the performance optimized evaluation of expression templates. Calling this function explicitly might result in erroneous results and/or in compilation errors. Instead of using this function use the assignment operator.
| auto blaze::smpSubAssign | ( | Matrix< MT1, SO1 > & | lhs, |
| const Matrix< MT2, SO2 > & | rhs ) -> EnableIf_t< IsSparseMatrix_v< MT1 > > |
Default implementation of the SMP subtraction assignment of a matrix to sparse matrix.
| lhs | The target left-hand side sparse matrix. |
| rhs | The right-hand side matrix to be subtracted. |
This function implements the default SMP subtraction assignment of a matrix to a sparse matrix.
This function must NOT be called explicitly! It is used internally for the performance optimized evaluation of expression templates. Calling this function explicitly might result in erroneous results and/or in compilation errors. Instead of using this function use the assignment operator.
| auto blaze::smpSubAssign | ( | Vector< VT1, TF1 > & | lhs, |
| const Vector< VT2, TF2 > & | rhs ) -> EnableIf_t< IsDenseVector_v< VT1 > > |
Default implementation of the SMP subtraction assignment of a vector to a dense vector.
| lhs | The target left-hand side dense vector. |
| rhs | The right-hand side vector to be subtracted. |
This function implements the default SMP subtraction assignment of a vector to a dense vector.
This function must NOT be called explicitly! It is used internally for the performance optimized evaluation of expression templates. Calling this function explicitly might result in erroneous results and/or in compilation errors. Instead of using this function use the assignment operator.
| auto blaze::smpSubAssign | ( | Vector< VT1, TF1 > & | lhs, |
| const Vector< VT2, TF2 > & | rhs ) -> EnableIf_t< IsSparseVector_v< VT1 > > |
Default implementation of the SMP subtraction assignment of a vector to a sparse vector.
| lhs | The target left-hand side sparse vector. |
| rhs | The right-hand side vector to be subtracted. |
This function implements the default SMP subtraction assignment of a vector to a sparse vector.
This function must NOT be called explicitly! It is used internally for the performance optimized evaluation of expression templates. Calling this function explicitly might result in erroneous results and/or in compilation errors. Instead of using this function use the assignment operator.