Reference documentation for deal.II version Git 4e68a80cad 2021-10-22 15:50:12 -0600
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Static Public Member Functions | Static Public Attributes | List of all members
internal::VectorOperations::functions< Number, Number, ::MemorySpace::CUDA > Struct Template Reference

#include <deal.II/lac/vector_operations_internal.h>

Static Public Member Functions

static void copy (const std::shared_ptr<::parallel::internal::TBBPartitioner > &, const size_type size, const ::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &v_data, ::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &data)
 
static void set (const std::shared_ptr<::parallel::internal::TBBPartitioner > &, const size_type size, const Number s, ::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &data)
 
static void add_vector (const std::shared_ptr<::parallel::internal::TBBPartitioner > &, const size_type size, const ::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &v_data, ::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &data)
 
static void subtract_vector (const std::shared_ptr<::parallel::internal::TBBPartitioner > &, const size_type size, const ::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &v_data, ::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &data)
 
static void add_factor (const std::shared_ptr<::parallel::internal::TBBPartitioner > &, const size_type size, Number a, ::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &data)
 
static void add_av (const std::shared_ptr<::parallel::internal::TBBPartitioner > &, const size_type size, const Number a, const ::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &v_data, ::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &data)
 
static void add_avpbw (const std::shared_ptr<::parallel::internal::TBBPartitioner > &, const size_type size, const Number a, const Number b, const ::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &v_data, const ::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &w_data, ::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &data)
 
static void sadd_xv (const std::shared_ptr<::parallel::internal::TBBPartitioner > &, const size_type size, const Number x, const ::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &v_data, ::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &data)
 
static void sadd_xav (const std::shared_ptr<::parallel::internal::TBBPartitioner > &, const size_type size, const Number x, const Number a, const ::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &v_data, ::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &data)
 
static void sadd_xavbw (const std::shared_ptr<::parallel::internal::TBBPartitioner > &, const size_type size, const Number x, const Number a, const Number b, const ::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &v_data, const ::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &w_data, ::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &data)
 
static void multiply_factor (const std::shared_ptr<::parallel::internal::TBBPartitioner > &, const size_type size, const Number factor, ::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &data)
 
static void scale (const std::shared_ptr<::parallel::internal::TBBPartitioner > &, const size_type size, const ::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &v_data, ::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &data)
 
static void equ_au (const std::shared_ptr<::parallel::internal::TBBPartitioner > &, const size_type size, const Number a, const ::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &v_data, ::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &data)
 
static void equ_aubv (const std::shared_ptr<::parallel::internal::TBBPartitioner > &, const size_type size, const Number a, const Number b, const ::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &v_data, const ::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &w_data, ::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &data)
 
static Number dot (const std::shared_ptr<::parallel::internal::TBBPartitioner > &, const size_type size, const ::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &v_data, ::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &data)
 
template<typename real_type >
static void norm_2 (const std::shared_ptr<::parallel::internal::TBBPartitioner > &thread_loop_partitioner, const size_type size, real_type &sum, ::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &data)
 
static Number mean_value (const std::shared_ptr<::parallel::internal::TBBPartitioner > &, const size_type size, const ::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &data)
 
template<typename real_type >
static void norm_1 (const std::shared_ptr<::parallel::internal::TBBPartitioner > &, const size_type size, real_type &sum, ::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &data)
 
template<typename real_type >
static void norm_p (const std::shared_ptr<::parallel::internal::TBBPartitioner > &, const size_type, real_type &, real_type, ::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &)
 
static Number add_and_dot (const std::shared_ptr<::parallel::internal::TBBPartitioner > &, const size_type size, const Number a, const ::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &v_data, const ::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &w_data, ::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &data)
 
template<typename MemorySpace2 >
static void import_elements (const std::shared_ptr<::parallel::internal::TBBPartitioner > &thread_loop_partitioner, const size_type size, VectorOperation::values operation, const ::MemorySpace::MemorySpaceData< Number, MemorySpace2 > &v_data, ::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &data, typename std::enable_if< std::is_same< MemorySpace2, ::MemorySpace::CUDA >::value, int >::type=0)
 
template<typename MemorySpace2 >
static void import_elements (const std::shared_ptr<::parallel::internal::TBBPartitioner > &, const size_type size, VectorOperation::values operation, const ::MemorySpace::MemorySpaceData< Number, MemorySpace2 > &v_data, ::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &data, typename std::enable_if< std::is_same< MemorySpace2, ::MemorySpace::Host >::value, int >::type=0)
 

Static Public Attributes

static const int block_size
 
static const int chunk_size
 

Detailed Description

template<typename Number>
struct internal::VectorOperations::functions< Number, Number, ::MemorySpace::CUDA >

Definition at line 2064 of file vector_operations_internal.h.

Member Function Documentation

◆ copy()

