Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
Root
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
Environments
Terraform modules
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
Admin message
为了安全,强烈建议开启2FA双因子认证:User Settings -> Account -> Enable two-factor authentication!!!
Show more breadcrumbs
cxwx
Root
Commits
26514030
Commit
26514030
authored
5 years ago
by
Stefan Wunsch
Browse files
Options
Downloads
Patches
Plain Diff
[TMVA experimental] Clean-up RTensor tutorial
parent
331d02da
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tutorials/tmva/tmva001_RTensor.C
+4
-5
4 additions, 5 deletions
tutorials/tmva/tmva001_RTensor.C
with
4 additions
and
5 deletions
tutorials/tmva/tmva001_RTensor.C
+
4
−
5
View file @
26514030
...
@@ -14,7 +14,6 @@
...
@@ -14,7 +14,6 @@
/// \author Stefan Wunsch
/// \author Stefan Wunsch
using
namespace
TMVA
::
Experimental
;
using
namespace
TMVA
::
Experimental
;
using
namespace
ROOT
::
VecOps
;
void
tmva001_RTensor
()
void
tmva001_RTensor
()
{
{
...
@@ -23,10 +22,10 @@ void tmva001_RTensor()
...
@@ -23,10 +22,10 @@ void tmva001_RTensor()
cout
<<
x
<<
endl
;
cout
<<
x
<<
endl
;
// Assign some data
// Assign some data
x
(
{
0
,
0
}
)
=
1
;
x
(
0
,
0
)
=
1
;
x
(
{
0
,
1
}
)
=
2
;
x
(
0
,
1
)
=
2
;
x
(
{
1
,
0
}
)
=
3
;
x
(
1
,
0
)
=
3
;
x
(
{
1
,
1
}
)
=
4
;
x
(
1
,
1
)
=
4
;
// Apply transformations
// Apply transformations
auto
x2
=
x
.
Reshape
({
1
,
4
}).
Squeeze
();
auto
x2
=
x
.
Reshape
({
1
,
4
}).
Squeeze
();
...
...
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