From 203889c64e8079269e11aa1334a5447a9cac0649 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Sun, 13 Apr 2014 13:36:54 -0500 Subject: [PATCH] Deprecate pymbolic native Vector type --- pymbolic/primitives.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pymbolic/primitives.py b/pymbolic/primitives.py index 0eb6e0f..3bb6526 100644 --- a/pymbolic/primitives.py +++ b/pymbolic/primitives.py @@ -996,6 +996,13 @@ class Vector(Expression): assert isinstance(children, tuple) self.children = children + from warnings import warn + warn("pymbolic vectors are deprecated in favor of either " + "(a) numpy object arrays and " + "(b) pymbolic.geometric_algebra.MultiVector " + "(depending on the required semantics)", + DeprecationWarning) + def __nonzero__(self): for i in self.children: if is_nonzero(i): -- GitLab