/* * Project: MoleCuilder * Description: creates and alters molecular systems * Copyright (C) 2012 University of Bonn. All rights reserved. * Please see the LICENSE file or "Copyright notice" in builder.cpp for details. */ /* * RealSpaceMatrixInvertibleValidator.cpp * * Created on: May 10, 2012 * Author: ankele */ // include config.h #ifdef HAVE_CONFIG_H #include #endif #include "CodePatterns/MemDebug.hpp" #include "RealSpaceMatrixInvertibleValidator.hpp" #include "LinearAlgebra/RealSpaceMatrix.hpp" bool RealSpaceMatrixInvertibleValidator::isValid(const RealSpaceMatrix & _value) const { return (_value.determinant() != 0); } bool RealSpaceMatrixInvertibleValidator::operator==(const Validator &_instance) const { const RealSpaceMatrixInvertibleValidator *inst = dynamic_cast(&_instance); if (inst) return true; else return false; } Validator< RealSpaceMatrix >* RealSpaceMatrixInvertibleValidator::clone() const { Validator< RealSpaceMatrix > *inst = new RealSpaceMatrixInvertibleValidator(); return inst; }