Skip to content

make some more functions externally available #71

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Thanks to S. Matsievskiy for bringing cmake to the project.

cmake_minimum_required(VERSION 3.0 FATAL_ERROR)
cmake_minimum_required(VERSION 3.14 FATAL_ERROR)

project(Sparselizard LANGUAGES CXX)

Expand Down
6 changes: 6 additions & 0 deletions src/formulation/mat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,12 @@ vec mat::eliminate(vec b)

indexmat mat::getainds(void) { errorifpointerisnull(); errorifinvalidated(); return rawmatptr->getainds(); }
indexmat mat::getdinds(void) { errorifpointerisnull(); errorifinvalidated(); return rawmatptr->getdinds(); }
indexmat mat::getarows(void) { errorifpointerisnull(); errorifinvalidated(); return rawmatptr->getarows(); }
indexmat mat::getdrows(void) { errorifpointerisnull(); errorifinvalidated(); return rawmatptr->getdrows(); }
indexmat mat::getacols(void) { errorifpointerisnull(); errorifinvalidated(); return rawmatptr->getacols(); }
indexmat mat::getdcols(void) { errorifpointerisnull(); errorifinvalidated(); return rawmatptr->getdcols(); }
densemat mat::getavals(void) { errorifpointerisnull(); errorifinvalidated(); return rawmatptr->getavals(); }
densemat mat::getdvals(void) { errorifpointerisnull(); errorifinvalidated(); return rawmatptr->getdvals(); }

Mat mat::getapetsc(void) { errorifpointerisnull(); errorifinvalidated(); return rawmatptr->getapetsc(); }
Mat mat::getdpetsc(void) { errorifpointerisnull(); errorifinvalidated(); return rawmatptr->getdpetsc(); }
Expand Down
6 changes: 6 additions & 0 deletions src/formulation/mat.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ class mat

indexmat getainds(void);
indexmat getdinds(void);
indexmat getarows(void);
indexmat getdrows(void);
indexmat getacols(void);
indexmat getdcols(void);
densemat getavals(void);
densemat getdvals(void);

Mat getapetsc(void);
Mat getdpetsc(void);
Expand Down
30 changes: 30 additions & 0 deletions src/formulation/rawmat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,36 @@ indexmat rawmat::getdinds(void)
return Dinds;
}

indexmat rawmat::getarows(void)
{
return Arows;
}

indexmat rawmat::getdrows(void)
{
return Drows;
}

indexmat rawmat::getacols(void)
{
return Acols;
}

indexmat rawmat::getdcols(void)
{
return Dcols;
}

densemat rawmat::getavals(void)
{
return Avals;
}

densemat rawmat::getdvals(void)
{
return Dvals;
}

Mat rawmat::getapetsc(void)
{
return Amat;
Expand Down
6 changes: 6 additions & 0 deletions src/formulation/rawmat.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,12 @@ class rawmat

indexmat getainds(void);
indexmat getdinds(void);
indexmat getarows(void);
indexmat getdrows(void);
indexmat getacols(void);
indexmat getdcols(void);
densemat getavals(void);
densemat getdvals(void);

Mat getapetsc(void);
Mat getdpetsc(void);
Expand Down