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
eef2ef04
Commit
eef2ef04
authored
Nov 14, 2016
by
Kirill Terekhov
Browse files
Code for submatrix
parent
c40b897e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Source/Headers/inmost_dense.h
View file @
eef2ef04
...
...
@@ -975,7 +975,16 @@ namespace INMOST
}
while
(
repeat
);
return
V
;
}
Matrix
SubMatrix
(
enumerator
ibeg
,
enumerator
jbeg
,
enumerator
iend
,
enumerator
jend
)
{
Matrix
ret
(
iend
-
ibeg
,
jend
-
jbeg
);
for
(
enumerator
i
=
ibeg
;
i
<
iend
;
++
i
)
{
for
(
enumerator
j
=
jbeg
;
j
<
jend
;
++
j
)
ret
(
i
-
ibeg
,
j
-
ibeg
)
=
(
*
this
)(
i
,
j
);
}
return
ret
;
}
};
typedef
Matrix
<
INMOST_DATA_REAL_TYPE
>
rMatrix
;
//shortcut for real matrix
...
...
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