Vectorized overloads of `logical_` functions

未關閉
#3,252 0 則留言 2 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
3/5
預估耗時
1-2 天
新手友好度
45/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
cpp
領域
backend

研究方向

首先定位現有的 stan::math::logical_eq、logical_neq、logical_lt、logical_lte、logical_gt 和 logical_gte 實作及其純量行為。為所列函式新增向量化涵蓋,使例如 vector == real 的運算式回傳 ints 陣列,然後根據從 stan-dev/stan#3300 連結的需求驗證其行為。

由索引模型根據 Issue 內容生成。

描述

feature

This would be required for https://github.com/stan-dev/stan/issues/3300

We'd like to be able to write things like vector == real and get back and array of ints. The math library functions required:

  • stan::math::logical_eq
  • stan::math::logical_neq
  • stan::math::logical_lt
  • stan::math::logical_lte
  • stan::math::logical_gt
  • stan::math::logical_gte
主要語言
C++
星號
845
分支
225
平均合併
4 天 21 小時
30 天內合併 PR
13

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

stan-dev/math 的其他 Issue

查看 stan-dev/math 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。