The pois-solv package
We can now gather the four functions cmat_1d, cmat_2d, vecmat_convert
, and pois_fd
into an Octave package. There are a few advantages of packing the functions together rather than just copying the individual m-files:
The files are archived into single standard file format.
You can install the package easily with the
pkg
command, load and unload the functions, and not be concerned with where the functions are located (that is, if they are in the Octave search path).With the package, you can add any relevant information about the functionality.
You can upload the package to Octave-Forge.
There are a few things we need to do in order to package the functions properly.
Organizing files into the package directory
First you will need a package directory—we will call this directory poissolv1
, but you can call it whatever you want. Inside the package directory, we have the following files and directory:
1. The
DESCRIPTION
file: this text file contains a description of the package...