Prev Next adolc_alloc_mat

@(@\newcommand{\W}[1]{ \; #1 \; } \newcommand{\R}[1]{ {\rm #1} } \newcommand{\B}[1]{ {\bf #1} } \newcommand{\D}[2]{ \frac{\partial #1}{\partial #2} } \newcommand{\DD}[3]{ \frac{\partial^2 #1}{\partial #2 \partial #3} } \newcommand{\Dpow}[2]{ \frac{\partial^{#1}}{\partial {#2}^{#1}} } \newcommand{\dpow}[2]{ \frac{ {\rm d}^{#1}}{{\rm d}\, {#2}^{#1}} }@)@This is cppad-20221105 documentation. Here is a link to its current documentation .
Adolc Test Utility: Allocate and Free Memory For a Matrix

Syntax
mat = adolc_alloc_mat(mn)
adolc_free_mat(mat)

Purpose
Use the thread_alloc memory allocator to allocate and free memory that can be used as a matrix with the Adolc package.

m
Is the number of rows in the matrix.

n
Is the number of columns in the matrix.

mat
Is the matrix. To be specific, between a call to adolc_alloc_mat, and the corresponding call to adolc_free_mat, for i = 0 , ... , m-1 and j = 0 , ... , n-1 , mat[i][j] is the element in row i and column j .
Input File: speed/adolc/alloc_mat.cpp