aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/vasp/source/ops_assign.h
blob: e80501f07c32de6a291175004376683794ef03fe (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 "opbase.h"

// Assignment functions

namespace VecOp {
	BL d_copy(OpParam &p); 
	BL d_set(OpParam &p); 

	BL d_ccopy(OpParam &p); 
	BL d_cset(OpParam &p); 
}

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

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

#endif