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

array

Class used to save arrays with symbolic or numeric values.

Functions

abs_

arccos

arccosh

arcsin

arcsinh

arctan

arctanh

concatenate

convert

Convert a numpy-, casadi- or nMPyC-array to another of these intances.

cos

cosh

diag

Creates an diagonal matrix from a given vector.

exp

eye

Creates an array defining the idendity.

log

matrix_power

max

min

norm

ones

Creates an array with only entries equal to one.

power

reshape

sin

sinh

sqrt

tan

tanh

zeros

Creates an array with only zero entries.

Attributes

inf

Constant to define infinity.

pi

Constant to define the number pi.