Пример #1
0
 void norm_frobenius_cpu(matrix_base<T> const & A,
                          T & result)
 {
   typedef typename matrix_base<T>::handle_type  HandleType;
   viennacl::vector_base<T> temp(const_cast<HandleType &>(A.handle()), A.internal_size(), 0, 1);
   norm_2_cpu(temp, result);
 }
Пример #2
0
bool op_aliasing(matrix_base<NumericT> const & lhs, matrix_base<NumericT> const & b)
{
  return lhs.handle() == b.handle();
}