Go to the source code of this file.
|
| module | tensor4 |
| | Defines a rank-4 tensor.
|
| |
|
| subroutine | tensor4::tensor4_init (t, n1, n2, n3, n4, name) |
| | Initialise a tensor of size n1*n2*n3*n4.
|
| |
| subroutine | tensor4::tensor4_allocate (t, n1, n2, n3, n4) |
| | Allocate a tensor of size n1*n2*n3*n4.
|
| |
| subroutine | tensor4::tensor4_free (t) |
| | Deallocate a tensor.
|
| |
| pure integer function | tensor4::tensor4_size (t) |
| | Returns the number of entries in the tensor.
|
| |
| subroutine | tensor4::tensor4_copy_from (t, memdir, sync) |
| | Easy way to copy between host and device.
|
| |
| pure integer function | tensor4::tensor4_n1 (t) |
| | Returns the size of the first dimension.
|
| |
| pure integer function | tensor4::tensor4_n2 (t) |
| | Returns the size of the second dimension.
|
| |
| pure integer function | tensor4::tensor4_n3 (t) |
| | Returns the size of the third dimension.
|
| |
| pure integer function | tensor4::tensor4_n4 (t) |
| | Returns the size of the fourth dimension.
|
| |
| subroutine | tensor4::tensor4_assign_tensor4 (t, w) |
| | Assignment \( t = w \).
|
| |
| subroutine | tensor4::tensor4_assign_scalar (t, s) |
| | Assignment \( t = s \).
|
| |
| subroutine | tensor4::tensor4_ptr_init (this, ptr) |
| | Constructor. Just assigns the pointer.
|
| |
| subroutine | tensor4::tensor4_ptr_free (this) |
| | Destructor. Just nullifies the pointer.
|
| |