|
| procedure, pass(t) | init (t, n1, n2, n3, name) |
| | Initialise a tensor of size n1*n2*n3.
|
| procedure, pass(t) | free (t) |
| | Deallocate a tensor.
|
| procedure, pass(t) | size (t) |
| | Returns the number of entries in the tensor.
|
| procedure, pass(t) | copy_from (t, memdir, sync) |
| | Copy between host and device.
|
| procedure, pass(t) | get_n1 (t) |
| | Returns the size of the first dimension.
|
| procedure, pass(t) | get_n2 (t) |
| | Returns the size of the second dimension.
|
| procedure, pass(t) | get_n3 (t) |
| | Returns the size of the third dimension.
|
| procedure, pass(t) | get_dims (t) |
| | Returns the dimensions of the tensor.
|
| procedure, pass(t) | tensor3_assign_tensor3 (t, w) |
| | Assignment \( t = w \).
|
| procedure, pass(t) | tensor3_assign_scalar (t, s) |
| | Assignment \( t = s \).
|
| generic | assignment (t, w) |
| | Assignment \( t = w \).
|
| generic | assignment (t, s) |
| | Assignment \( t = s \).
|
|
| real(kind=rp), dimension(:,:,:), allocatable | x |
| | Tensor entries.
|
| character(len=neko_varname_len) | name = "" |
| | Name of the tensor.
|
| type(c_ptr) | x_d = C_NULL_PTR |
| | Device pointer.
|
|
| procedure, pass, private | alloc (t, n1, n2, n3) |
| | Allocate a tensor of size n1*n2*n3.
|
|
| integer, private | n1 = 0 |
| | Size of the first dimension.
|
| integer, private | n2 = 0 |
| | Size of the second dimension.
|
| integer, private | n3 = 0 |
| | Size of the third dimension.
|
| integer, private | n = 0 |
| | Total size n1*n2*n3.
|
Definition at line 45 of file tensor3.f90.
◆ alloc()
| procedure, pass, private tensor3::tensor3_t::alloc |
( |
class(tensor3_t), intent(inout) | t, |
|
|
integer, intent(in) | n1, |
|
|
integer, intent(in) | n2, |
|
|
integer, intent(in) | n3 ) |
|
private |
- Parameters
-
| t | Tensor to allocate. |
| n1 | Size of the first dimension. |
| n2 | Size of the second dimension. |
| n3 | Size of the third dimension. |
Definition at line 79 of file tensor3.f90.
◆ assignment() [1/2]
| generic tensor3::tensor3_t::assignment |
( |
class(tensor3_t), intent(inout) | t, |
|
|
real(kind=rp), intent(in) | s ) |
- Parameters
-
| t | Tensor to assign to. |
| s | Scalar to fill the tensor with. |
Definition at line 75 of file tensor3.f90.
◆ assignment() [2/2]
| generic tensor3::tensor3_t::assignment |
( |
class(tensor3_t), intent(inout) | t, |
|
|
type(tensor3_t), intent(in) | w ) |
- Parameters
-
| t | Tensor to assign to. |
| w | Tensor to assign from. |
Definition at line 75 of file tensor3.f90.
◆ copy_from()
| procedure, pass(t) tensor3::tensor3_t::copy_from |
( |
class(tensor3_t), intent(inout) | t, |
|
|
integer, intent(in) | memdir, |
|
|
logical, intent(in) | sync ) |
- Parameters
-
| t | Tensor to copy to/from device/host. |
| memdir | Direction to copy (HOST_TO_DEVICE or DEVICE_TO_HOST). |
| sync | Whether the memcopy is to be blocking or not. |
Definition at line 61 of file tensor3.f90.
◆ free()
| procedure, pass(t) tensor3::tensor3_t::free |
( |
class(tensor3_t), intent(inout) | t | ) |
|
◆ get_dims()
| procedure, pass(t) tensor3::tensor3_t::get_dims |
( |
class(tensor3_t), intent(in) | t | ) |
|
◆ get_n1()
| procedure, pass(t) tensor3::tensor3_t::get_n1 |
( |
class(tensor3_t), intent(in) | t | ) |
|
◆ get_n2()
| procedure, pass(t) tensor3::tensor3_t::get_n2 |
( |
class(tensor3_t), intent(in) | t | ) |
|
◆ get_n3()
| procedure, pass(t) tensor3::tensor3_t::get_n3 |
( |
class(tensor3_t), intent(in) | t | ) |
|
◆ init()
| procedure, pass(t) tensor3::tensor3_t::init |
( |
class(tensor3_t), intent(inout) | t, |
|
|
integer, intent(in) | n1, |
|
|
integer, intent(in) | n2, |
|
|
integer, intent(in) | n3, |
|
|
character(len=*), intent(in), optional | name ) |
- Parameters
-
| t | Tensor to initialise. |
| n1 | Size of the first dimension. |
| n2 | Size of the second dimension. |
| n3 | Size of the third dimension. |
| name | Optional name of the tensor. |
Definition at line 55 of file tensor3.f90.
◆ size()
| procedure, pass(t) tensor3::tensor3_t::size |
( |
class(tensor3_t), intent(in) | t | ) |
|
◆ tensor3_assign_scalar()
| procedure, pass(t) tensor3::tensor3_t::tensor3_assign_scalar |
( |
class(tensor3_t), intent(inout) | t, |
|
|
real(kind=rp), intent(in) | s ) |
- Parameters
-
| t | Tensor to assign to. |
| s | Scalar to fill the tensor with. |
Definition at line 73 of file tensor3.f90.
◆ tensor3_assign_tensor3()
| procedure, pass(t) tensor3::tensor3_t::tensor3_assign_tensor3 |
( |
class(tensor3_t), intent(inout) | t, |
|
|
type(tensor3_t), intent(in) | w ) |
- Parameters
-
| t | Tensor to assign to. |
| w | Tensor to assign from. |
Definition at line 71 of file tensor3.f90.
| integer, private tensor3::tensor3_t::n = 0 |
|
private |
◆ n1
| integer, private tensor3::tensor3_t::n1 = 0 |
|
private |
◆ n2
| integer, private tensor3::tensor3_t::n2 = 0 |
|
private |
◆ n3
| integer, private tensor3::tensor3_t::n3 = 0 |
|
private |
◆ name
| character(len=neko_varname_len) tensor3::tensor3_t::name = "" |
| real(kind=rp), dimension(:,:,:), allocatable tensor3::tensor3_t::x |
◆ x_d
| type(c_ptr) tensor3::tensor3_t::x_d = C_NULL_PTR |
The documentation for this type was generated from the following file: