greta-dev / greta-dev/greta

apply not working on greta_array

Open
#514 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
607
Forks
67
Avg merge
3d 8h
Merged PRs (30d)
1

Description

Hi, I bumped into this weird problem today... hopefully there is a quick fix or I was just doing something wrong.

```
library(greta)
z <- normal(0, 1, dim = c(2, 3))
apply(z, 1, mean) # doesn't work
rowMeans(z) # works
```

Working on Ubuntu and `greta_0.4.2`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.