Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Kirill Terekhov
INMOST
Commits
5aaf8930
Commit
5aaf8930
authored
Aug 19, 2016
by
Kirill Terekhov
Browse files
Fix
parent
d408866a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Source/Headers/inmost_variable.h
View file @
5aaf8930
...
...
@@ -284,9 +284,9 @@ namespace INMOST
if
(
!
mask
||
e
->
GetMarker
(
mask
)
)
return
multivar_expression
(
e
->
RealArray
(
value_tag
)[
comp
],
e
->
IntegerArray
(
index_tag
)[
comp
]);
else
return
multivar_expression
(
e
->
Real
(
value_tag
));
return
multivar_expression
(
e
->
Real
Array
(
value_tag
)
[
comp
]
);
}
var_expression
operator
[](
const
Storage
&
e
)
const
{
return
var_expression
(
e
->
Real
(
value_tag
),(
!
mask
||
e
->
GetMarker
(
mask
))
?
e
->
Integer
(
index_tag
)
:
ENUMUNDEF
);}
var_expression
operator
[](
const
Storage
&
e
)
const
{
return
var_expression
(
e
->
Real
Array
(
value_tag
)
[
comp
]
,(
!
mask
||
e
->
GetMarker
(
mask
))
?
e
->
Integer
Array
(
index_tag
)
[
comp
]
:
ENUMUNDEF
);}
Tag
IndexTag
()
{
return
index_tag
;}
Tag
ValueTag
()
{
return
value_tag
;}
void
GetVariation
(
const
Storage
&
e
,
Sparse
::
Row
&
r
)
const
{
(
*
this
)[
e
].
GetJacobian
(
1.0
,
r
);
}
...
...
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