monolish  0.17.3-dev.16
MONOlithic LInear equation Solvers for Highly-parallel architecture
Public Member Functions | Private Attributes | List of all members
monolish::view_Dense< TYPE, Float > Class Template Reference

Dense view class. More...

#include <monolish_view_dense.hpp>

Collaboration diagram for monolish::view_Dense< TYPE, Float >:
Collaboration graph

Public Member Functions

Float at (const size_t i)
 get element A[i/col][icol] (only CPU) More...
 
Float at (const size_t i) const
 get element A[i/col][jcol] More...
 
Float at (const size_t i, const size_t j)
 get element A[i][j] (only CPU) More...
 
Float at (const size_t i, const size_t j) const
 get element A[i][j] More...
 
Float * begin ()
 returns begin iterator (include offset) More...
 
Float * begin () const
 returns begin iterator (include offset) More...
 
Float * data ()
 returns a direct pointer to the vector (dont include offset) More...
 
Float * data () const
 returns a direct pointer to the original vector (dont include offset) More...
 
void diag_add (const Float alpha)
 Scalar and diag. vector of Dense format matrix add. More...
 
void diag_add (const vector< Float > &vec)
 Vector and diag. vector of Dense format matrix add. More...
 
void diag_add (const view1D< matrix::Dense< Float >, Float > &vec)
 
void diag_add (const view1D< tensor::tensor_Dense< Float >, Float > &vec)
 
void diag_add (const view1D< vector< Float >, Float > &vec)
 
void diag_div (const Float alpha)
 Scalar and diag. vector of Dense format matrix div. More...
 
void diag_div (const vector< Float > &vec)
 Vector and diag. vector of Dense format matrix div. More...
 
void diag_div (const view1D< matrix::Dense< Float >, Float > &vec)
 
void diag_div (const view1D< tensor::tensor_Dense< Float >, Float > &vec)
 
void diag_div (const view1D< vector< Float >, Float > &vec)
 
void diag_mul (const Float alpha)
 Scalar and diag. vector of Dense format matrix mul. More...
 
void diag_mul (const vector< Float > &vec)
 Vector and diag. vector of Dense format matrix mul. More...
 
void diag_mul (const view1D< matrix::Dense< Float >, Float > &vec)
 
void diag_mul (const view1D< tensor::tensor_Dense< Float >, Float > &vec)
 
void diag_mul (const view1D< vector< Float >, Float > &vec)
 
void diag_sub (const Float alpha)
 Scalar and diag. vector of Dense format matrix sub. More...
 
void diag_sub (const vector< Float > &vec)
 Vector and diag. vector of Dense format matrix sub. More...
 
void diag_sub (const view1D< matrix::Dense< Float >, Float > &vec)
 
void diag_sub (const view1D< tensor::tensor_Dense< Float >, Float > &vec)
 
void diag_sub (const view1D< vector< Float >, Float > &vec)
 
Float * end ()
 returns a end iterator More...
 
Float * end () const
 returns a end iterator More...
 
void fill (Float value)
 fill vector elements with a scalar value More...
 
size_t get_alloc_nnz () const
 get # of alloced non-zeros More...
 
size_t get_col () const
 get # of col More...
 
size_t get_device_mem_stat () const
 true: sended, false: not send More...
 
size_t get_first () const
 get first position More...
 
size_t get_last () const
 get end position More...
 
size_t get_nnz () const
 get view_Dense size (same as size()) More...
 
size_t get_offset () const
 get first position (same as get_first()) More...
 
size_t get_row () const
 get # of row More...
 
TYPE & get_target ()
 returns a reference of the target More...
 
TYPE & get_target () const
 returns a reference of the target More...
 
std::shared_ptr< Float > get_val () const
 
void insert (const size_t i, const Float Val)
 set element A[i/col][jcol] More...
 
void insert (const size_t i, const size_t j, const Float Val)
 set element A[i][j] More...
 
void move (const view_tensor_Dense< TYPE, Float > &view_tensor_dense)
 
void move (const view_tensor_Dense< TYPE, Float > &view_tensor_dense, int rowN, int colN)
 
void operator= (const matrix::Dense< Float > &mat)
 matrix copy More...
 
void operator= (const view_Dense< matrix::Dense< Float >, Float > &mat)
 matrix copy More...
 
