5 std::vector<std::vector<std::vector<double>>> &vS,
6 std::vector<std::vector<std::vector<double>>> &v2s,
8 unsigned int const geodesicNumber = vS.size() - 1;
9 if(geodesicNumber == 0)
14 std::vector<std::vector<double>> sumVs;
16 for(
unsigned int i = 0; i < geodesicNumber; ++i) {
17 double const scalarProd
19 cost += scalarProd * scalarProd;
20 if(doPrint and geodesicNumber < 4) {
22 ss <<
" - " << i <<
" _ " << scalarProd;
28 ss <<
" - Ortho. Cost : " << cost;
35 std::vector<std::vector<std::vector<double>>> &vS,
36 std::vector<std::vector<std::vector<double>>> &v2s,
37 std::vector<std::vector<double>> &v,
38 std::vector<std::vector<double>> &v2,
40 std::vector<std::vector<std::vector<double>>> vSTemp = vS, v2sTemp = v2s;
42 v2sTemp.push_back(v2);
double verifyOrthogonality(std::vector< std::vector< std::vector< double > > > &vS, std::vector< std::vector< std::vector< double > > > &v2s, bool doPrint=true)
T dotProduct(const T *vA0, const T *vA1, const T *vB0, const T *vB1)
int multiAddVectorsFlatten(const std::vector< std::vector< std::vector< T > > > &a, const std::vector< std::vector< std::vector< T > > > &b, std::vector< std::vector< T > > &out)
TTK base package defining the standard types.
printMsg(debug::output::BOLD+" | | | | | . \\ | | (__| | / __/| |_| / __/| (_) |"+debug::output::ENDCOLOR, debug::Priority::PERFORMANCE, debug::LineMode::NEW, stream)