Esempio n. 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);
 }
Esempio n. 2
0
 void norm_2_cpu(viennacl::vector_expression<LHS, RHS, OP> const & vec,
                 S2 & result)
 {
   viennacl::vector<typename viennacl::result_of::cpu_value_type<LHS>::type> temp = vec;
   norm_2_cpu(temp, result);
 }