|
OpenMS
2.6.0
|
Go to the documentation of this file.
40 #include <OpenMS/config.h>
66 template <
typename Value>
108 for (i = 1; i < j; i++)
152 for (i = 1; i < j; i++)
460 for (
Size j = 0; j < i; ++j)
514 template <
typename Value>
519 std::ios_base::fmtflags flag_backup = os.setf(std::ios::scientific);
520 std::streamsize precision_backup = os.precision();
529 os << matrix(i, j) <<
'\t';
533 os.flags(flag_backup);
534 os.precision(precision_backup);
Out of memory exception.
Definition: Exception.h:471
~DistanceMatrix()
destructor
Definition: DistanceMatrix.h:174
ValueType ** matrix_
sparse element not to be included in base container
Definition: DistanceMatrix.h:487
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
std::pair< SizeType, SizeType > getMinElementCoordinates() const
Indexpair of minimal element.
Definition: DistanceMatrix.h:476
SizeType dimensionsize() const
gives the number of rows (i.e. number of columns)
Definition: DistanceMatrix.h:418
#define OPENMS_PRECONDITION(condition, message)
Precondition macro.
Definition: openms/include/OpenMS/CONCEPT/Macros.h:136
Size SizeType
Definition: DistanceMatrix.h:78
DistanceMatrix(const DistanceMatrix &source)
copy constructor
Definition: DistanceMatrix.h:138
Out of range exception.
Definition: Exception.h:319
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
const ValueType getValue(SizeType i, SizeType j) const
gets a value at a given position:
Definition: DistanceMatrix.h:212
bool operator==(DistanceMatrix< ValueType > const &rhs) const
Equality comparator.
Definition: DistanceMatrix.h:455
void updateMinElement()
keep track of the actual minimum element after altering the matrix
Definition: DistanceMatrix.h:428
value_type ValueType
Definition: DistanceMatrix.h:79
A two-dimensional distance matrix, similar to OpenMS::Matrix.
Definition: DistanceMatrix.h:67
ValueType operator()(SizeType i, SizeType j)
gets a value at a given position (read only):
Definition: DistanceMatrix.h:200
void setValue(SizeType i, SizeType j, ValueType value)
sets a value at a given position:
Definition: DistanceMatrix.h:263
std::ostream & operator<<(std::ostream &os, const AccurateMassSearchResult &amsr)
unsigned int UInt
Unsigned integer type.
Definition: Types.h:94
void resize(SizeType dimensionsize, Value value=Value())
resizing the container
Definition: DistanceMatrix.h:349
ValueType getValue(SizeType i, SizeType j)
gets a value at a given position:
Definition: DistanceMatrix.h:237
constexpr Int writtenDigits< double >(const double &)
Number of digits commonly used for writing a double (a.k.a. precision).
Definition: Types.h:219
SizeType dimensionsize_
number of accessibly stored rows (i.e. number of columns)
Definition: DistanceMatrix.h:491
DistanceMatrix & operator=(const DistanceMatrix &rhs)
assignment operator (unsafe)
Definition: DistanceMatrix.h:497
const ValueType operator()(SizeType i, SizeType j) const
gets a value at a given position (read only):
Definition: DistanceMatrix.h:189
DistanceMatrix(SizeType dimensionsize, Value value=Value())
detailed constructor
Definition: DistanceMatrix.h:97
DistanceMatrix()
default constructor
Definition: DistanceMatrix.h:85
void clear()
reset all
Definition: DistanceMatrix.h:327
SizeType init_size_
number of actually stored rows
Definition: DistanceMatrix.h:489
Value value_type
Definition: DistanceMatrix.h:73
std::pair< SizeType, SizeType > min_element_
index of minimal element(i.e. number in underlying SparseVector)
Definition: DistanceMatrix.h:493
void reduce(SizeType j)
reduces DistanceMatrix by one dimension. first the jth row, then jth column
Definition: DistanceMatrix.h:397
void setValueQuick(SizeType i, SizeType j, ValueType value)
sets a value at a given position:
Definition: DistanceMatrix.h:309