neuron_t Derived Type

type, public :: neuron_t

linked list of neurons


Inherited by

type~~neuron_t~~InheritedByGraph type~neuron_t neuron_t type~neuron_t->type~neuron_t next type~layer_t layer_t type~layer_t->type~neuron_t neuron type~layer_t->type~layer_t next

Components

Type Visibility Attributes Name Initial
real(kind=rkind), private :: bias_
type(neuron_t), private, allocatable :: next
real(kind=rkind), private, allocatable :: weights_(:)

Constructor

public interface neuron_t

  • private pure recursive module function construct(neuron_lines, start) result(neuron)

    construct linked list of neuron_t objects from an array of JSON-formatted text lines

    Arguments

    Type IntentOptional Attributes Name
    type(string_t), intent(in) :: neuron_lines(:)
    integer, intent(in) :: start

    Return Value type(neuron_t)


Type-Bound Procedures

procedure, public :: bias

  • interface

    private module function bias(self) result(my_bias)

    Arguments

    Type IntentOptional Attributes Name
    class(neuron_t), intent(in) :: self

    Return Value real(kind=rkind)

procedure, public :: next_allocated

  • interface

    private module function next_allocated(self) result(next_is_allocated)

    Arguments

    Type IntentOptional Attributes Name
    class(neuron_t), intent(in) :: self

    Return Value logical

procedure, public :: next_pointer

  • interface

    private module function next_pointer(self) result(next_ptr)

    Arguments

    Type IntentOptional Attributes Name
    class(neuron_t), intent(in), target :: self

    Return Value type(neuron_t), pointer

procedure, public :: num_inputs

  • interface

    private pure module function num_inputs(self) result(size_weights)

    Arguments

    Type IntentOptional Attributes Name
    class(neuron_t), intent(in) :: self

    Return Value integer

procedure, public :: weights

  • interface

    private module function weights(self) result(my_weights)

    Arguments

    Type IntentOptional Attributes Name
    class(neuron_t), intent(in) :: self

    Return Value real(kind=rkind), allocatable, (:)