Skip to content

Commit 66e662c

Browse files
committed
lowercase procedure names
1 parent 0afc655 commit 66e662c

4 files changed

+78
-78
lines changed

doc/specs/stdlib_specialfunctions_activations.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ Elemental function
203203

204204
The function returns a value with the same type and kind as input argument.
205205

206-
## `Leaky_relu` - Leaky Rectified Linear Unit function
206+
## `leaky_relu` - leaky Rectified Linear Unit function
207207

208208
### Status
209209

@@ -242,7 +242,7 @@ The function returns a value with the same type and kind as input argument.
242242
{!example/specialfunctions_activations/example_leaky_relu.f90!}
243243
```
244244

245-
## `Leaky_relu_grad` - Gradient of the Leaky Rectified Linear Unit function
245+
## `leaky_relu_grad` - Gradient of the leaky Rectified Linear Unit function
246246

247247
### Status
248248

@@ -617,7 +617,7 @@ The function returns a value with the same type and kind as input argument.
617617
{!example/specialfunctions_activations/example_step.f90!}
618618
```
619619

620-
## `Step_grad` - Gradient of the Step function
620+
## `step_grad` - Gradient of the Step function
621621

622622
### Status
623623

@@ -644,15 +644,15 @@ Elemental function
644644

645645
The function returns a value with the same type and kind as input argument.
646646

647-
## `Softmax` - Softmax function
647+
## `softmax` - softmax function
648648

649649
### Status
650650

651651
Experimental
652652

653653
### Description
654654

655-
Computes the Softmax function:
655+
Computes the softmax function:
656656
$$f(x) = \frac{\exp(x)-\text{max}(x_j)}{\sum_j{\exp(x)-\text{max}(x_j)}}$$
657657

658658
### Syntax
@@ -677,16 +677,16 @@ The function returns an array with the same rank and kind as the input argument
677677
{!example/specialfunctions_activations/example_softmax.f90!}
678678
```
679679

680-
## `Softmax_grad` - Gradient of the Softmax function
680+
## `softmax_grad` - Gradient of the softmax function
681681

682682
### Status
683683

684684
Experimental
685685

686686
### Description
687687

688-
Computes the gradient of the Softmax function:
689-
$$f(x,dim) = \text{Softmax}(x,dim)*(1-\text{Softmax}(x,dim)) $$
688+
Computes the gradient of the softmax function:
689+
$$f(x,dim) = \text{softmax}(x,dim)*(1-\text{softmax}(x,dim)) $$
690690

691691
### Syntax
692692

@@ -705,15 +705,15 @@ Pure function for ranks 1 to 4.
705705

706706
The function returns a value with the same type and kind as input argument.
707707

708-
## `Softplus` - Softplus function
708+
## `softplus` - softplus function
709709

710710
### Status
711711

712712
Experimental
713713

714714
### Description
715715

716-
Computes the Softplus function:
716+
Computes the softplus function:
717717
$$f(x) = \log(\exp(x)+1)$$
718718

719719
### Syntax
@@ -737,15 +737,15 @@ The function returns a value with the same type and kind as input argument.
737737
{!example/specialfunctions_activations/example_softplus.f90!}
738738
```
739739

740-
## `Softplus_grad` - Gradient of the Softplus function
740+
## `softplus_grad` - Gradient of the softplus function
741741

742742
### Status
743743

744744
Experimental
745745

746746
### Description
747747

748-
Computes the gradient of the Softplus function:
748+
Computes the gradient of the softplus function:
749749
$$f(x) = \frac{\exp(x)}{\exp(x)+1} $$
750750

751751
### Syntax

src/stdlib_specialfunctions.fypp

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ module stdlib_specialfunctions
120120
interface leaky_relu
121121
!! Version: experimental
122122
!!
123-
!! Leaky Rectified linear unit function
123+
!! leaky Rectified linear unit function
124124
!> ([Specification](../page/specs/stdlib_specialfunctions.html#leaky_relu))
125125
#:for rk, rt in REAL_KINDS_TYPES
126126
elemental module function leaky_relu_${rk}$( x , a ) result( y )
@@ -135,7 +135,7 @@ module stdlib_specialfunctions
135135
interface leaky_relu_grad
136136
!! Version: experimental
137137
!!
138-
!! Gradient of the Leaky Rectified linear unit function
138+
!! Gradient of the leaky Rectified linear unit function
139139
!> ([Specification](../page/specs/stdlib_specialfunctions.html#leaky_relu_grad))
140140
#:for rk, rt in REAL_KINDS_TYPES
141141
elemental module function leaky_relu_grad_${rk}$( x , a ) result( y )
@@ -341,19 +341,19 @@ module stdlib_specialfunctions
341341
end interface
342342
public :: tanh_grad
343343

344-
interface Softmax
344+
interface softmax
345345
!! Version: experimental
346346
!!
347-
!! Softmax function. Available for ranks 1 to 4
348-
!> ([Specification](../page/specs/stdlib_specialfunctions.html#Softmax))
347+
!! softmax function. Available for ranks 1 to 4
348+
!> ([Specification](../page/specs/stdlib_specialfunctions.html#softmax))
349349
#:for rk, rt in REAL_KINDS_TYPES
350-
pure module function Softmax_r1_${rk}$( x , dim ) result( y )
350+
pure module function softmax_r1_${rk}$( x , dim ) result( y )
351351
${rt}$, intent(in) :: x(:)
352352
${rt}$ :: y(size(x))
353353
integer, intent(in), optional :: dim
354354
end function
355355
#:for rank in RANKS
356-
pure module function Softmax_r${rank}$_${rk}$( x , dim ) result( y )
356+
pure module function softmax_r${rank}$_${rk}$( x , dim ) result( y )
357357
${rt}$, intent(in) :: x${ranksuffix(rank)}$
358358
${rt}$ :: y${shape('x', rank)}$
359359
integer, intent(in), optional :: dim
@@ -363,77 +363,77 @@ module stdlib_specialfunctions
363363
end interface
364364
public :: softmax
365365

366-
interface Softmax_grad
366+
interface softmax_grad
367367
!! Version: experimental
368368
!!
369369
!! Gradient of the softmax function. Available for ranks 1 to 4
370-
!> ([Specification](../page/specs/stdlib_specialfunctions.html#Softmax_grad))
370+
!> ([Specification](../page/specs/stdlib_specialfunctions.html#softmax_grad))
371371
#:for rk, rt in REAL_KINDS_TYPES
372-
pure module function Softmax_grad_r1_${rk}$( x , dim ) result( y )
372+
pure module function softmax_grad_r1_${rk}$( x , dim ) result( y )
373373
${rt}$, intent(in) :: x(:)
374374
${rt}$ :: y(size(x))
375375
integer, intent(in), optional :: dim
376376
end function
377377
#:for rank in RANKS
378-
pure module function Softmax_grad_r${rank}$_${rk}$( x , dim ) result( y )
378+
pure module function softmax_grad_r${rank}$_${rk}$( x , dim ) result( y )
379379
${rt}$, intent(in) :: x${ranksuffix(rank)}$
380380
${rt}$ :: y${shape('x', rank)}$
381381
integer, intent(in), optional :: dim
382382
end function
383383
#:endfor
384384
#:endfor
385385
end interface
386-
public :: Softmax_grad
386+
public :: softmax_grad
387387

388-
interface LogSoftmax
388+
interface logsoftmax
389389
!! Version: experimental
390390
!!
391-
!! Softmax function. Available for ranks 1 to 4
392-
!> ([Specification](../page/specs/stdlib_specialfunctions.html#LogSoftmax))
391+
!! softmax function. Available for ranks 1 to 4
392+
!> ([Specification](../page/specs/stdlib_specialfunctions.html#logsoftmax))
393393
#:for rk, rt in REAL_KINDS_TYPES
394-
pure module function LogSoftmax_r1_${rk}$( x, dim ) result( y )
394+
pure module function logsoftmax_r1_${rk}$( x, dim ) result( y )
395395
${rt}$, intent(in) :: x(:)
396396
${rt}$ :: y(size(x))
397397
integer, intent(in), optional :: dim
398398
end function
399399
#:for rank in RANKS
400-
pure module function LogSoftmax_r${rank}$_${rk}$( x , dim ) result( y )
400+
pure module function logsoftmax_r${rank}$_${rk}$( x , dim ) result( y )
401401
${rt}$, intent(in) :: x${ranksuffix(rank)}$
402402
${rt}$ :: y${shape('x', rank)}$
403403
integer, intent(in), optional :: dim
404404
end function
405405
#:endfor
406406
#:endfor
407407
end interface
408-
public :: LogSoftmax
408+
public :: logsoftmax
409409

410-
interface Softplus
410+
interface softplus
411411
!! Version: experimental
412412
!!
413-
!! Softplus function
414-
!> ([Specification](../page/specs/stdlib_specialfunctions.html#Softplus))
413+
!! softplus function
414+
!> ([Specification](../page/specs/stdlib_specialfunctions.html#softplus))
415415
#:for rk, rt in REAL_KINDS_TYPES
416-
elemental module function Softplus_${rk}$( x ) result( y )
416+
elemental module function softplus_${rk}$( x ) result( y )
417417
${rt}$, intent(in) :: x
418418
${rt}$ :: y
419419
end function
420420
#:endfor
421421
end interface
422-
public :: Softplus
422+
public :: softplus
423423

424-
interface Softplus_grad
424+
interface softplus_grad
425425
!! Version: experimental
426426
!!
427427
!! Gradient of the softplus function
428-
!> ([Specification](../page/specs/stdlib_specialfunctions.html#Softplus_grad))
428+
!> ([Specification](../page/specs/stdlib_specialfunctions.html#softplus_grad))
429429
#:for rk, rt in REAL_KINDS_TYPES
430-
elemental module function Softplus_grad_${rk}$( x ) result( y )
430+
elemental module function softplus_grad_${rk}$( x ) result( y )
431431
${rt}$, intent(in) :: x
432432
${rt}$ :: y
433433
end function
434434
#:endfor
435435
end interface
436-
public :: Softplus_grad
436+
public :: softplus_grad
437437

438438
interface ftanh
439439
!! Version: experimental

0 commit comments

Comments
 (0)