Object for handling masks in Neko.
|
| type | mask_t |
| | Type for consistently handling masks in Neko. This type encapsulates the mask array and its associated device pointer. More...
|
|
| subroutine | mask_allocate (this, n_elements) |
| | Allocate the mask object.
|
| subroutine | mask_free (this) |
| | Free the mask object.
|
| subroutine | init_from_array (this, mask_array, n_elements) |
| | Initialize the mask from a 1-indexed host array.
|
| subroutine | init_from_array_device (this, mask_array_d, n_elements) |
| | Initialize the mask from a 0-indexed device array.
|
| subroutine | init_from_mask (this, other) |
| | Initialize the mask from another mask object.
|
| subroutine | invert_mask (this, other, total_elements) |
| | Invert the contents of another mask object.
|
| pure integer function | mask_size (this) |
| | Get the size of the mask.
|
| pure logical function | mask_is_set (this) |
| | Check if the mask is set.
|
| integer function, dimension(:), pointer | mask_get (this) |
| | Get the mask array.
|
| integer function | mask_get_i (this, index) |
| | Get the mask array.
|
| type(c_ptr) function | mask_get_d (this) |
| | Get the device pointer to the mask array.
|
| subroutine | mask_set (this, mask_array, n_elements) |
| | Set the mask from a 1-indexed host array.
|
| subroutine | mask_set_d (this, mask_array_d, n_elements) |
| | Set the mask from a 0-indexed device array.
|
◆ init_from_array()
| subroutine mask::init_from_array |
( |
class(mask_t), intent(inout) | this, |
|
|
integer, dimension(n_elements), intent(in) | mask_array, |
|
|
integer, intent(in) | n_elements ) |
|
private |
◆ init_from_array_device()
| subroutine mask::init_from_array_device |
( |
class(mask_t), intent(inout) | this, |
|
|
type(c_ptr), intent(inout) | mask_array_d, |
|
|
integer, intent(in) | n_elements ) |
|
private |
◆ init_from_mask()
| subroutine mask::init_from_mask |
( |
class(mask_t), intent(inout) | this, |
|
|
class(mask_t), intent(inout) | other ) |
|
private |
◆ invert_mask()
| subroutine mask::invert_mask |
( |
class(mask_t), intent(inout) | this, |
|
|
class(mask_t), intent(in) | other, |
|
|
integer, intent(in) | total_elements ) |
|
private |
◆ mask_allocate()
| subroutine mask::mask_allocate |
( |
class(mask_t), intent(inout) | this, |
|
|
integer, intent(in) | n_elements ) |
◆ mask_free()
| subroutine mask::mask_free |
( |
class(mask_t), intent(inout) | this | ) |
|
|
private |
◆ mask_get()
| integer function, dimension(:), pointer mask::mask_get |
( |
class(mask_t), intent(in), target | this | ) |
|
|
private |
◆ mask_get_d()
| type(c_ptr) function mask::mask_get_d |
( |
class(mask_t), intent(in) | this | ) |
|
|
private |
◆ mask_get_i()
| integer function mask::mask_get_i |
( |
class(mask_t), intent(in), target | this, |
|
|
integer, intent(in) | index ) |
|
private |
◆ mask_is_set()
| pure logical function mask::mask_is_set |
( |
class(mask_t), intent(in) | this | ) |
|
|
private |
◆ mask_set()
| subroutine mask::mask_set |
( |
class(mask_t), intent(inout) | this, |
|
|
integer, dimension(n_elements), intent(in) | mask_array, |
|
|
integer, intent(in) | n_elements ) |
|
private |
◆ mask_set_d()
| subroutine mask::mask_set_d |
( |
class(mask_t), intent(inout) | this, |
|
|
type(c_ptr), intent(inout) | mask_array_d, |
|
|
integer, intent(in) | n_elements ) |
|
private |
◆ mask_size()
| pure integer function mask::mask_size |
( |
class(mask_t), intent(in) | this | ) |
|
|
private |