Skip to content
Snippets Groups Projects
Commit 9a7db6b9 authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

Specify internal or external linkage explicitly.

parent 795aedf0
No related branches found
No related tags found
No related merge requests found
......@@ -45,6 +45,7 @@ void truncateFile( std::string const& filename)
* position of the last one or std::string::npos if no file path separator was
* found.
*/
static
size_t findLastPathSeparator(std::string const& path)
{
return path.find_last_of("/\\");
......@@ -53,6 +54,7 @@ size_t findLastPathSeparator(std::string const& path)
/** Finds the position of last dot.
* This could be used to extract file extension.
*/
static
size_t findLastDot(std::string const& path)
{
return path.find_last_of(".");
......
......@@ -135,6 +135,7 @@ bool lineSegmentsIntersect(const GeoLib::Polyline* ply,
return false;
}
static
bool isPointInTriangle(const double p[3], const double a[3], const double b[3], const double c[3])
{
// criterion: p-b = u0 * (b - a) + u1 * (b - c); 0 <= u0, u1 <= 1, u0+u1 <= 1
......@@ -159,6 +160,7 @@ bool isPointInTriangle(const GeoLib::Point* p, const GeoLib::Point* a, const Geo
return isPointInTriangle(p->getCoords(), a->getCoords(), b->getCoords(), c->getCoords());
}
static
double getOrientedTriArea(GeoLib::Point const& a, GeoLib::Point const& b, GeoLib::Point const& c)
{
const double u[3] = { c[0] - a[0], c[1] - a[1], c[2] - a[2] };
......
......@@ -18,6 +18,7 @@
namespace MathLib {
static
bool generateDiagPrecond (unsigned n, unsigned const*const iA, unsigned const*const jA,
double const*const A, double* diag)
{
......@@ -44,6 +45,7 @@ bool generateDiagPrecond (unsigned n, unsigned const*const iA, unsigned const*co
return true;
}
static
bool generateDiagPrecondRowSum(unsigned n, unsigned const*const iA, double const*const A, double* diag)
{
unsigned idx; // first idx of next row
......@@ -64,6 +66,7 @@ bool generateDiagPrecondRowSum(unsigned n, unsigned const*const iA, double const
return true;
}
static
bool generateDiagPrecondRowMax(unsigned n, unsigned const*const iA, double const*const A, double* diag)
{
unsigned idx; // first idx of next row
......
......@@ -34,6 +34,7 @@
namespace MathLib {
extern
unsigned CG(CRSMatrix<double,unsigned> const * mat, double const * const b,
double* const x, double& eps, unsigned& nsteps)
{
......
......@@ -71,6 +71,7 @@ AdjMat* AdjMat::getMat(unsigned beg, unsigned end,
* @param iA array of size of the number of rows/columns + 1, array contains pointer into jA array
* @param jA array of the length of the number of non-zero entries (edges in the matrix graph)
*/
static
void genAdjMat(unsigned n, unsigned* &iA, unsigned* &jA)
{
unsigned i;
......@@ -152,6 +153,7 @@ void genAdjMat(unsigned n, unsigned* &iA, unsigned* &jA)
delete[] iAn;
}
static
void genFullAdjMat(unsigned n, unsigned* &iA, unsigned* &jA)
{
unsigned i;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment