]> www.ginac.de Git - ginac.git/blobdiff - ginac/isospin.cpp
- matrix::inverse(): Added a shortcut for sparse cases.
[ginac.git] / ginac / isospin.cpp
index fafdaec02af0ae8a4ad8a33bf7d1c41f0c39fc69..0eefc1210e0faf21213ddc8ec55bd4626a6f241a 100644 (file)
@@ -54,7 +54,7 @@ isospin::isospin()
 isospin::~isospin()
 {
        debugmsg("isospin destructor",LOGLEVEL_DESTRUCT);
-       destroy(0);
+       destroy(false);
 }
 
 isospin::isospin(const isospin & other)
@@ -67,7 +67,7 @@ const isospin & isospin::operator=(const isospin & other)
 {
        debugmsg("isospin operator=",LOGLEVEL_ASSIGNMENT);
        if (this != &other) {
-               destroy(1);
+               destroy(true);
                copy(other);
        }
        return *this;
@@ -207,9 +207,8 @@ ex isospin::simplify_ncmul(const exvector & v) const
 
 unsigned isospin::calchash(void) const
 {
-       hashvalue=golden_ratio_hash(golden_ratio_hash(0x55555556U ^
-                                                                                                 golden_ratio_hash(tinfo_key) ^
-                                                                                                 serial));
+       hashvalue = golden_ratio_hash(golden_ratio_hash(0x55555556U ^
+                   golden_ratio_hash(tinfo_key) ^ serial));
        setflag(status_flags::hash_calculated);
        return hashvalue;
 }
@@ -250,7 +249,7 @@ unsigned isospin::next_serial=0;
 //////////
 
 const isospin some_isospin;
-const type_info & typeid_isospin=typeid(some_isospin);
+const std::type_info & typeid_isospin = typeid(some_isospin);
 
 #ifndef NO_NAMESPACE_GINAC
 } // namespace GiNaC