Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
OpenWalnut Core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
44
Issues
44
List
Boards
Labels
Service Desk
Milestones
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
99d6de92
Commit
99d6de92
authored
Apr 07, 2011
by
Stefan Philips
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ADD] Add getWVector (for Eigen vector) to WValueSet
parent
2bb94c55
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
0 deletions
+23
-0
src/dataHandler/WValueSet.h
src/dataHandler/WValueSet.h
+9
-0
src/dataHandler/WValueSetBase.h
src/dataHandler/WValueSetBase.h
+6
-0
src/dataHandler/test/WValueSetBase_test.h
src/dataHandler/test/WValueSetBase_test.h
+8
-0
No files found.
src/dataHandler/WValueSet.h
View file @
99d6de92
...
...
@@ -186,6 +186,15 @@ public:
return
WValue
<
double
>
(
getWValue
(
i
)
);
}
/**
* \param i id of the WVector to retrieve
* \return The i-th WValue (stored in this value set) as WVector. There are size() such scalars.
*/
virtual
WVector_2
getWVector
(
size_t
i
)
const
{
return
(
WValue
<
double
>
(
getWValue
(
i
)
)
).
toWVector
();
}
/**
* Get the i'th vector
*
...
...
src/dataHandler/WValueSetBase.h
View file @
99d6de92
...
...
@@ -93,6 +93,12 @@ public:
*/
virtual
WValue
<
double
>
getWValueDouble
(
size_t
i
)
const
=
0
;
/**
* \param i id of the WVector to retrieve
* \return The i-th WValue (stored in this value set) as WVector. There are size() such scalars.
*/
virtual
WVector_2
getWVector
(
size_t
i
)
const
=
0
;
/**
* \return Dimension of the values in this ValueSet
*/
...
...
src/dataHandler/test/WValueSetBase_test.h
View file @
99d6de92
...
...
@@ -100,6 +100,14 @@ public:
return
WValue
<
double
>
(
size
()
);
}
/**
* \return The i-th WValue (stored in this value set) as WVector_2. There are size() such scalars.
*/
virtual
WVector_2
getWVector
(
size_t
/*i*/
)
const
{
return
WVector_2
(
size
()
);
}
/**
* This method returns the smallest value in the valueset. It does not handle vectors, matrices and so on well. It simply returns the
* smallest value in the data array. This is especially useful for texture scaling or other statistic tools (histograms).
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment