Initialises biases structure.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(array1d), | intent(inout), | allocatable | :: | db(:) | ||
| integer(kind=ik), | intent(in) | :: | dims(:) |
pure subroutine db_init(db, dims)
!! Initialises biases structure.
type(array1d), allocatable, intent(in out) :: db(:)
integer(ik), intent(in) :: dims(:)
integer(ik) :: n, nm
nm = size(dims)
allocate(db(nm))
do n = 1, nm - 1
db(n) = array1d(dims(n))
end do
db(n) = array1d(dims(n))
end subroutine db_init