Skip to content

Commit a70ac60

Browse files
committed
Fix: add missing license headers and correct Makefile include paths for gammaincinv
1 parent 94b948b commit a70ac60

File tree

4 files changed

+31
-13
lines changed

4 files changed

+31
-13
lines changed

lib/node_modules/@stdlib/math/base/special/gammaincinv/benchmark/benchmark.native.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
* Unless required by applicable law or agreed to in writing, software
1313
* distributed under the License is distributed on an "AS IS" BASIS,
1414
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15-
* See the LICE`NSE file in the root directory of this distribution.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
1617
*/
1718

1819
'use strict';

lib/node_modules/@stdlib/math/base/special/gammaincinv/binding.gyp

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
#
2+
# @license Apache-2.0
3+
#
4+
# Copyright (c) 2018-2025 The Stdlib Authors.
5+
#
6+
# Licensed under the Apache License, Version 2.0 (the "License");
7+
# you may not use this file except in compliance with the License.
8+
# You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
#
18+
119
{
220
"targets": [
321
{

lib/node_modules/@stdlib/math/base/special/gammaincinv/examples/c/Makefile

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,31 +54,31 @@ INCLUDE_DIRS := \
5454
include $(stdlib_make_path)/c.dependencies
5555

5656
# Add a command to include the C source file for `is_nan`:
57-
include $(shell $(NODE_EXE) -e "console.log( require('path').join( require.resolve( '@stdlib/math/base/assert/is-nan' ), '..', '..', 'make', 'c.src.mk' ) )" )
57+
include $(shell $(NODE_EXE) -e "console.log( require('path').join( require.resolve( '@stdlib/math/base/assert/is-nan' ), '..', '..', 'make' ) )" )/c.src.mk
5858

5959
# Add a command to include the C source file for `abs`:
60-
include $(shell $(NODE_EXE) -e "console.log( require('path').join( require.resolve( '@stdlib/math/base/special/abs' ), '..', '..', 'make', 'c.src.mk' ) )" )
60+
include $(shell $(NODE_EXE) -e "console.log( require('path').join( require.resolve( '@stdlib/math/base/special/abs' ), '..', '..', 'make' ) )" )/c.src.mk
6161

6262
# Add a command to include the C source file for `erfcinv`:
63-
include $(shell $(NODE_EXE) -e "console.log( require('path').join( require.resolve( '@stdlib/math/base/special/erfcinv' ), '..', '..', 'make', 'c.src.mk' ) )" )
63+
include $(shell $(NODE_EXE) -e "console.log( require('path').join( require.resolve( '@stdlib/math/base/special/erfcinv' ), '..', '..', 'make' ) )" )/c.src.mk
6464

6565
# Add a command to include the C source file for `exp`:
66-
include $(shell $(NODE_EXE) -e "console.log( require('path').join( require.resolve( '@stdlib/math/base/special/exp' ), '..', '..', 'make', 'c.src.mk' ) )" )
66+
include $(shell $(NODE_EXE) -e "console.log( require('path').join( require.resolve( '@stdlib/math/base/special/exp' ), '..', '..', 'make' ) )" )/c.src.mk
6767

6868
# Add a command to include the C source file for `gamma`:
69-
include $(shell $(NODE_EXE) -e "console.log( require('path').join( require.resolve( '@stdlib/math/base/special/gamma' ), '..', '..', 'make', 'c.src.mk' ) )" )
69+
include $(shell $(NODE_EXE) -e "console.log( require('path').join( require.resolve( '@stdlib/math/base/special/gamma' ), '..', '..', 'make' ) )" )/c.src.mk
7070

7171
# Add a command to include the C source file for `gammainc`:
72-
include $(shell $(NODE_EXE) -e "console.log( require('path').join( require.resolve( '@stdlib/math/base/special/gammainc' ), '..', '..', 'make', 'c.src.mk' ) )" )
72+
include $(shell $(NODE_EXE) -e "console.log( require('path').join( require.resolve( '@stdlib/math/base/special/gammainc' ), '..', '..', 'make' ) )" )/c.src.mk
7373

7474
# Add a command to include the C source file for `gammaln`:
75-
include $(shell $(NODE_EXE) -e "console.log( require('path').join( require.resolve( '@stdlib/math/base/special/gammaln' ), '..', '..', 'make', 'c.src.mk' ) )" )
75+
include $(shell $(NODE_EXE) -e "console.log( require('path').join( require.resolve( '@stdlib/math/base/special/gammaln' ), '..', '..', 'make' ) )" )/c.src.mk
7676

7777
# Add a command to include the C source file for `ln`:
78-
include $(shell $(NODE_EXE) -e "console.log( require('path').join( require.resolve( '@stdlib/math/base/special/ln' ), '..', '..', 'make', 'c.src.mk' ) )" )
78+
include $(shell $(NODE_EXE) -e "console.log( require('path').join( require.resolve( '@stdlib/math/base/special/ln' ), '..', '..', 'make' ) )" )/c.src.mk
7979

8080
# Add a command to include the C source file for `pow`:
81-
include $(shell $(NODE_EXE) -e "console.log( require('path').join( require.resolve( '@stdlib/math/base/special/pow' ), '..', '..', 'make', 'c.src.mk' ) )" )
81+
include $(shell $(NODE_EXE) -e "console.log( require('path').join( require.resolve( '@stdlib/math/base/special/pow' ), '..', '..', 'make' ) )" )/c.src.mk
8282

8383
# Add a command to include the C source file for `sqrt`:
84-
include $(shell $(NODE_EXE) -e "console.log( require('path').join( require.resolve( '@stdlib/math/base/special/sqrt' ), '..', '..', 'make', 'c.src.mk' ) )" )
84+
include $(shell $(NODE_EXE) -e "console.log( require('path').join( require.resolve( '@stdlib/math/base/special/sqrt' ), '..', '..', 'make' ) )" )/c.src.mk

lib/node_modules/@stdlib/math/base/special/gammaincinv/src/main.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.
8-
* You may not use this file except in compliance with the License.
98
* You may obtain a copy of the License at
109
*
1110
* http://www.apache.org/licenses/LICENSE-2.0
@@ -652,7 +651,7 @@ static double compute( const double a, const double p, const double q ) {
652651
if ( pcase ) {
653652
if ( p < 1.0e-3 ) {
654653
// Use polyval_ak1 coefficients for the Taylor expansion
655-
static const double P_TAYLOR[] = { 0.0, 1.0, 0.5, ONEO3, ONEO4, ONEO5, ONEO6 };
654+
const double P_TAYLOR[] = { 0.0, 1.0, 0.5, ONEO3, ONEO4, ONEO5, ONEO6 };
656655
x0 = evalpoly( P_TAYLOR, 7, p );
657656
} else {
658657
x0 = -stdlib_base_special_ln( 1.0-p );

0 commit comments

Comments
 (0)