|
monolish
0.16.1
MONOlithic LInear equation Solvers for Highly-parallel architecture
|
1D view class More...
#include <monolish_view1D.hpp>

Public Member Functions | |
| 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... | |
| 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_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 view1D size (same as size()) More... | |
| size_t | get_offset () const |
| get first position (same as get_first()) 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 | resize (size_t N) |
| change last postion 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 view1D size (end-start) More... | |
| view1D (matrix::Dense< Float > &A, const size_t start, const size_t end) | |
| create view1D(start:end) from Dense matrix More... | |
| view1D (vector< Float > &x, const size_t start, const size_t end) | |
| create view1D(start:end) from vector More... | |
| view1D (view1D< matrix::Dense< Float >, Float > &x, const size_t start, const size_t end) | |
| create view1D(start:end) from monolish::matrix::Dense More... | |
| view1D (view1D< vector< Float >, Float > &x, const size_t start, const size_t end) | |
| create view1D(start:end) from monolish::vector More... | |
Private Attributes | |
| size_t | first |
| size_t | last |
| size_t | range |
| TYPE & | target |
| Float * | target_data |
1D view class
Definition at line 46 of file monolish_view1D.hpp.
|
inline |
create view1D(start:end) from vector
| x | vector |
| start | start position |
| end | end position |
Definition at line 65 of file monolish_view1D.hpp.

|
inline |
create view1D(start:end) from Dense matrix
| A | Dense matrix |
| start | start position |
| end | end position |
Definition at line 82 of file monolish_view1D.hpp.

|
inline |
create view1D(start:end) from monolish::vector
| x | view1D create from monolish::vector |
| start | start position (x.first + start) |
| end | end position (x.last + end) |
Definition at line 100 of file monolish_view1D.hpp.

|
inline |
create view1D(start:end) from monolish::matrix::Dense
| x | view1D create from monolish::matrix::Dense |
| start | start position (x.first + start) |
| end | end position (x.last + end) |
Definition at line 118 of file monolish_view1D.hpp.

|
inline |
returns begin iterator (include offset)
Definition at line 227 of file monolish_view1D.hpp.

|
inline |
returns begin iterator (include offset)
Definition at line 219 of file monolish_view1D.hpp.

|
inline |
returns a direct pointer to the vector (dont include offset)
Definition at line 211 of file monolish_view1D.hpp.
|
inline |
returns a direct pointer to the original vector (dont include offset)
Definition at line 203 of file monolish_view1D.hpp.
|
inline |
returns a end iterator
Definition at line 243 of file monolish_view1D.hpp.
|
inline |
returns a end iterator
Definition at line 235 of file monolish_view1D.hpp.

| void monolish::view1D< TYPE, Float >::fill | ( | Float | value | ) |
fill vector elements with a scalar value
| value | scalar value |
|
inline |
true: sended, false: not send
Definition at line 192 of file monolish_view1D.hpp.
|
inline |
get first position
Definition at line 149 of file monolish_view1D.hpp.
|
inline |
get end position
Definition at line 157 of file monolish_view1D.hpp.
|
inline |
get view1D size (same as size())
Definition at line 141 of file monolish_view1D.hpp.
|
inline |
get first position (same as get_first())
Definition at line 165 of file monolish_view1D.hpp.

|
inline |
reference to the element at position
| i | Position of an element in the vector |
Definition at line 279 of file monolish_view1D.hpp.
| void monolish::view1D< TYPE, Float >::print_all | ( | bool | force_cpu = false | ) | const |
print all elements to standart I/O
| force_cpu | Ignore device status and output CPU data |
|
inline |
change last postion
| N | vector length |
Definition at line 265 of file monolish_view1D.hpp.
|
inline |
|
inline |
|
inline |
get view1D size (end-start)
Definition at line 133 of file monolish_view1D.hpp.
|
private |
Definition at line 50 of file monolish_view1D.hpp.
|
private |
Definition at line 51 of file monolish_view1D.hpp.
|
private |
Definition at line 52 of file monolish_view1D.hpp.
|
private |
Definition at line 48 of file monolish_view1D.hpp.
|
private |
Definition at line 49 of file monolish_view1D.hpp.