template<typename Number >
static void internal::VectorOperations::functions< Number, Number, ::MemorySpace::CUDA >::copy ( const std::shared_ptr<::parallel::internal::TBBPartitioner > &  ,
const size_type  size,
const ::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &  v_data,
::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &  data 
)
inlinestatic

Definition at line 2072 of file vector_operations_internal.h.

◆ set()

template<typename Number >
static void internal::VectorOperations::functions< Number, Number, ::MemorySpace::CUDA >::set ( const std::shared_ptr<::parallel::internal::TBBPartitioner > &  ,
const size_type  size,
const Number  s,
::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &  data 
)
inlinestatic

Definition at line 2089 of file vector_operations_internal.h.

◆ add_vector()

template<typename Number >
static void internal::VectorOperations::functions< Number, Number, ::MemorySpace::CUDA >::add_vector ( const std::shared_ptr<::parallel::internal::TBBPartitioner > &  ,
const size_type  size,
const ::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &  v_data,
::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &  data 
)
inlinestatic

Definition at line 2103 of file vector_operations_internal.h.

◆ subtract_vector()

template<typename Number >
static void internal::VectorOperations::functions< Number, Number, ::MemorySpace::CUDA >::subtract_vector ( const std::shared_ptr<::parallel::internal::TBBPartitioner > &  ,
const size_type  size,
const ::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &  v_data,
::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &  data 
)
inlinestatic

Definition at line 2122 of file vector_operations_internal.h.

◆ add_factor()

template<typename Number >
static void internal::VectorOperations::functions< Number, Number, ::MemorySpace::CUDA >::add_factor ( const std::shared_ptr<::parallel::internal::TBBPartitioner > &  ,
const size_type  size,
Number  a,
::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &  data 
)
inlinestatic

Definition at line 2141 of file vector_operations_internal.h.

◆ add_av()

template<typename Number >
static void internal::VectorOperations::functions< Number, Number, ::MemorySpace::CUDA >::add_av ( const std::shared_ptr<::parallel::internal::TBBPartitioner > &  ,
const size_type  size,
const Number  a,
const ::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &  v_data,
::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &  data 
)
inlinestatic

Definition at line 2156 of file vector_operations_internal.h.

◆ add_avpbw()

template<typename Number >
static void internal::VectorOperations::functions< Number, Number, ::MemorySpace::CUDA >::add_avpbw ( const std::shared_ptr<::parallel::internal::TBBPartitioner > &  ,
const size_type  size,
const Number  a,
const Number  b,
const ::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &  v_data,
const ::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &  w_data,
::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &  data 
)
inlinestatic

Definition at line 2176 of file vector_operations_internal.h.

◆ sadd_xv()

template<typename Number >
static void internal::VectorOperations::functions< Number, Number, ::MemorySpace::CUDA >::sadd_xv ( const std::shared_ptr<::parallel::internal::TBBPartitioner > &  ,
const size_type  size,
const Number  x,
const ::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &  v_data,
::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &  data 
)
inlinestatic

Definition at line 2201 of file vector_operations_internal.h.

◆ sadd_xav()

template<typename Number >
static void internal::VectorOperations::functions< Number, Number, ::MemorySpace::CUDA >::sadd_xav ( const std::shared_ptr<::parallel::internal::TBBPartitioner > &  ,
const size_type  size,
const Number  x,
const Number  a,
const ::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &  v_data,
::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &  data 
)
inlinestatic

Definition at line 2219 of file vector_operations_internal.h.

◆ sadd_xavbw()

template<typename Number >
static void internal::VectorOperations::functions< Number, Number, ::MemorySpace::CUDA >::sadd_xavbw ( const std::shared_ptr<::parallel::internal::TBBPartitioner > &  ,
const size_type  size,
const Number  x,
const Number  a,
const Number  b,
const ::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &  v_data,
const ::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &  w_data,
::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &  data 
)
inlinestatic

Definition at line 2238 of file vector_operations_internal.h.

◆ multiply_factor()

template<typename Number >
static void internal::VectorOperations::functions< Number, Number, ::MemorySpace::CUDA >::multiply_factor ( const std::shared_ptr<::parallel::internal::TBBPartitioner > &  ,
const size_type  size,
const Number  factor,
::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &  data 
)
inlinestatic

Definition at line 2265 of file vector_operations_internal.h.

◆ scale()

template<typename Number >
static void internal::VectorOperations::functions< Number, Number, ::MemorySpace::CUDA >::scale ( const std::shared_ptr<::parallel::internal::TBBPartitioner > &  ,
const size_type  size,
const ::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &  v_data,
::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &  data 
)
inlinestatic

Definition at line 2280 of file vector_operations_internal.h.

◆ equ_au()

