Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
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
Package registry
Model registry
Operate
Terraform modules
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Romin Tomasetti
gmsh
Commits
13036385
Commit
13036385
authored
11 years ago
by
Sebastien Blaise
Browse files
Options
Downloads
Patches
Plain Diff
fullMatrix: added getDataPtr const and non const
parent
5d25180e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Numeric/fullMatrix.h
+10
-0
10 additions, 0 deletions
Numeric/fullMatrix.h
with
10 additions
and
0 deletions
Numeric/fullMatrix.h
+
10
−
0
View file @
13036385
...
@@ -111,6 +111,13 @@ class fullVector
...
@@ -111,6 +111,13 @@ class fullVector
*/
*/
inline
const
scalar
*
getDataPtr
()
const
{
return
_data
;
}
inline
const
scalar
*
getDataPtr
()
const
{
return
_data
;
}
/**
@return Returns a pointer to this fullVector data.@n
This pointer will point to the following memory segment:
[(*this)(0), (*this)(1), ..., (*this)(this->size() - 1)].
*/
inline
scalar
*
getDataPtr
()
{
return
_data
;
}
/**
/**
@param i A vector index between 0 and size() - 1.
@param i A vector index between 0 and size() - 1.
@returns Returns the ith scalar of this fullVector.
@returns Returns the ith scalar of this fullVector.
...
@@ -444,6 +451,9 @@ class fullMatrix
...
@@ -444,6 +451,9 @@ class fullMatrix
return
(
*
this
)(
r
,
c
);
return
(
*
this
)(
r
,
c
);
}
}
inline
const
scalar
*
getDataPtr
()
const
{
return
_data
;
}
inline
scalar
*
getDataPtr
()
{
return
_data
;
}
// operations
// operations
inline
void
set
(
int
r
,
int
c
,
scalar
v
){
inline
void
set
(
int
r
,
int
c
,
scalar
v
){
#ifdef _DEBUG
#ifdef _DEBUG
...
...
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