Skip to content

Commit 95fd72b

Browse files
committed
comments
1 parent 3e7f41f commit 95fd72b

5 files changed

Lines changed: 6 additions & 5 deletions

File tree

include/hmat/hmat.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ HMAT_API hmat_clustering_algorithm_t* hmat_create_clustering_max_dof(const hmat_
202202
* delegate to an other algorithm.
203203
* @param algo the delegate algorithm
204204
* @param ratio ratio between the number of DOF in a cluster and
205-
* a span size so a DOF is concidered as large
205+
* a span size so a DOF is considered as large
206206
*/
207207
HMAT_API hmat_clustering_algorithm_t* hmat_create_clustering_span(
208208
const hmat_clustering_algorithm_t* algo, double ratio);

src/clustering.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ class SpanClusteringAlgorithm: public AxisAlignClusteringAlgorithm {
198198
double ratio_;
199199
public:
200200
/** @param ratio ratio between the number of DOF in a cluster and
201-
* a span size so a DOF is concidered as large */
201+
* a span size so a DOF is considered as large */
202202
SpanClusteringAlgorithm(const ClusteringAlgorithm &algo, double ratio);
203203
std::string str() const;
204204
ClusteringAlgorithm* clone() const;

src/compression.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,7 @@ void acaFull(ScalarArray<T> & m, ScalarArray<T>* & tmpA, ScalarArray<T>* & tmpB,
294294

295295
// performs the rank 1 operation m := m - va_nu*vb_nu^T
296296
// in order to nullify m->get(i_nu, j_nu) (the previous maximum value)
297+
// as well as the whole row i_nu and column j_nu
297298
m.rankOneUpdate(-1, va_nu, vb_nu);
298299

299300
// Update the estimate norm

src/scalar_array.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1328,7 +1328,7 @@ template<typename T> int ScalarArray<T>::modifiedGramSchmidt(ScalarArray<T> *res
13281328
pivmax = norm2_update[pivot];
13291329
relative_epsilon = prec * prec;
13301330
}
1331-
if (j<initialPivot) {
1331+
if (j<initialPivot) { // is it possible ?
13321332
pivot = j;
13331333
pivmax = 1.;
13341334
}
@@ -1363,7 +1363,7 @@ template<typename T> int ScalarArray<T>::modifiedGramSchmidt(ScalarArray<T> *res
13631363

13641364
// Remove the qj-component from vectors bk (k=j+1,...,n-1)
13651365
if (j<cols-1) {
1366-
int firstcol=std::max(j+1, initialPivot) ;
1366+
int firstcol=std::max(j+1, initialPivot) ; // should always be j+1, no ?
13671367
ScalarArray<T> bK(*this, 0, rows, firstcol, cols-firstcol); // All the columns of 'this' after column 'firstcol'
13681368
ScalarArray<T> aj_bK(r, j, 1, firstcol, cols-firstcol); // In 'r': row 'j', all the columns after column 'firstcol'
13691369
// Compute in 1 operation all the scalar products between aj and a_firstcol, ..., a_n

src/scalar_array.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ template<typename T> class ScalarArray {
562562
Vector(T* _m, int _rows):ScalarArray<T>(_m, _rows, 1){}
563563
Vector(int _rows):ScalarArray<T>(_rows, 1){}
564564
Vector(int _rows, bool zeroinit):ScalarArray<T>(_rows , 1 , zeroinit){}
565-
/** \brief Create Vector with column 'col' of existing ScalarArray
565+
/** \brief Create Vector with column '_col' of existing ScalarArray
566566
*/
567567
Vector(const ScalarArray<T> &d, int _col):ScalarArray<T>(d, 0, d.rows, _col, 1){}
568568
//~Vector(){}

0 commit comments

Comments
 (0)