| Conditions | 3 |
| Total Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | #!/usr/bin/env python |
||
| 12 | def make_node(self, x, cov): |
||
| 13 | if x.type.ndim != 1: |
||
| 14 | raise TypeError('x must be a 1-d vector') |
||
| 15 | if cov.type.ndim != 2: |
||
| 16 | raise TypeError('cov must be a 2-d matrix') |
||
| 17 | return gof.Apply(self, [x, cov], [T.vector(dtype="float32")]) |
||
| 18 | |||
| 30 | return self.grad(inputs, eval_points) |