Loading Documentation/Examples/Matrices/MultidiagonalMatrix/MultidiagonalMatrixExample_rowsReduction.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -48,7 +48,7 @@ void rowsReduction() /*** * Reduce lambda return maximum of given values. */ auto reduce = [=] __cuda_callable__ ( double& a, const double& b ) -> double { auto reduce = [=] __cuda_callable__ ( const double& a, const double& b ) -> double { return TNL::max( a, b ); }; Loading Documentation/Examples/Matrices/MultidiagonalMatrix/MultidiagonalMatrixViewExample_getRow.cpp +1 −4 Original line number Diff line number Diff line Loading @@ -8,14 +8,11 @@ template< typename Device > void getRowExample() { const int matrixSize( 5 ); auto diagonalsOffsets = { -1, 0, 1 }; // Variadic templates in SharedPointer // constructor do not recognize initializer // list so we give it a hint. using MatrixType = TNL::Matrices::MultidiagonalMatrix< double, Device >; MatrixType matrix( matrixSize, // number of matrix rows matrixSize, // number of matrix columns diagonalsOffsets ); { -1, 0, 1 } ); auto view = matrix.getView(); auto f = [=] __cuda_callable__ ( int rowIdx ) mutable { Loading Documentation/Tutorials/Matrices/MultidiagonalMatrixExample_Constructor.cpp 0 → 120000 +1 −0 Original line number Diff line number Diff line ../../Examples/Matrices/MultidiagonalMatrix/MultidiagonalMatrixExample_Constructor.cpp No newline at end of file Documentation/Tutorials/Matrices/MultidiagonalMatrixExample_Constructor_init_list_1.cpp 0 → 120000 +1 −0 Original line number Diff line number Diff line ../../Examples/Matrices/MultidiagonalMatrix/MultidiagonalMatrixExample_Constructor_init_list_1.cpp No newline at end of file Documentation/Tutorials/Matrices/tutorial_Matrices.md +401 −7 File changed.Preview size limit exceeded, changes collapsed. Show changes Loading
Documentation/Examples/Matrices/MultidiagonalMatrix/MultidiagonalMatrixExample_rowsReduction.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -48,7 +48,7 @@ void rowsReduction() /*** * Reduce lambda return maximum of given values. */ auto reduce = [=] __cuda_callable__ ( double& a, const double& b ) -> double { auto reduce = [=] __cuda_callable__ ( const double& a, const double& b ) -> double { return TNL::max( a, b ); }; Loading
Documentation/Examples/Matrices/MultidiagonalMatrix/MultidiagonalMatrixViewExample_getRow.cpp +1 −4 Original line number Diff line number Diff line Loading @@ -8,14 +8,11 @@ template< typename Device > void getRowExample() { const int matrixSize( 5 ); auto diagonalsOffsets = { -1, 0, 1 }; // Variadic templates in SharedPointer // constructor do not recognize initializer // list so we give it a hint. using MatrixType = TNL::Matrices::MultidiagonalMatrix< double, Device >; MatrixType matrix( matrixSize, // number of matrix rows matrixSize, // number of matrix columns diagonalsOffsets ); { -1, 0, 1 } ); auto view = matrix.getView(); auto f = [=] __cuda_callable__ ( int rowIdx ) mutable { Loading
Documentation/Tutorials/Matrices/MultidiagonalMatrixExample_Constructor.cpp 0 → 120000 +1 −0 Original line number Diff line number Diff line ../../Examples/Matrices/MultidiagonalMatrix/MultidiagonalMatrixExample_Constructor.cpp No newline at end of file
Documentation/Tutorials/Matrices/MultidiagonalMatrixExample_Constructor_init_list_1.cpp 0 → 120000 +1 −0 Original line number Diff line number Diff line ../../Examples/Matrices/MultidiagonalMatrix/MultidiagonalMatrixExample_Constructor_init_list_1.cpp No newline at end of file
Documentation/Tutorials/Matrices/tutorial_Matrices.md +401 −7 File changed.Preview size limit exceeded, changes collapsed. Show changes