Help save net neutrality! Learn more.
Close

[082b02]: / src / modules / bugs / functions / Transpose.h  Maximize  Restore  History

Download this file

27 lines (21 with data), 708 Bytes

 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
#ifndef TRANSPOSE_H_
#define TRANSPOSE_H_
#include <function/ArrayFunction.h>
namespace jags {
namespace bugs {
class Transpose : public ArrayFunction
{
public:
Transpose();
void evaluate(double *value, std::vector<double const *> const &args,
std::vector<std::vector<unsigned int> > const &dims)
const;
std::vector<unsigned int>
dim(std::vector<std::vector<unsigned int> > const &dims) const;
bool checkParameterDim(std::vector<std::vector<unsigned int> > const &dims) const;
bool isScale(std::vector<bool> const &mask,
std::vector<bool> const &isfixed) const;
bool isDiscreteValued(std::vector<bool> const &mask) const;
};
}}
#endif /* TRANSPOSE_H_ */