Commit 25fb5ea9 authored by Illia Kolesnik's avatar Illia Kolesnik Committed by Tomáš Oberhuber
Browse files

Added copying of blocks in CSR matrix

parent 4f3f6092
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -113,7 +113,7 @@ void CSR< Real, Device, Index, KernelType >::setCompressedRowLengths( ConstCompr
   this->columnIndexes.setSize( this->rowPointers.getElement( this->rows ) );
   this->columnIndexes.setValue( this->columns );

   if (KernelType == CSRAdaptive)
   if (KernelType == CSRAdaptive && this->blocks.empty())
      this->setBlocks();
}

@@ -665,6 +665,7 @@ CSR< Real, Device, Index, KernelType >::operator=( const CSR& matrix )
   this->values = matrix.values;
   this->columnIndexes = matrix.columnIndexes;
   this->rowPointers = matrix.rowPointers;
   this->blocks = matrix.blocks;
   return *this;
}

@@ -681,6 +682,7 @@ CSR< Real, Device, Index, KernelType >::operator=( const CSR< Real2, Device2, In
   this->values = matrix.values;
   this->columnIndexes = matrix.columnIndexes;
   this->rowPointers = matrix.rowPointers;
   this->blocks = matrix.blocks;
   return *this;
}