Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ limitations under the License.

# Dirac Delta

> Evaluate the [Dirac delta function][dirac-delta-function] in single-precision floating-point format.
> Evaluate the [Dirac delta function][dirac-delta-function] for a single-precision floating-point number.

<section class="intro">

Expand Down Expand Up @@ -70,7 +70,7 @@ var diracDeltaf = require( '@stdlib/math/base/special/dirac-deltaf' );

#### diracDeltaf( x )

Evaluates the [Dirac delta function][dirac-delta-function] in single-precision floating-point format.
Evaluates the [Dirac delta function][dirac-delta-function] for a single-precision floating-point number.

```javascript
var v = diracDeltaf( 0.0 );
Expand Down Expand Up @@ -137,7 +137,7 @@ for ( i = 0; i < x.length; i++ ) {

#### stdlib_base_dirac_deltaf( x )

Evaluates the [Dirac delta function][dirac-delta-function] in single-precision floating-point format.
Evaluates the [Dirac delta function][dirac-delta-function] for a single-precision floating-point number.

```c
float x = stdlib_base_dirac_deltaf( 0.0f );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ static double rand_float( void ) {
* @param x input value
* @return function result
*/
float dirac_deltaf( float x ) {
static float dirac_deltaf( float x ) {
if ( x == 0.0f ) {
return HUGE_VAL;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

{{alias}}( x )
Evaluates the Dirac delta function in single-precision
floating-point format.
Evaluates the Dirac delta function for a single-precision
floating-point number.

Parameters
----------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
// TypeScript Version: 4.1

/**
* Evaluates the Dirac delta function in single-precision floating-point format.
* Evaluates the Dirac delta function for a single-precision floating-point number.
*
* @param x - input value
* @returns function value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ extern "C" {
#endif

/**
* Evaluates the Dirac delta function in single-precision floating-point format.
* Evaluates the Dirac delta function for a single-precision floating-point number.
*/
float stdlib_base_dirac_deltaf( const float x );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
'use strict';

/**
* Evaluate the Dirac delta function in single-precision floating-point format.
* Evaluate the Dirac delta function for a single-precision floating-point number.
*
* @module @stdlib/math/base/special/dirac-deltaf
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ var PINF = require( '@stdlib/constants/float32/pinf' );
// MAIN //

/**
* Evaluates the Dirac delta function in single-precision floating-point format.
* Evaluates the Dirac delta function for a single-precision floating-point number.
*
* @param {number} x - input value
* @returns {number} function value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ var addon = require( './../src/addon.node' );
// MAIN //

/**
* Evaluates the Dirac delta function in single-precision floating-point format.
* Evaluates the Dirac delta function for a single-precision floating-point number.
*
* @private
* @param {number} x - input value
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@stdlib/math/base/special/dirac-deltaf",
"version": "0.0.0",
"description": "Evaluate the Dirac delta function in single-precision floating-point format.",
"description": "Evaluate the Dirac delta function for a single-precision floating-point number.",
"license": "Apache-2.0",
"author": {
"name": "The Stdlib Authors",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
#include "stdlib/constants/float32/pinf.h"

/**
* Evaluates the Dirac delta function in single-precision floating-point format.
* Evaluates the Dirac delta function for a single-precision floating-point number.
*
* @param x input value
* @return output value
* @return output value
*
* @example
* float out = stdlib_base_dirac_deltaf( 3.14f );
Expand Down
Loading