Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
INMOST
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Terekhov
INMOST
Commits
760ca043
Commit
760ca043
authored
Dec 25, 2017
by
Kirill Terekhov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
threshold for printing derivatives in variable
parent
a83e629e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
Source/Headers/inmost_expression.h
Source/Headers/inmost_expression.h
+2
-2
Source/Headers/inmost_sparse.h
Source/Headers/inmost_sparse.h
+4
-3
No files found.
Source/Headers/inmost_expression.h
View file @
760ca043
...
...
@@ -340,10 +340,10 @@ namespace INMOST
{
return
1
+
v
[
0
].
first
;
}
void
Print
()
const
void
Print
(
double
eps
=
-
1
)
const
{
std
::
cout
<<
value
<<
std
::
endl
;
entries
.
Print
();
entries
.
Print
(
eps
);
}
void
swap
(
multivar_expression
&
b
)
{
...
...
Source/Headers/inmost_sparse.h
View file @
760ca043
...
...
@@ -295,10 +295,11 @@ namespace INMOST
/// @param size New size of the row.
void
Resize
(
INMOST_DATA_ENUM_TYPE
size
)
{
data
.
resize
(
size
);}
/// Output all entries of the row.
void
Print
()
const
void
Print
(
double
eps
=
-
1
)
const
{
for
(
const_iterator
it
=
Begin
();
it
!=
End
();
++
it
)
std
::
cout
<<
"("
<<
it
->
first
<<
","
<<
it
->
second
<<
") "
;
std
::
cout
<<
std
::
endl
;
int
k
=
0
;
for
(
const_iterator
it
=
Begin
();
it
!=
End
();
++
it
)
if
(
fabs
(
it
->
second
)
>
eps
)
{
std
::
cout
<<
"("
<<
it
->
first
<<
","
<<
it
->
second
<<
") "
;
k
++
;
}
if
(
k
)
std
::
cout
<<
std
::
endl
;
}
/// Check whether the row is sorted.
bool
isSorted
()
const
;
...
...
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