Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
QueryR
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Julien Lopez
QueryR
Commits
08375d00
Commit
08375d00
authored
8 years ago
by
Lukas Stadler
Browse files
Options
Downloads
Patches
Plain Diff
use attribute node in SpecialsUtils
parent
3ff79c88
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
com.oracle.truffle.r.nodes.builtin/src/com/oracle/truffle/r/nodes/builtin/base/infix/SpecialsUtils.java
+2
-2
2 additions, 2 deletions
...cle/truffle/r/nodes/builtin/base/infix/SpecialsUtils.java
with
2 additions
and
2 deletions
com.oracle.truffle.r.nodes.builtin/src/com/oracle/truffle/r/nodes/builtin/base/infix/SpecialsUtils.java
+
2
−
2
View file @
08375d00
...
...
@@ -107,8 +107,8 @@ class SpecialsUtils {
/**
* Checks whether the given (1-based) indexes are valid for the given matrix.
*/
protected
static
boolean
isValidIndex
(
RAbstractVector
vector
,
int
index1
,
int
index2
)
{
int
[]
dimensions
=
vector
.
getDimensions
();
protected
boolean
isValidIndex
(
RAbstractVector
vector
,
int
index1
,
int
index2
)
{
int
[]
dimensions
=
getDimensions
.
getDimensions
(
vector
);
return
dimensions
!=
null
&&
dimensions
.
length
==
2
&&
index1
>=
1
&&
index1
<=
dimensions
[
0
]
&&
index2
>=
1
&&
index2
<=
dimensions
[
1
];
}
}
...
...
This diff is collapsed.
Click to expand it.
Julien Lopez
@jlopez
mentioned in commit
dd8089f2
·
8 years ago
mentioned in commit
dd8089f2
mentioned in commit dd8089f29c8a01a8e12c004a8f638977544961dc
Toggle commit list
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