void operator= (const view_Dense< tensor::tensor_Dense< Float >, Float > &mat)
 matrix copy More...
 
void operator= (const view_Dense< vector< Float >, Float > &mat)
 matrix copy More...
 
Float & operator[] (const size_t i)
 reference to the element at position More...
 
void print_all (bool force_cpu=false) const
 print all elements to standart I/O More...
 
void recv ()
 recv data from GPU, and free data on GPU More...
 
void resize (size_t row, size_t col)
 change last postion More...
 
void send () const
 send data to GPU More...
 
void set_first (size_t i)
 change first position More...
 
void set_last (size_t i)
 change last position More...
 
size_t size () const
 get view_Dense size (range) More...
 
std::string type () const
 get format name "view_Dense" More...
 
 view_Dense (matrix::Dense< Float > &A, const size_t start, const size_t row, const size_t col)
 create view_Dense from Dense matrix(start:start+range) More...
 
 view_Dense (tensor::tensor_Dense< Float > &A, const size_t start, const size_t row, const size_t col)
 create view_Dense from Dense tensor(start:start+range) More...
 
 view_Dense (vector< Float > &x, const size_t start, const size_t row, const size_t col)
 create view_Dense from vector(start:start+range) More...
 
 view_Dense (view_Dense< matrix::Dense< Float >, Float > &x, const size_t start, const size_t row, const size_t col)
 create view_Dense from monolish::matrix::Dense(start:start+range) More...
 
 view_Dense (view_Dense< tensor::tensor_Dense< Float >, Float > &x, const size_t start, const size_t row, const size_t col)
 create view_Dense from monolish::tensor::tensor_Dense(start:start+range) More...
 
 view_Dense (view_Dense< vector< Float >, Float > &x, const size_t start, const size_t row, const size_t col)
 create view_Dense from monolish::vector(start:start+range) More...
 

Private Attributes

size_t colN
 
size_t first
 
size_t last
 
size_t range
 
size_t rowN
 
TYPE & target
 
Float * target_data
 

Detailed Description

template<typename TYPE, typename Float>
class monolish::view_Dense< TYPE, Float >

Dense view class.

Note
  • Multi-threading: true
  • GPU acceleration: true

Definition at line 50 of file monolish_view_dense.hpp.

Constructor & Destructor Documentation

◆ view_Dense() [1/6]

template<typename TYPE , typename Float >
monolish::view_Dense< TYPE, Float >::view_Dense ( vector< Float > &  x,
const size_t  start,
const size_t  row,
const size_t  col 
)
inline

create view_Dense from vector(start:start+range)

Parameters
xvector
startstart position
row# of row
col# of col
Note
  • # of computation: 1
  • Multi-threading: false
  • GPU acceleration: false

Definition at line 73 of file monolish_view_dense.hpp.

Here is the call graph for this function:

◆ view_Dense() [2/6]

template<typename TYPE , typename Float >
monolish::view_Dense< TYPE, Float >::view_Dense ( matrix::Dense< Float > &  A,
const size_t  start,
const size_t  row,
const size_t  col 
)
inline

create view_Dense from Dense matrix(start:start+range)

Parameters
ADense matrix
startstart position
row# of row
col# of col
Note
  • # of computation: 1
  • Multi-threading: false
  • GPU acceleration: false

Definition at line 95 of file monolish_view_dense.hpp.

Here is the call graph for this function:

◆ view_Dense() [3/6]

template<typename TYPE , typename Float >
monolish::view_Dense< TYPE, Float >::view_Dense ( tensor::tensor_Dense< Float > &  A,
const size_t  start,
const size_t  row,
const size_t  col 
)
inline

create view_Dense from Dense tensor(start:start+range)

Parameters
ADense matrix
startstart position
row# of row
col# of col
Note
  • # of computation: 1
  • Multi-threading: false
  • GPU acceleration: false

Definition at line 117 of file monolish_view_dense.hpp.

Here is the call graph for this function:

◆ view_Dense() [4/6]

template<typename TYPE , typename Float >
monolish::view_Dense< TYPE, Float >::view_Dense ( view_Dense< vector< Float >, Float > &  x,
const size_t  start,
const size_t  row,
const size_t  col 
)
inline

create view_Dense from monolish::vector(start:start+range)

