Psi4
Namespaces | Functions
mem.cc File Reference
#include <cstdlib>
#include "mem.h"
#include "opt_except.h"

Namespaces

 opt
 

Functions

void opt::zero_array (double *A, long int n)
 
void opt::zero_matrix (double **A, long int m, long int n)
 
void opt::zero_int_array (int *A, long int n)
 
void opt::zero_bool_array (bool *A, long int n)
 
double * opt::init_array (long int m)
 
int * opt::init_int_array (int m)
 
bool * opt::init_bool_array (int m)
 
void opt::free_array (double *f)
 
void opt::free_int_array (int *f)
 
void opt::free_bool_array (bool *f)
 
double ** opt::init_matrix (long int m, long int n)
 
double ** opt::unit_matrix (long int m)
 
void opt::unit_matrix (double **A, long int m)
 
void opt::free_matrix (double **A)
 
int ** opt::init_int_matrix (long int m, long int n)
 
void opt::free_int_matrix (int **A)
 
bool ** opt::init_bool_matrix (long int m, long int n)
 
void opt::free_bool_matrix (bool **A)
 
double * opt_init_array (long int m)
 
void opt_free_array (double *f)
 
void opt_matrix_copy (double **from, double **to, long int nr, long int nc)
 
double ** opt_init_matrix (long int m, long int n)
 
void opt_free_matrix (double **A)
 

Detailed Description

: memory allocation

Function Documentation

void opt_free_array ( double *  f)
void opt_free_matrix ( double **  A)
double* opt_init_array ( long int  m)
double** opt_init_matrix ( long int  m,
long int  n 
)
void opt_matrix_copy ( double **  from,
double **  to,
long int  nr,
long int  nc 
)