aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/vasp/source/ops_arith.h
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2003-03-21 04:36:07 +0000
committerThomas Grill <xovo@users.sourceforge.net>2003-03-21 04:36:07 +0000
commit5697ebe98e16f1438d6feba09cb075b6a0f2a653 (patch)
treecaf213e0ce7a992096d10246878fd56c7eda9793 /externals/grill/vasp/source/ops_arith.h
parent9056179fcd52793c16112471d1d7fed45722194c (diff)
""
svn path=/trunk/; revision=488
Diffstat (limited to 'externals/grill/vasp/source/ops_arith.h')
-rw-r--r--externals/grill/vasp/source/ops_arith.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/externals/grill/vasp/source/ops_arith.h b/externals/grill/vasp/source/ops_arith.h
index 064ecb0e..dd8f88b3 100644
--- a/externals/grill/vasp/source/ops_arith.h
+++ b/externals/grill/vasp/source/ops_arith.h
@@ -2,7 +2,7 @@
VASP modular - vector assembling signal processor / objects for Max/MSP and PD
-Copyright (c) 2002 Thomas Grill (xovo@gmx.net)
+Copyright (c) 2002-2003 Thomas Grill (xovo@gmx.net)
For information on usage and redistribution, and for a DISCLAIMER OF ALL
WARRANTIES, see the file, "license.txt," in this distribution.
@@ -29,6 +29,8 @@ DEFOP(S,d_ssqr,ssqr,run)
DEFOP(S,d_sign,sign,run)
DEFOP(S,d_abs,abs,run)
+DEFOP(S,d_sumq,sumq,rop)
+
namespace VaspOp {
@@ -45,6 +47,8 @@ namespace VaspOp {
inline Vasp *m_sign(OpParam &p,CVasp &src,CVasp *dst = NULL) { return m_run(p,src,dst,VecOp::d_sign); } // sign function
inline Vasp *m_abs(OpParam &p,CVasp &src,CVasp *dst = NULL) { return m_run(p,src,dst,VecOp::d_abs); } // absolute values
+
+ inline Vasp *m_qsum(OpParam &p,CVasp &src) { return m_run(p,src,NULL,VecOp::d_sumq); } // get sum of sample values
}
#endif