diffstruc__operations_trig Module

This module contains trigonometric operations for the diffstruc library.


Uses


Interfaces

public interface cos

  • private function cos_array(a) result(c)

    Cosine function for autodiff arrays

    Arguments

    Type IntentOptional Attributes Name
    class(array_type), intent(in), target :: a

    Return Value type(array_type), pointer

public interface sin

  • private function sin_array(a) result(c)

    Sine function for autodiff arrays

    Arguments

    Type IntentOptional Attributes Name
    class(array_type), intent(in), target :: a

    Return Value type(array_type), pointer

public interface tan

  • private function tan_array(a) result(c)

    Tangent function for autodiff arrays

    Arguments

    Type IntentOptional Attributes Name
    class(array_type), intent(in), target :: a

    Return Value type(array_type), pointer


Functions

private function cos_array(a) result(c)

Cosine function for autodiff arrays

Arguments

Type IntentOptional Attributes Name
class(array_type), intent(in), target :: a

Return Value type(array_type), pointer

private function get_partial_cos(this, upstream_grad) result(output)

Arguments

Type IntentOptional Attributes Name
class(array_type), intent(inout) :: this
type(array_type), intent(in) :: upstream_grad

Return Value type(array_type)

private function get_partial_sin(this, upstream_grad) result(output)

Arguments

Type IntentOptional Attributes Name
class(array_type), intent(inout) :: this
type(array_type), intent(in) :: upstream_grad

Return Value type(array_type)

private function get_partial_tan(this, upstream_grad) result(output)

Arguments

Type IntentOptional Attributes Name
class(array_type), intent(inout) :: this
type(array_type), intent(in) :: upstream_grad

Return Value type(array_type)

private function sin_array(a) result(c)

Sine function for autodiff arrays

Arguments

Type IntentOptional Attributes Name
class(array_type), intent(in), target :: a

Return Value type(array_type), pointer

private function tan_array(a) result(c)

Tangent function for autodiff arrays

Arguments

Type IntentOptional Attributes Name
class(array_type), intent(in), target :: a

Return Value type(array_type), pointer


Subroutines

private pure subroutine get_partial_cos_val(this, upstream_grad, output)

Arguments

Type IntentOptional Attributes Name
class(array_type), intent(in) :: this
real(kind=real32), intent(in), dimension(:,:) :: upstream_grad
real(kind=real32), intent(out), dimension(:,:) :: output

private pure subroutine get_partial_sin_val(this, upstream_grad, output)

Arguments

Type IntentOptional Attributes Name
class(array_type), intent(in) :: this
real(kind=real32), intent(in), dimension(:,:) :: upstream_grad
real(kind=real32), intent(out), dimension(:,:) :: output

private pure subroutine get_partial_tan_val(this, upstream_grad, output)

Arguments

Type IntentOptional Attributes Name
class(array_type), intent(in) :: this
real(kind=real32), intent(in), dimension(:,:) :: upstream_grad
real(kind=real32), intent(out), dimension(:,:) :: output