mirror of
https://github.com/boostorg/python.git
synced 2026-01-29 19:52:16 +00:00
Add license file and license header to source files.
This commit is contained in:
@@ -1,4 +1,10 @@
|
||||
# -*- python -*-
|
||||
|
||||
# Copyright Jim Bosch 2010-2012.
|
||||
# Distributed under the Boost Software License, Version 1.0.
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
Import("env")
|
||||
|
||||
import os
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
# Copyright Jim Bosch 2010-2012.
|
||||
# Distributed under the Boost Software License, Version 1.0.
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
import numpy
|
||||
import gaussian
|
||||
|
||||
|
||||
@@ -1,6 +1,11 @@
|
||||
// Copyright Ankit Daftery 2011-2012.
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
/**
|
||||
* @brief An example to show how to create ndarrays with built-in python data types, and extract the types and values
|
||||
* of member variables
|
||||
* @brief An example to show how to create ndarrays with built-in python data types, and extract
|
||||
* the types and values of member variables
|
||||
*
|
||||
* @todo Add an example to show type conversion.
|
||||
* Add an example to show use of user-defined types
|
||||
|
||||
@@ -1,7 +1,11 @@
|
||||
// Copyright Ankit Daftery 2011-2012.
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
/**
|
||||
* @brief An example to show how to access data using raw pointers.This shows that you can use and manipulate data in either Python or C++ and have the changes
|
||||
* reflected in both
|
||||
*
|
||||
* @brief An example to show how to access data using raw pointers. This shows that you can use and
|
||||
* manipulate data in either Python or C++ and have the changes reflected in both.
|
||||
*/
|
||||
|
||||
#include <boost/numpy.hpp>
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
// Copyright Jim Bosch 2010-2012.
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
#include <boost/numpy.hpp>
|
||||
|
||||
#include <cmath>
|
||||
|
||||
@@ -1,8 +1,14 @@
|
||||
// Copyright Ankit Daftery 2011-2012.
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
/**
|
||||
* @brief 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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <boost/numpy.hpp>
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
// Copyright Ankit Daftery 2011-2012.
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
/**
|
||||
* @brief An example to demonstrate use of universal functions or ufuncs
|
||||
*
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
// Copyright Jim Bosch 2011-2012.
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
/**
|
||||
* A simple example showing how to wrap a couple of C++ functions that
|
||||
* operate on 2-d arrays into Python functions that take NumPy arrays
|
||||
|
||||
Reference in New Issue
Block a user