-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Instantiate octave_base_diag and octave_base_sparse template classes.
* ov-base-diag-inst.cc: Add new file to explicitly instantiate template class octave_base_diag with types that need to be exported from liboctinterp. * ov-base-sparse-inst.cc: Add new file to explicitly instantiate template class octave_base_sparse with types that need to be exported from liboctinterp. * ov-base-diag.h, ov-base-sparse.h: Use macro for template export. Mark all member functions for export. * ov-bool-sparse.cc, ov-bool-sparse.h, ov-cx-diag.cc, ov-cx-diag.h, ov-cx-sparse.cc, ov-cx-sparse.h, ov-flt-cx-diag.cc, ov-flt-cx-diag.h, ov-flt-re-diag.cc, ov-flt-re-diag.h, ov-re-diag.cc, ov-re-diag.h, ov-re-sparse.cc, ov-re-sparse.h: Instantiate template classes octave_base_diag and octave_base_sparse only in one compilation unit. Move extern template class declarations to headers. * ov-base-sparse.cc: Include missing header. * libinterp/octave-value/module.mk: Add new files to build system. See: https://octave.discourse.group/t/6086
- Loading branch information
Showing
20 changed files
with
214 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
//////////////////////////////////////////////////////////////////////// | ||
// | ||
// Copyright (C) 2024 The Octave Project Developers | ||
// | ||
// See the file COPYRIGHT.md in the top-level directory of this | ||
// distribution or <https://octave.org/copyright/>. | ||
// | ||
// This file is part of Octave. | ||
// | ||
// Octave is free software: you can redistribute it and/or modify it | ||
// under the terms of the GNU General Public License as published by | ||
// the Free Software Foundation, either version 3 of the License, or | ||
// (at your option) any later version. | ||
// | ||
// Octave is distributed in the hope that it will be useful, but | ||
// WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU General Public License | ||
// along with Octave; see the file COPYING. If not, see | ||
// <https://www.gnu.org/licenses/>. | ||
// | ||
//////////////////////////////////////////////////////////////////////// | ||
|
||
#if defined (HAVE_CONFIG_H) | ||
# include "config.h" | ||
#endif | ||
|
||
#include "ov-base-diag.cc" | ||
|
||
// instantiate template class with types that need to be exported from library | ||
|
||
template class OCTINTERP_API octave_base_diag<FloatComplexDiagMatrix, FloatComplexMatrix>; | ||
template class OCTINTERP_API octave_base_diag<FloatDiagMatrix, FloatMatrix>; | ||
template class OCTINTERP_API octave_base_diag<ComplexDiagMatrix, ComplexMatrix>; | ||
template class OCTINTERP_API octave_base_diag<DiagMatrix, Matrix>; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
//////////////////////////////////////////////////////////////////////// | ||
// | ||
// Copyright (C) 2024 The Octave Project Developers | ||
// | ||
// See the file COPYRIGHT.md in the top-level directory of this | ||
// distribution or <https://octave.org/copyright/>. | ||
// | ||
// This file is part of Octave. | ||
// | ||
// Octave is free software: you can redistribute it and/or modify it | ||
// under the terms of the GNU General Public License as published by | ||
// the Free Software Foundation, either version 3 of the License, or | ||
// (at your option) any later version. | ||
// | ||
// Octave is distributed in the hope that it will be useful, but | ||
// WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU General Public License | ||
// along with Octave; see the file COPYING. If not, see | ||
// <https://www.gnu.org/licenses/>. | ||
// | ||
//////////////////////////////////////////////////////////////////////// | ||
|
||
#if defined (HAVE_CONFIG_H) | ||
# include "config.h" | ||
#endif | ||
|
||
#include "ov-base-sparse.cc" | ||
|
||
// instantiate template class with types that need to be exported from library | ||
|
||
template class OCTINTERP_API octave_base_sparse<SparseBoolMatrix>; | ||
template class OCTINTERP_API octave_base_sparse<SparseComplexMatrix>; | ||
template class OCTINTERP_API octave_base_sparse<SparseMatrix>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.