Functions
ndarray.cpp File Reference
#include <boost/numpy.hpp>
#include <iostream>
Include dependency graph for example/ndarray.cpp:

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 An example to show how to create ndarrays using arbitrary Python sequences.

Function Documentation

int main ( int  argc,
char **  argv 
)

An example to show how to create ndarrays using arbitrary Python sequences.

The Python sequence could be any object whose __array__ method returns an array, or any (nested) sequence. This example also shows how to create arrays using both unit and non-unit strides.

Definition at line 24 of file example/ndarray.cpp.



boost_numpy
Author(s): Jim Bosch, Ankit Daftery
autogenerated on Fri Aug 28 2015 10:10:40