Stan  1.0
probability, sampling & optimization
Classes | Namespaces | Macros | Functions
stack_alloc.hpp File Reference
#include <cstdlib>
#include <cstddef>
#include <sstream>
#include <stdexcept>
#include <stdint.h>
#include <vector>

Go to the source code of this file.

Classes

class  stan::memory::stack_alloc
 An instance of this class provides a memory pool through which blocks of raw memory may be allocated and then collected simultaneously. More...
 

Namespaces

 stan
 Probability, optimization and sampling library.
 
 stan::memory
 (Expert) Allocate, free, and manage underlying system memory.
 

Macros

#define likely(x)   (x)
 
#define unlikely(x)   (x)
 

Functions

template<typename T >
bool stan::memory::is_aligned (T *ptr, unsigned int bytes_aligned)
 Return true if the specified pointer is aligned on the number of bytes. More...
 

Macro Definition Documentation

◆ likely

#define likely (   x)    (x)

Definition at line 15 of file stack_alloc.hpp.

◆ unlikely

#define unlikely (   x)    (x)

Definition at line 16 of file stack_alloc.hpp.


     [ Stan Home Page ] © 2011–2012, Stan Development Team.