70 if (static_cast<size_t>(v.
iGetSize()) != s.size()) {
75 for (
int i = 0; i < v.
iGetSize(); ++i) {
89 "invalid null or negative row number");
95 if (
rowScale.size() != unsigned(nrows)) {
98 "row number mismatch");
111 "invalid null or negative column number");
117 if (
colScale.size() != unsigned(ncols)) {
120 "column number mismatch");
virtual integer iGetNumCols(void) const =0
#define MBDYN_EXCEPT_ARGS
std::vector< doublereal > colScale
MatrixScaleBase(const SolutionManager::ScaleOpt &scale)
virtual integer iGetSize(void) const =0
std::ostream & Report(std::ostream &os) const
static VectorHandler & ScaleVector(VectorHandler &v, const std::vector< doublereal > &s)
void PrepareCols(const MatrixHandler &mh, integer &ncols)
virtual ~MatrixScaleBase()
#define ASSERT(expression)
std::vector< doublereal > rowScale
virtual std::ostream & vReport(std::ostream &os) const =0
void PrepareRows(const MatrixHandler &mh, integer &nrows)
virtual integer iGetNumRows(void) const =0