Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
E
exatn
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
ORNL Quantum Computing Institute
exatn
Commits
e81b8f17
Commit
e81b8f17
authored
Feb 11, 2019
by
Dmitry I. Lyakh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added notes to Tensor class concerning TensorSignature.
parent
12906362
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
tensor.hpp
src/numerics/tensor.hpp
+19
-0
No files found.
src/numerics/tensor.hpp
View file @
e81b8f17
...
...
@@ -4,6 +4,25 @@ REVISION: 2018/12/18
Copyright (C) 2018-2018 Dmitry I. Lyakh (Liakh)
Copyright (C) 2018-2018 Oak Ridge National Laboratory (UT-Battelle) **/
/** NOTES:
Tensor specification requires:
(a) Symbolic tensor name;
(b) Tensor shape (extents of all tensor dimensions);
(c) Optional tensor signature.
Tensor signature identifies the tensor or its slice. Tensor signature
requires providing a pair<SpaceId,SubspaceId> for each tensor dimension.
It has two alternative specifications:
(a) SpaceId = SOME_SPACE: In this case, SubspaceId is the lower bound
of the specified tensor slice (0 means the full tensor). The upper
bound is computed by adding the dimension extent to the lower bound - 1.
The defining vector space (SOME_SPACE) is just an abstract vector space.
(b) SpaceId != SOME_SPACE: In this case, SpaceId refers to a registered
vector space and the SubspaceId refers to a registered subspace of
this vector space. The subspace will carry lower/upper bounds of the
specified tensor tensor slice. SubspaceId = 0 refers to the full space.
**/
#ifndef TENSOR_HPP_
#define TENSOR_HPP_
...
...
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