Skip to content

Commit a76e140

Browse files
Merge pull request #80 from jacobwilliams/79-dfc
initial implementation of refactored dfc
2 parents 487698b + f5bb344 commit a76e140

File tree

8 files changed

+4350
-56
lines changed

8 files changed

+4350
-56
lines changed

LICENSE

Lines changed: 63 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
BSPLINE-FORTRAN: Multidimensional B-Spline Interpolation of Data on a Regular Grid
22

3-
Copyright (c) 2015-2022, Jacob Williams
3+
Copyright (c) 2015-2023, Jacob Williams
44
All rights reserved.
55

66
Redistribution and use in source and binary forms, with or without modification,
@@ -61,3 +61,65 @@ loss of data, programs or equipment, and the unavailability or interruption of o
6161
This software is not intended to be used in any situation where a failure could cause risk
6262
of injury or damage to property. The software was developed by NIST employees. NIST
6363
employee contributions are not subject to copyright protection within the United States.
64+
65+
!-----------------------------------------------------------------------------------------
66+
! LAPACK License
67+
!-----------------------------------------------------------------------------------------
68+
69+
Copyright (c) 1992-2022 The University of Tennessee and The University
70+
of Tennessee Research Foundation. All rights
71+
reserved.
72+
Copyright (c) 2000-2022 The University of California Berkeley. All
73+
rights reserved.
74+
Copyright (c) 2006-2022 The University of Colorado Denver. All rights
75+
reserved.
76+
77+
$COPYRIGHT$
78+
79+
Additional copyrights may follow
80+
81+
$HEADER$
82+
83+
Redistribution and use in source and binary forms, with or without
84+
modification, are permitted provided that the following conditions are
85+
met:
86+
87+
- Redistributions of source code must retain the above copyright
88+
notice, this list of conditions and the following disclaimer.
89+
90+
- Redistributions in binary form must reproduce the above copyright
91+
notice, this list of conditions and the following disclaimer listed
92+
in this license in the documentation and/or other materials
93+
provided with the distribution.
94+
95+
- Neither the name of the copyright holders nor the names of its
96+
contributors may be used to endorse or promote products derived from
97+
this software without specific prior written permission.
98+
99+
The copyright holders provide no reassurances that the source code
100+
provided does not infringe any patent, copyright, or any other
101+
intellectual property rights of third parties. The copyright holders
102+
disclaim any liability to any recipient for claims brought against
103+
recipient by any third party for infringement of that parties
104+
intellectual property rights.
105+
106+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
107+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
108+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
109+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
110+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
111+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
112+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
113+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
114+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
115+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
116+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
117+
118+
!-----------------------------------------------------------------------------------------
119+
!
120+
! BSPLINE-FORTRAN includes code from the SLATEC Common Mathematical Library,
121+
! A public domain work of the U.S. government.
122+
!
123+
! https://netlib.org/slatec/
124+
!
125+
!-----------------------------------------------------------------------------------------

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ The library provides subroutines for 1D-6D interpolation and extrapolation using
1919

2020
The core routines for the subroutine interface are:
2121

22-
```Fortran
23-
22+
```fortran
2423
!f(x)
2524
subroutine db1ink(x,nx,fcn,kx,iknot,tx,bcoef,iflag)
2625
subroutine db1val(xval,idx,tx,nx,kx,bcoef,f,iflag,inbvx,w0,extrap)
@@ -86,7 +85,7 @@ Note that extrapolation is not currently supported for these.
8685

8786
## Least squares fitting
8887

89-
The BSpline-Fortran library also exports the `defc` subroutine, which can be used to fit B-spline polynomials to 1D data using a weighted least squares method.
88+
The BSpline-Fortran library also exports the `defc` subroutine, which can be used to fit B-spline polynomials to 1D data using a weighted least squares method. The `dfc` subroutine also allows for equality and inequality constraints to be imposed on the fitted curve. These procedures are not yet available in the object oriented interface.
9089

9190
## Examples
9291

0 commit comments

Comments
 (0)