Commit 983508a7 authored by Tomáš Oberhuber's avatar Tomáš Oberhuber
Browse files

Writting documentation on tridiagonal and multidiagonal matrices.

parent c766a855
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 );
   };

+1 −4
Original line number Diff line number Diff line
@@ -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 {
+1 −0
Original line number Diff line number Diff line
../../Examples/Matrices/MultidiagonalMatrix/MultidiagonalMatrixExample_Constructor.cpp
 No newline at end of file
+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
+401 −7

File changed.

Preview size limit exceeded, changes collapsed.