aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/vasp/source/ops_assign.h
blob: a495eb3be85aeb0d7456a7f0db567d87b0ae8184 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/* 

VASP modular - vector assembling signal processor / objects for Max/MSP and PD

Copyright (c) 2002 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.  

*/

#ifndef __VASP_OPS_ASSIGN_H
#define __VASP_OPS_ASSIGN_H

#include "opfuns.h"

// Assignment functions

namespace VecOp {
    inline BL d_copy(OpParam &p) { return D__run<S,f_copy<S> >(p); }
    inline BL d_ccopy(OpParam &p) { return D__cun<S,f_copy<S> >(p); }

    inline BL d_set(OpParam &p) { return D__rbin<S,f_set<S> >(p); }
    inline BL d_cset(OpParam &p) { return D__cbin<S,f_set<S> >(p); }
}

namespace VaspOp {
	inline Vasp *m_set(OpParam &p,CVasp &src,const Argument &arg,CVasp *dst = NULL) { return m_rbin(p,src,arg,dst,VecOp::d_set); } // copy to (one vec or real)
	inline Vasp *m_cset(OpParam &p,CVasp &src,const Argument &arg,CVasp *dst = NULL) { return m_cbin(p,src,arg,dst,VecOp::d_cset); }  // complex copy (pairs of vecs or complex)

	Vasp *m_copy(OpParam &p,CVasp &src,CVasp &dst);
	Vasp *m_ccopy(OpParam &p,CVasp &src,CVasp &dst);
}

#endif