We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f10cac6 commit 7c7b02eCopy full SHA for 7c7b02e
core/algorithms/sym.cc
@@ -8,6 +8,8 @@ using namespace cadabra;
8
sym::sym(const Kernel& k, Ex& tr, Ex& objs, bool s)
9
: Algorithm(k, tr), objects(objs), sign(s)
10
{
11
+ if(objects.size()==0)
12
+ throw ArgumentException("sym/asym: need a list of objects over which to (anti)symmetrise.");
13
}
14
15
bool sym::can_apply(iterator it)
0 commit comments