template<typename Number >
static void internal::VectorOperations::functions< Number, Number, ::MemorySpace::CUDA >::equ_au ( const std::shared_ptr<::parallel::internal::TBBPartitioner > &  ,
const size_type  size,
const Number  a,
const ::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &  v_data,
::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &  data 
)
inlinestatic

Definition at line 2298 of file vector_operations_internal.h.

◆ equ_aubv()

template<typename Number >
static void internal::VectorOperations::functions< Number, Number, ::MemorySpace::CUDA >::equ_aubv ( const std::shared_ptr<::parallel::internal::TBBPartitioner > &  ,
const size_type  size,
const Number  a,
const Number  b,
const ::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &  v_data,
const ::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &  w_data,
::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &  data 
)
inlinestatic

Definition at line 2318 of file vector_operations_internal.h.

◆ dot()

template<typename Number >
static Number internal::VectorOperations::functions< Number, Number, ::MemorySpace::CUDA >::dot ( const std::shared_ptr<::parallel::internal::TBBPartitioner > &  ,
const size_type  size,
const ::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &  v_data,
::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &  data 
)
inlinestatic

Definition at line 2343 of file vector_operations_internal.h.

◆ norm_2()

template<typename Number >
template<typename real_type >
static void internal::VectorOperations::functions< Number, Number, ::MemorySpace::CUDA >::norm_2 ( const std::shared_ptr<::parallel::internal::TBBPartitioner > &  thread_loop_partitioner,
const size_type  size,
real_type &  sum,
::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &  data 
)
inlinestatic

Definition at line 2386 of file vector_operations_internal.h.

◆ mean_value()

template<typename Number >
static Number internal::VectorOperations::functions< Number, Number, ::MemorySpace::CUDA >::mean_value ( const std::shared_ptr<::parallel::internal::TBBPartitioner > &  ,
const size_type  size,
const ::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &  data 
)
inlinestatic

Definition at line 2398 of file vector_operations_internal.h.

◆ norm_1()

template<typename Number >
template<typename real_type >
static void internal::VectorOperations::functions< Number, Number, ::MemorySpace::CUDA >::norm_1 ( const std::shared_ptr<::parallel::internal::TBBPartitioner > &  ,
const size_type  size,
real_type &  sum,
::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &  data 
)
inlinestatic

Definition at line 2433 of file vector_operations_internal.h.

◆ norm_p()

template<typename Number >
template<typename real_type >
static void internal::VectorOperations::functions< Number, Number, ::MemorySpace::CUDA >::norm_p ( const std::shared_ptr<::parallel::internal::TBBPartitioner > &  ,
const size_type  ,
real_type &  ,
real_type  ,
::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &   
)
inlinestatic

Definition at line 2467 of file vector_operations_internal.h.

◆ add_and_dot()

template<typename Number >
static Number internal::VectorOperations::functions< Number, Number, ::MemorySpace::CUDA >::add_and_dot ( const std::shared_ptr<::parallel::internal::TBBPartitioner > &  ,
const size_type  size,
const Number  a,
const ::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &  v_data,
const ::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &  w_data,
::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &  data 
)
inlinestatic

Definition at line 2479 of file vector_operations_internal.h.

◆ import_elements() [1/2]

template<typename Number >
template<typename MemorySpace2 >
static void internal::VectorOperations::functions< Number, Number, ::MemorySpace::CUDA >::import_elements ( const std::shared_ptr<::parallel::internal::TBBPartitioner > &  thread_loop_partitioner,
const size_type  size,
VectorOperation::values  operation,
const ::MemorySpace::MemorySpaceData< Number, MemorySpace2 > &  v_data,
::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &  data,
typename std::enable_if< std::is_same< MemorySpace2, ::MemorySpace::CUDA >::value, int >::type  = 0 
)
inlinestatic

Definition at line 2517 of file vector_operations_internal.h.

◆ import_elements() [2/2]

template<typename Number >
template<typename MemorySpace2 >
static void internal::VectorOperations::functions< Number, Number, ::MemorySpace::CUDA >::import_elements ( const std::shared_ptr<::parallel::internal::TBBPartitioner > &  ,
const size_type  size,
VectorOperation::values  operation,
const ::MemorySpace::MemorySpaceData< Number, MemorySpace2 > &  v_data,
::MemorySpace::MemorySpaceData< Number, ::MemorySpace::CUDA > &  data,
typename std::enable_if< std::is_same< MemorySpace2, ::MemorySpace::Host >::value, int >::type  = 0 
)
inlinestatic

Definition at line 2547 of file vector_operations_internal.h.

Member Data Documentation

◆ block_size

template<typename Number >
const int internal::VectorOperations::functions< Number, Number, ::MemorySpace::CUDA >::block_size
static

◆ chunk_size

template<typename Number >
const int internal::VectorOperations::functions< Number, Number, ::MemorySpace::CUDA >::chunk_size
static

The documentation for this struct was generated from the following file: