nmpyc_array
Module for array definition and computation.
This module provides an array class and associated functions for corresponding matrix calculations.
The goal of this class and the individual functions is to enable compatibility of calculations with both casadi and numpy objects without changing the syntax of the program. This enables the user to program as easily as possible and at the same time to switch between symbolic and numeric calculation.
Classes
Class used to save arrays with symbolic or numeric values. |
Functions
Convert a numpy-, casadi- or nMPyC-array to another of these intances. |
|
Creates an diagonal matrix from a given vector. |
|
Creates an array defining the idendity. |
|
Creates an array with only entries equal to one. |
|
Creates an array with only zero entries. |
Attributes
Constant to define infinity. |
|
Constant to define the number pi. |