Parameters
xview_Dense create from monolish::vector
startstart position (x.first + start)
row# of row
col# of col
Note
  • # of computation: 1
  • Multi-threading: false
  • GPU acceleration: false

Definition at line 139 of file monolish_view_dense.hpp.

◆ view_Dense() [5/6]

template<typename TYPE , typename Float >
monolish::view_Dense< TYPE, Float >::view_Dense ( view_Dense< matrix::Dense< Float >, Float > &  x,
const size_t  start,
const size_t  row,
const size_t  col 
)
inline

create view_Dense from monolish::matrix::Dense(start:start+range)

Parameters
xview_Dense create from monolish::matrix::Dense
startstart position (x.first + start)
row# of row
col# of col
Note
  • # of computation: 1
  • Multi-threading: false
  • GPU acceleration: false

Definition at line 161 of file monolish_view_dense.hpp.

◆ view_Dense() [6/6]

template<typename TYPE , typename Float >
monolish::view_Dense< TYPE, Float >::view_Dense ( view_Dense< tensor::tensor_Dense< Float >, Float > &  x,
const size_t  start,
const size_t  row,
const size_t  col 
)
inline

create view_Dense from monolish::tensor::tensor_Dense(start:start+range)

Parameters
xview_Dense create from monolish::tensor::tensor_Dense
startstart position (x.first + start)
row# of row
col# of col
Note
  • # of computation: 1
  • Multi-threading: false
  • GPU acceleration: false

Definition at line 184 of file monolish_view_dense.hpp.

Member Function Documentation

◆ at() [1/4]

template<typename TYPE , typename Float >
Float monolish::view_Dense< TYPE, Float >::at ( const size_t  i)
inline

get element A[i/col][icol] (only CPU)

Parameters
iindex
Returns
A[i/col][icol]
Note
  • # of computation: 1
  • Multi-threading: false
  • GPU acceleration: false

Definition at line 346 of file monolish_view_dense.hpp.

Here is the call graph for this function:

◆ at() [2/4]

template<typename TYPE , typename Float >
Float monolish::view_Dense< TYPE, Float >::at ( const size_t  i) const
inline

get element A[i/col][jcol]

Parameters
iindex
Returns
A[i/col][jcol]
Note
  • # of computation: 1
  • Multi-threading: false
  • GPU acceleration: false

Definition at line 321 of file monolish_view_dense.hpp.

Here is the caller graph for this function:

◆ at() [3/4]

template<typename TYPE , typename Float >
Float monolish::view_Dense< TYPE, Float >::at ( const size_t  i,
const size_t  j 
)
inline

get element A[i][j] (only CPU)

Parameters
irow
jcol
Returns
A[i][j]
Note
  • # of computation: 1
  • Multi-threading: false
  • GPU acceleration: false

Definition at line 360 of file monolish_view_dense.hpp.

Here is the call graph for this function:

◆ at() [4/4]

template<typename TYPE , typename Float >
Float monolish::view_Dense< TYPE, Float >::at ( const size_t  i,
const size_t  j 
) const
inline

get element A[i][j]

Parameters
irow
jcol
Returns
A[i][j]
Note
  • # of computation: 1
  • Multi-threading: false
  • GPU acceleration: false

Definition at line 333 of file monolish_view_dense.hpp.

Here is the call graph for this function:

◆ begin() [1/2]

template<typename TYPE , typename Float >
Float* monolish::view_Dense< TYPE, Float >::begin ( )
inline

returns begin iterator (include offset)

Returns
A pointer to the first element
Note
  • # of computation: 1

Definition at line 452 of file monolish_view_dense.hpp.

Here is the call graph for this function:

◆ begin() [2/2]

template<typename TYPE , typename Float >
Float* monolish::view_Dense< TYPE, Float >::begin ( ) const
inline

returns begin iterator (include offset)

Returns
A pointer to the first element
Note
  • # of computation: 1

Definition at line 444 of file monolish_view_dense.hpp.

Here is the call graph for this function:

◆ data() [1/2]

template<typename TYPE , typename Float >
Float* monolish::view_Dense< TYPE, Float >::data ( )
inline

returns a direct pointer to the vector (dont include offset)

Returns
A pointer to the first element
Note
  • # of computation: 1

Definition at line 420 of file monolish_view_dense.hpp.

◆ data() [2/2]

template<typename TYPE , typename Float >
Float* monolish::view_Dense< TYPE, Float >::data ( ) const
inline

returns a direct pointer to the original vector (dont include offset)

Returns
A pointer to the first element
Note
  • # of computation: 1

Definition at line 412 of file monolish_view_dense.hpp.

◆ diag_add() [1/5]

template<typename TYPE , typename Float >
void monolish::view_Dense< TYPE, Float >::diag_add ( const Float  alpha)

Scalar and diag. vector of Dense format matrix add.

Parameters
alphascalar
Note
  • # of computation: M
  • Multi-threading: true
  • GPU acceleration: true

◆ diag_add() [2/5]

template<typename TYPE , typename Float >
void monolish::view_Dense< TYPE, Float >::diag_add ( const vector< Float > &  vec)

Vector and diag. vector of Dense format matrix add.

Parameters
vecvector
Note
  • # of computation: M
  • Multi-threading: true
  • GPU acceleration: true

◆ diag_add() [3/5]

template<typename TYPE , typename Float >
void monolish::view_Dense< TYPE, Float >::diag_add ( const view1D< matrix::Dense< Float >, Float > &  vec)

◆ diag_add() [4/5]

template<typename TYPE , typename Float >
void monolish::view_Dense< TYPE, Float >::diag_add ( const view1D< tensor::tensor_Dense< Float >, Float > &  vec)

◆ diag_add() [5/5]

template<typename TYPE , typename Float >
void monolish::view_Dense< TYPE, Float >::diag_add ( const view1D< vector< Float >, Float > &  vec)

◆ diag_div() [1/5]

template<typename TYPE , typename Float >
void monolish::view_Dense< TYPE, Float >::diag_div ( const Float  alpha)

Scalar and diag. vector of Dense format matrix div.

Parameters
alphascalar
Note
  • # of computation: M
  • Multi-threading: true
  • GPU acceleration: true

◆ diag_div() [2/5]

template<typename TYPE , typename Float >
void monolish::view_Dense< TYPE, Float >::diag_div ( const vector< Float > &  vec)

Vector and diag. vector of Dense format matrix div.

Parameters
vecvector
Note
  • # of computation: M
  • Multi-threading: true
  • GPU acceleration: true

◆ diag_div() [3/5]

template<typename TYPE , typename Float >
void monolish::view_Dense< TYPE, Float >::diag_div ( const view1D< matrix::Dense< Float >, Float > &  vec)

◆ diag_div() [4/5]

template<typename TYPE , typename Float >
void monolish::view_Dense< TYPE, Float >::diag_div ( const view1D< tensor::tensor_Dense< Float >, Float > &  vec)

◆ diag_div() [5/5]

template<typename TYPE , typename Float >
void monolish::view_Dense< TYPE, Float >::diag_div ( const view1D< vector< Float >, Float > &  vec)

◆ diag_mul() [1/5]

template<typename TYPE , typename Float >
void monolish::view_Dense< TYPE, Float >::diag_mul ( const Float  alpha)

Scalar and diag. vector of Dense format matrix mul.

Parameters
alphascalar
Note
  • # of computation: M
  • Multi-threading: true
  • GPU acceleration: true

◆ diag_mul() [2/5]

template<typename TYPE , typename Float >
void monolish::view_Dense< TYPE, Float >::diag_mul ( const vector< Float > &  vec)

Vector and diag. vector of Dense format matrix mul.

Parameters
vecvector
Note
  • # of computation: M
  • Multi-threading: true
  • GPU acceleration: true

◆ diag_mul() [3/5]

template<typename TYPE , typename Float >
void monolish::view_Dense< TYPE, Float >::diag_mul ( const view1D< matrix::Dense< Float >, Float > &  vec)

◆ diag_mul() [4/5]

template<typename TYPE , typename Float >
void monolish::view_Dense< TYPE, Float >::diag_mul ( const view1D< tensor::tensor_Dense< Float >, Float > &  vec)

◆ diag_mul() [5/5]

template<typename TYPE , typename Float >
void monolish::view_Dense< TYPE, Float >::diag_mul ( const view1D< vector< Float >, Float > &  vec)

◆ diag_sub() [1/5]

