Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
miscmaths
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FSL
miscmaths
Commits
6ce68c52
Commit
6ce68c52
authored
5 months ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
MNT: Don't pass a value to NoOfThreads, so that it will use a default value
parent
ca6e196c
No related branches found
No related tags found
1 merge request
!17
ENH: Allow `Splinterpolator` instances to be created from an existing set of spline coefficients, and extend extrapolation options
Pipeline
#26271
passed
4 months ago
Stage: fsl-ci-build
Changes
3
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
SpMat.h
+4
-4
4 additions, 4 deletions
SpMat.h
bfmatrix.h
+3
-3
3 additions, 3 deletions
bfmatrix.h
splinterpolator.h
+2
-2
2 additions, 2 deletions
splinterpolator.h
with
9 additions
and
9 deletions
SpMat.h
+
4
−
4
View file @
6ce68c52
...
@@ -93,10 +93,10 @@ class SpMat
...
@@ -93,10 +93,10 @@ class SpMat
{
{
public:
public:
SpMat
()
:
_m
(
0
),
_n
(
0
),
_nz
(
0
),
_ri
(
0
),
_val
(
0
),
_pw
(
false
),
_nt
(
1
)
{}
SpMat
()
:
_m
(
0
),
_n
(
0
),
_nz
(
0
),
_ri
(
0
),
_val
(
0
),
_pw
(
false
),
_nt
(
1
)
{}
SpMat
(
unsigned
int
m
,
unsigned
int
n
,
Utilities
::
NoOfThreads
nt
=
Utilities
::
NoOfThreads
(
1
))
:
_m
(
m
),
_n
(
n
),
_nz
(
0
),
_ri
(
n
),
_val
(
n
),
_pw
(
false
),
_nt
(
nt
.
_n
)
{}
SpMat
(
unsigned
int
m
,
unsigned
int
n
,
Utilities
::
NoOfThreads
nt
=
Utilities
::
NoOfThreads
())
:
_m
(
m
),
_n
(
n
),
_nz
(
0
),
_ri
(
n
),
_val
(
n
),
_pw
(
false
),
_nt
(
nt
.
_n
)
{}
SpMat
(
unsigned
int
m
,
unsigned
int
n
,
const
unsigned
int
*
irp
,
const
unsigned
int
*
jcp
,
const
double
*
sp
,
Utilities
::
NoOfThreads
nt
=
Utilities
::
NoOfThreads
(
1
));
SpMat
(
unsigned
int
m
,
unsigned
int
n
,
const
unsigned
int
*
irp
,
const
unsigned
int
*
jcp
,
const
double
*
sp
,
Utilities
::
NoOfThreads
nt
=
Utilities
::
NoOfThreads
());
SpMat
(
const
NEWMAT
::
GeneralMatrix
&
M
,
Utilities
::
NoOfThreads
nt
=
Utilities
::
NoOfThreads
(
1
));
SpMat
(
const
NEWMAT
::
GeneralMatrix
&
M
,
Utilities
::
NoOfThreads
nt
=
Utilities
::
NoOfThreads
());
SpMat
(
const
std
::
string
&
fname
,
Utilities
::
NoOfThreads
nt
=
Utilities
::
NoOfThreads
(
1
));
SpMat
(
const
std
::
string
&
fname
,
Utilities
::
NoOfThreads
nt
=
Utilities
::
NoOfThreads
());
~
SpMat
()
{}
~
SpMat
()
{}
unsigned
int
Nrows
()
const
{
return
(
_m
);}
unsigned
int
Nrows
()
const
{
return
(
_m
);}
...
...
This diff is collapsed.
Click to expand it.
bfmatrix.h
+
3
−
3
View file @
6ce68c52
...
@@ -141,13 +141,13 @@ public:
...
@@ -141,13 +141,13 @@ public:
// Constructors, destructor and assignment
// Constructors, destructor and assignment
SparseBFMatrix
()
SparseBFMatrix
()
:
mp
(
std
::
shared_ptr
<
MISCMATHS
::
SpMat
<
T
>
>
(
new
MISCMATHS
::
SpMat
<
T
>
()))
{}
:
mp
(
std
::
shared_ptr
<
MISCMATHS
::
SpMat
<
T
>
>
(
new
MISCMATHS
::
SpMat
<
T
>
()))
{}
SparseBFMatrix
(
unsigned
int
m
,
unsigned
int
n
,
Utilities
::
NoOfThreads
nt
=
Utilities
::
NoOfThreads
(
1
))
SparseBFMatrix
(
unsigned
int
m
,
unsigned
int
n
,
Utilities
::
NoOfThreads
nt
=
Utilities
::
NoOfThreads
())
:
mp
(
std
::
shared_ptr
<
MISCMATHS
::
SpMat
<
T
>
>
(
new
MISCMATHS
::
SpMat
<
T
>
(
m
,
n
,
nt
)))
{}
:
mp
(
std
::
shared_ptr
<
MISCMATHS
::
SpMat
<
T
>
>
(
new
MISCMATHS
::
SpMat
<
T
>
(
m
,
n
,
nt
)))
{}
SparseBFMatrix
(
unsigned
int
m
,
unsigned
int
n
,
const
unsigned
int
*
irp
,
const
unsigned
int
*
jcp
,
const
double
*
sp
,
Utilities
::
NoOfThreads
nt
=
Utilities
::
NoOfThreads
(
1
))
SparseBFMatrix
(
unsigned
int
m
,
unsigned
int
n
,
const
unsigned
int
*
irp
,
const
unsigned
int
*
jcp
,
const
double
*
sp
,
Utilities
::
NoOfThreads
nt
=
Utilities
::
NoOfThreads
())
:
mp
(
std
::
shared_ptr
<
MISCMATHS
::
SpMat
<
T
>
>
(
new
MISCMATHS
::
SpMat
<
T
>
(
m
,
n
,
irp
,
jcp
,
sp
,
nt
)))
{}
:
mp
(
std
::
shared_ptr
<
MISCMATHS
::
SpMat
<
T
>
>
(
new
MISCMATHS
::
SpMat
<
T
>
(
m
,
n
,
irp
,
jcp
,
sp
,
nt
)))
{}
SparseBFMatrix
(
const
MISCMATHS
::
SpMat
<
T
>&
M
)
SparseBFMatrix
(
const
MISCMATHS
::
SpMat
<
T
>&
M
)
:
mp
(
std
::
shared_ptr
<
MISCMATHS
::
SpMat
<
T
>
>
(
new
MISCMATHS
::
SpMat
<
T
>
(
M
)))
{}
:
mp
(
std
::
shared_ptr
<
MISCMATHS
::
SpMat
<
T
>
>
(
new
MISCMATHS
::
SpMat
<
T
>
(
M
)))
{}
SparseBFMatrix
(
const
NEWMAT
::
Matrix
&
M
,
Utilities
::
NoOfThreads
nt
=
Utilities
::
NoOfThreads
(
1
))
SparseBFMatrix
(
const
NEWMAT
::
Matrix
&
M
,
Utilities
::
NoOfThreads
nt
=
Utilities
::
NoOfThreads
())
:
mp
(
std
::
shared_ptr
<
MISCMATHS
::
SpMat
<
T
>
>
(
new
MISCMATHS
::
SpMat
<
T
>
(
M
,
nt
)))
{}
:
mp
(
std
::
shared_ptr
<
MISCMATHS
::
SpMat
<
T
>
>
(
new
MISCMATHS
::
SpMat
<
T
>
(
M
,
nt
)))
{}
SparseBFMatrix
(
const
SparseBFMatrix
<
T
>&
M
)
SparseBFMatrix
(
const
SparseBFMatrix
<
T
>&
M
)
:
mp
(
std
::
shared_ptr
<
MISCMATHS
::
SpMat
<
T
>
>
(
new
MISCMATHS
::
SpMat
<
T
>
(
*
(
M
.
mp
))))
{}
:
mp
(
std
::
shared_ptr
<
MISCMATHS
::
SpMat
<
T
>
>
(
new
MISCMATHS
::
SpMat
<
T
>
(
*
(
M
.
mp
))))
{}
...
...
This diff is collapsed.
Click to expand it.
splinterpolator.h
+
2
−
2
View file @
6ce68c52
...
@@ -59,7 +59,7 @@ public:
...
@@ -59,7 +59,7 @@ public:
const
std
::
vector
<
ExtrapolationType
>&
et
,
const
std
::
vector
<
ExtrapolationType
>&
et
,
unsigned
int
order
=
3
,
unsigned
int
order
=
3
,
bool
copy_low_order
=
true
,
bool
copy_low_order
=
true
,
Utilities
::
NoOfThreads
nthr
=
Utilities
::
NoOfThreads
(
1
),
Utilities
::
NoOfThreads
nthr
=
Utilities
::
NoOfThreads
(),
double
prec
=
1e-8
,
double
prec
=
1e-8
,
bool
data_are_coefs
=
false
)
bool
data_are_coefs
=
false
)
:
_valid
(
false
),
_own_coef
(
false
),
_coef
(
0
),
_cptr
(
0
),
_ndim
(
0
),
_nthr
(
nthr
.
_n
)
:
_valid
(
false
),
_own_coef
(
false
),
_coef
(
0
),
_cptr
(
0
),
_ndim
(
0
),
_nthr
(
nthr
.
_n
)
...
@@ -71,7 +71,7 @@ public:
...
@@ -71,7 +71,7 @@ public:
ExtrapolationType
et
=
Zeros
,
ExtrapolationType
et
=
Zeros
,
unsigned
int
order
=
3
,
unsigned
int
order
=
3
,
bool
copy_low_order
=
true
,
bool
copy_low_order
=
true
,
Utilities
::
NoOfThreads
nthr
=
Utilities
::
NoOfThreads
(
1
),
Utilities
::
NoOfThreads
nthr
=
Utilities
::
NoOfThreads
(),
double
prec
=
1e-8
,
double
prec
=
1e-8
,
bool
data_are_coefs
=
false
)
bool
data_are_coefs
=
false
)
:
_valid
(
false
),
_own_coef
(
false
),
_coef
(
0
),
_cptr
(
0
),
_ndim
(
0
),
_nthr
(
nthr
.
_n
)
:
_valid
(
false
),
_own_coef
(
false
),
_coef
(
0
),
_cptr
(
0
),
_ndim
(
0
),
_nthr
(
nthr
.
_n
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment