Commit 0235ef95 authored by Tomáš Oberhuber's avatar Tomáš Oberhuber
Browse files

Restored method sopyFromHostToCuda in Matrix.

parent f4144f9c
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -140,6 +140,19 @@ bool Matrix< Real, Device, Index >::operator != ( const MatrixT& matrix ) const
   return ! operator == ( matrix );
}

template< typename Real,
          typename Device,
          typename Index >
void
Matrix< Real, Device, Index >::
copyFromHostToCuda( Matrix< Real, Devices::Host, Index >& matrix )
{
    this->numberOfColors = matrix.getNumberOfColors();
    this->columns = matrix.getColumns();
    this->rows = matrix.getRows();

    this->values.setSize( matrix.getValuesSize() );
}

template< typename Real,
          typename Device,