template<typename TYPE , typename Float >
void monolish::view_Dense< TYPE, Float >::diag_sub ( const Float  alpha)

Scalar and diag. vector of Dense format matrix sub.

Parameters
alphascalar
Note
  • # of computation: M
  • Multi-threading: true
  • GPU acceleration: true

◆ diag_sub() [2/5]

template<typename TYPE , typename Float >
void monolish::view_Dense< TYPE, Float >::diag_sub ( const vector< Float > &  vec)

Vector and diag. vector of Dense format matrix sub.

Parameters
vecvector
Note
  • # of computation: M
  • Multi-threading: true
  • GPU acceleration: true

◆ diag_sub() [3/5]

template<typename TYPE , typename Float >
void monolish::view_Dense< TYPE, Float >::diag_sub ( const view1D< matrix::Dense< Float >, Float > &  vec)

◆ diag_sub() [4/5]

template<typename TYPE , typename Float >
void monolish::view_Dense< TYPE, Float >::diag_sub ( const view1D< tensor::tensor_Dense< Float >, Float > &  vec)

◆ diag_sub() [5/5]

template<typename TYPE , typename Float >
void monolish::view_Dense< TYPE, Float >::diag_sub ( const view1D< vector< Float >, Float > &  vec)

◆ end() [1/2]

template<typename TYPE , typename Float >
Float* monolish::view_Dense< TYPE, Float >::end ( )
inline

returns a end iterator

Returns
end iterator
Note
  • # of computation: 1

Definition at line 468 of file monolish_view_dense.hpp.

◆ end() [2/2]

template<typename TYPE , typename Float >
Float* monolish::view_Dense< TYPE, Float >::end ( ) const
inline

returns a end iterator

Returns
end iterator
Note
  • # of computation: 1

Definition at line 460 of file monolish_view_dense.hpp.

◆ fill()

template<typename TYPE , typename Float >
void monolish::view_Dense< TYPE, Float >::fill ( Float  value)

fill vector elements with a scalar value

Parameters
valuescalar value
Note
  • # of computation: N
  • Multi-threading: true
  • GPU acceleration: true

◆ get_alloc_nnz()

template<typename TYPE , typename Float >
size_t monolish::view_Dense< TYPE, Float >::get_alloc_nnz ( ) const
inline

get # of alloced non-zeros

Note
  • # of computation: 1
  • Multi-threading: false
  • GPU acceleration: false

Definition at line 256 of file monolish_view_dense.hpp.

◆ get_col()

template<typename TYPE , typename Float >
size_t monolish::view_Dense< TYPE, Float >::get_col ( ) const
inline

get # of col

Note
  • # of computation: 1
  • Multi-threading: false
  • GPU acceleration: false

Definition at line 231 of file monolish_view_dense.hpp.

Here is the caller graph for this function:

◆ get_device_mem_stat()

template<typename TYPE , typename Float >
size_t monolish::view_Dense< TYPE, Float >::get_device_mem_stat ( ) const
inline

true: sended, false: not send

Returns
gpu status
Note
  • # of data transfer: 0
  • Multi-threading: false
  • GPU acceleration: true

Definition at line 401 of file monolish_view_dense.hpp.

◆ get_first()

template<typename TYPE , typename Float >
size_t monolish::view_Dense< TYPE, Float >::get_first ( ) const
inline

get first position

Returns
first position
Note
  • # of computation: 1

Definition at line 264 of file monolish_view_dense.hpp.

◆ get_last()

template<typename TYPE , typename Float >
size_t monolish::view_Dense< TYPE, Float >::get_last ( ) const
inline

get end position

Returns
end position
Note
  • # of computation: 1

Definition at line 272 of file monolish_view_dense.hpp.

◆ get_nnz()

template<typename TYPE , typename Float >
size_t monolish::view_Dense< TYPE, Float >::get_nnz ( ) const
inline

get view_Dense size (same as size())

Returns
view_Dense size
Note
  • # of computation: 1

Definition at line 247 of file monolish_view_dense.hpp.

◆ get_offset()

template<typename TYPE , typename Float >
size_t monolish::view_Dense< TYPE, Float >::get_offset ( ) const
inline

get first position (same as get_first())

Returns
first position
Note
  • # of computation: 1

Definition at line 280 of file monolish_view_dense.hpp.

Here is the caller graph for this function:

◆ get_row()

template<typename TYPE , typename Float >
size_t monolish::view_Dense< TYPE, Float >::get_row ( ) const
inline

get # of row

Note
  • # of computation: 1
  • Multi-threading: false
  • GPU acceleration: false

Definition at line 222 of file monolish_view_dense.hpp.

◆ get_target() [1/2]

template<typename TYPE , typename Float >
TYPE& monolish::view_Dense< TYPE, Float >::get_target ( )
inline

returns a reference of the target

Returns
target
Note
  • # of computation: 1

Definition at line 436 of file monolish_view_dense.hpp.

◆ get_target() [2/2]

template<typename TYPE , typename Float >
TYPE& monolish::view_Dense< TYPE, Float >::get_target ( ) const
inline

returns a reference of the target

Returns
target
Note
  • # of computation: 1

Definition at line 428 of file monolish_view_dense.hpp.

◆ get_val()

template<typename TYPE , typename Float >
std::shared_ptr<Float> monolish::view_Dense< TYPE, Float >::get_val ( ) const
inline

Definition at line 282 of file monolish_view_dense.hpp.

◆ insert() [1/2]

template<typename TYPE , typename Float >
void monolish::view_Dense< TYPE, Float >::insert ( const size_t  i,
const Float  Val 
)
inline

set element A[i/col][jcol]

Parameters
iindex
Valscalar value
Note
  • # of computation: 1
  • Multi-threading: false
  • GPU acceleration: false

Definition at line 373 of file monolish_view_dense.hpp.

◆ insert() [2/2]

template<typename TYPE , typename Float >
void monolish::view_Dense< TYPE, Float >::insert ( const size_t  i,
const size_t  j,
const Float  Val 
)
inline

set element A[i][j]

Parameters
irow
jcol
Valscalar value
Note
  • # of computation: 1
  • Multi-threading: false
  • GPU acceleration: false

Definition at line 388 of file monolish_view_dense.hpp.

Here is the call graph for this function:

◆ move() [1/2]

template<typename TYPE , typename Float >
void monolish::view_Dense< TYPE, Float >::move ( const view_tensor_Dense< TYPE, Float > &  view_tensor_dense)

◆ move() [2/2]

template<typename TYPE , typename Float >
void monolish::view_Dense< TYPE, Float >::move ( const view_tensor_Dense< TYPE, Float > &  view_tensor_dense,
int  rowN,
int  colN 
)

◆ operator=() [1/4]

template<typename TYPE , typename Float >
void monolish::view_Dense< TYPE, Float >::operator= ( const matrix::Dense< Float > &  mat)

matrix copy

Parameters
matDense matrix
Returns
copied dense matrix
Note
  • # of computation: M*N
  • Multi-threading: true
  • GPU acceleration: true
    • # of data transfer: 0
      • if gpu_statius == true; coping data on CPU
      • else; coping data on CPU

◆ operator=() [2/4]

template<typename TYPE , typename Float >
void monolish::view_Dense< TYPE, Float >::operator= ( const view_Dense< matrix::Dense< Float >, Float > &  mat)

matrix copy

Parameters
matDense matrix
Returns
copied dense matrix
Note
  • # of computation: M*N
  • Multi-threading: true
  • GPU acceleration: true
    • # of data transfer: 0
      • if gpu_statius == true; coping data on CPU
      • else; coping data on CPU

◆ operator=() [3/4]

template<typename TYPE , typename Float >
void monolish::view_Dense< TYPE, Float >::operator= ( const view_Dense< tensor::tensor_Dense< Float >, Float > &  mat)

matrix copy

Parameters
matDense matrix
Returns
copied dense matrix
Note
  • # of computation: M*N
  • Multi-threading: true
  • GPU acceleration: true
    • # of data transfer: 0
      • if gpu_statius == true; coping data on CPU
      • else; coping data on CPU

◆ operator=() [4/4]

template<typename TYPE , typename Float >
void monolish::view_Dense< TYPE, Float >::operator= ( const view_Dense< vector< Float >, Float > &  mat)

matrix copy

Parameters
matDense matrix
Returns
copied dense matrix
Note
  • # of computation: M*N
  • Multi-threading: true
  • GPU acceleration: true
    • # of data transfer: 0
      • if gpu_statius == true; coping data on CPU
      • else; coping data on CPU

◆ operator[]()

template<typename TYPE , typename Float >
Float& monolish::view_Dense< TYPE, Float >::operator[] ( const size_t  i)
inline

reference to the element at position

Parameters
iPosition of an element in the vector
Returns
vector element (v[i])
Note
  • # of computation: 1
  • Multi-threading: false
  • GPU acceleration: false

Definition at line 578 of file monolish_view_dense.hpp.

◆ print_all()

template<typename TYPE , typename Float >
void monolish::view_Dense< TYPE, Float >::print_all ( bool  force_cpu = false) const

print all elements to standart I/O

Parameters
force_cpuIgnore device status and output CPU data
Note
  • # of computation: end-start
  • Multi-threading: false
  • GPU acceleration: true (doesn't work in parallel)

◆ recv()

template<typename TYPE , typename Float >
void monolish::view_Dense< TYPE, Float >::recv ( )
inline

recv data from GPU, and free data on GPU

Note
  • # of data transfer: N
  • Multi-threading: false
  • GPU acceleration: true

Definition at line 213 of file monolish_view_dense.hpp.

◆ resize()

template<typename TYPE , typename Float >
void monolish::view_Dense< TYPE, Float >::resize ( size_t  row,
size_t  col 
)
inline

change last postion

Parameters
Nvector length
Note
  • # of computation: 1
  • Multi-threading: false
  • GPU acceleration: true
Warning
Cannot be resized beyond the range of the referenced vector

Definition at line 490 of file monolish_view_dense.hpp.

◆ send()

template<typename TYPE , typename Float >
void monolish::view_Dense< TYPE, Float >::send ( ) const
inline

send data to GPU

Note
  • # of data transfer: N
  • Multi-threading: false
  • GPU acceleration: true

Definition at line 204 of file monolish_view_dense.hpp.

◆ set_first()

template<typename TYPE , typename Float >
void monolish::view_Dense< TYPE, Float >::set_first ( size_t  i)
inline

change first position

Note
  • # of computation: 1

Definition at line 289 of file monolish_view_dense.hpp.

◆ set_last()

template<typename TYPE , typename Float >
void monolish::view_Dense< TYPE, Float >::set_last ( size_t  i)
inline

change last position

Note
  • # of computation: 1

Definition at line 296 of file monolish_view_dense.hpp.

◆ size()

template<typename TYPE , typename Float >
size_t monolish::view_Dense< TYPE, Float >::size ( ) const
inline

get view_Dense size (range)

Returns
view_Dense size
Note
  • # of computation: 1

Definition at line 239 of file monolish_view_dense.hpp.

◆ type()

template<typename TYPE , typename Float >
std::string monolish::view_Dense< TYPE, Float >::type ( ) const
inline

get format name "view_Dense"

Note
  • # of computation: 1
  • Multi-threading: false
  • GPU acceleration: false

Definition at line 308 of file monolish_view_dense.hpp.

Member Data Documentation

◆ colN

template<typename TYPE , typename Float >
size_t monolish::view_Dense< TYPE, Float >::colN
private

Definition at line 59 of file monolish_view_dense.hpp.

◆ first

template<typename TYPE , typename Float >
size_t monolish::view_Dense< TYPE, Float >::first
private

Definition at line 54 of file monolish_view_dense.hpp.

◆ last

template<typename TYPE , typename Float >
size_t monolish::view_Dense< TYPE, Float >::last
private

Definition at line 55 of file monolish_view_dense.hpp.

◆ range

template<typename TYPE , typename Float >
size_t monolish::view_Dense< TYPE, Float >::range
private

Definition at line 56 of file monolish_view_dense.hpp.

◆ rowN

template<typename TYPE , typename Float >
size_t monolish::view_Dense< TYPE, Float >::rowN
private

Definition at line 58 of file monolish_view_dense.hpp.

◆ target

template<typename TYPE , typename Float >
TYPE& monolish::view_Dense< TYPE, Float >::target
private

Definition at line 52 of file monolish_view_dense.hpp.

◆ target_data

template<typename TYPE , typename Float >
Float* monolish::view_Dense< TYPE, Float >::target_data
private

Definition at line 53 of file monolish_view_dense.hpp.


The documentation for this class was generated from the following files: