This file is indexed.

/usr/include/sdpa_jordan.h is in libsdpa-dev 7.3.11+dfsg-1ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
/* -------------------------------------------------------------

This file is a component of SDPA
Copyright (C) 2004-2017 SDPA Project

This program 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 2 of the License, or
(at your option) any later version.

This program 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 this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA

------------------------------------------------------------- */

#ifndef __sdpa_jordan_h__
#define __sdpa_jordan_h__

#include "sdpa_struct.h"

namespace sdpa {

class WorkVariables;
  
class Jal
{
public:

  static double trace(DenseLinearSpace& aMat);

  // calculate the minimum eigen value of lMat*xMat*(lMat^T)
  // by Lanczos methods.
  // lMat is lower triangular, xMat is symmetric
  // block size > 20   : Lanczos method
  // block size <= 20  : QR method
  static double getMinEigen(DenseLinearSpace& lMat,
			    DenseLinearSpace& xMat,
			    WorkVariables& work);

  // calculate the minimum eigen value of xMat by QR method.
  static double getMinEigen(DenseLinearSpace& xMat,
			    WorkVariables& work);

  static bool getInvChol(DenseLinearSpace& invCholMat,
			 DenseLinearSpace& aMat,
			 DenseLinearSpace& workMat);

  static bool getInvCholAndInv(DenseLinearSpace& invCholMat,
			       DenseLinearSpace& inverseMat,
			       DenseLinearSpace& aMat,
			       DenseLinearSpace& workMat);

  static bool multiply(DenseLinearSpace& retMat,
		       DenseLinearSpace& aMat,
		       DenseLinearSpace& bMat,
		       double* scalar = NULL);
#if 0
// CAUTION!!! We don't initialize retMat to zero matrix for efficiently.
  static bool multiply(DenseLinearSpace& retMat,
		       SparseLinearSpace& aMat,
		       DenseLinearSpace& bMat,
		       double* scalar = NULL);
// CAUTION!!! We don't initialize retMat to zero matrix for efficiently.
  static bool multiply(DenseLinearSpace& retMat,
		       DenseLinearSpace& aMat,
		       SparseLinearSpace& bMat,
		       double* scalar = NULL);
#endif

  //  retMat = L_{A} B = (A * B + B * A)/2
  static bool jordan_product(DenseLinearSpace& retMat,
			     DenseLinearSpace& aMat,
			     DenseLinearSpace& bMat);
  //  retMat = A * B
  static bool ns_jordan_product(DenseLinearSpace& retMat,
				DenseLinearSpace& aMat,
				DenseLinearSpace& bMat);
  
  //  retMat = P_{A} B = A * B * A 
  static bool jordan_quadratic_product(DenseLinearSpace& retMat,
				       DenseLinearSpace& aMat,
				       DenseLinearSpace& bMat,
				       DenseLinearSpace& work);
  
  //  retMat = Q_{A,C} B = (A * B * C + C * B * A)/2
  static bool jordan_triple_product(DenseLinearSpace& retMat,
				    DenseLinearSpace& aMat,
				    DenseLinearSpace& bMat,
				    DenseLinearSpace& cMat,
				    DenseLinearSpace& work);

  //  retMat = A * B * C
  static bool ns_jordan_triple_product(DenseLinearSpace& retMat,
				       DenseLinearSpace& aMat,
				       DenseLinearSpace& bMat,
				       DenseLinearSpace& cMat,
				       DenseLinearSpace& work);

};

} // end of namespace 'sdpa'

#endif // __sdpa_jordan_h__