Birch
  • Main
  • Getting Started
    • Getting Started
    • Hello, World!
    • Bayesian Linear Regression
    • Markov Model
    • Next Steps
  • Concepts
    • Introduction
    • Distributions
    • Randoms
    • Expressions
    • Models
    • Graphical models
    • Programmatic models
    • Automatic differentiation
    • Automatic marginalization
    • Automatic conditioning
    • Delayed sampling
    • Probabilistic inference
    • Summary
  • Language
    • Comments
    • Variables
    • Types
    • Assignments
    • Control Flow
    • Assertions
    • Arrays
    • Optionals
    • Tuples
    • Functions
    • Lambdas
    • Programs
    • Operators
    • Classes
    • Aliases
    • Casts
    • Probability
  • Docs
  • About

count

function count(x:NumberLike) -> IntegerScalarLike

Count non-zero elements.

Birch

  • Main
  • Getting Started
    • Getting Started
    • Hello, World!
    • Bayesian Linear Regression
    • Markov Model
    • Next Steps
  • Concepts
    • Introduction
    • Distributions
    • Randoms
    • Expressions
    • Models
    • Graphical models
    • Programmatic models
    • Automatic differentiation
    • Automatic marginalization
    • Automatic conditioning
    • Delayed sampling
    • Probabilistic inference
    • Summary
  • Language
    • Comments
    • Variables
    • Types
    • Assignments
    • Control Flow
    • Assertions
    • Arrays
    • Optionals
    • Tuples
    • Functions
    • Lambdas
    • Programs
    • Operators
    • Classes
    • Aliases
    • Casts
    • Probability
  • Docs
  • About

Lawrence Murray

  • Home
  • About
  • Mastodon
  • GitHub
  • Newsletter
  • Feeds

About

Lawrence Murray is a writer, scientist, and engineer based in Bangkok. More...

© Copyright 2006–2026 Lawrence Murray. All rights reserved.