我想我记得在R中看过solve(t(X) %*% X)
的简写,但我不记得它是什么。有类似的东西吗?只需一种方法就可以减少击键次数?
答案 0 :(得分:3)
也许你在想# The column name used for counter_cache column. If this is nil,
# the #invited_by association is declared without counter_cache.
# Default: nil
config.invited_by_counter_cache = :invitations_count
?这不是更少的击键次数,而是更优雅,according to its help file,它可以比天真的结构略快。
crossprod()