~ubuntu-branches/ubuntu/quantal/texmacs/quantal

« back to all changes in this revision

Viewing changes to src/Classes/Mathematics/properties.hpp

  • Committer: Bazaar Package Importer
  • Author(s): Atsuhito KOHDA, Kamaraju Kusumanchi, kohda
  • Date: 2008-04-06 15:11:41 UTC
  • mfrom: (1.1.7 upstream) (4.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080406151141-w0sg20jnv86mlt6f
Tags: 1:1.0.6.14-1
[Kamaraju Kusumanchi <kamaraju@gmail.com>]
* New upstream release
* 01_american.dpatch is updated
* Since thread support in guile-1.8 is now disabled, the segmentation faults
  should not arise anymore. More info at #439923. (Closes: #450499, #458685)
[kohda]
* This version fixed menu problem.  (Closes: #447083)
* Reverted orig.tar.gz to the upstream tarball.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
/******************************************************************************
3
 
* MODULE     : properties.hpp
4
 
* DESCRIPTION: Properties of mathematical data types
5
 
* COPYRIGHT  : (C) 2006  Joris van der Hoeven
6
 
*******************************************************************************
7
 
* This software falls under the GNU general public license and comes WITHOUT
8
 
* ANY WARRANTY WHATSOEVER. See the file $TEXMACS_PATH/LICENSE for more details.
9
 
* If you don't have this file, write to the Free Software Foundation, Inc.,
10
 
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
11
 
******************************************************************************/
12
 
 
13
 
#ifndef PROPERTIES_HPP
14
 
#define PROPERTIES_HPP
15
 
#include "math_tree.hpp"
16
 
 
17
 
template<typename T>
18
 
class unary_properties {
19
 
public:
20
 
  typedef T scalar_type;
21
 
  typedef T norm_type;
22
 
  typedef int index_type;
23
 
  static inline tree index_name (index_type i) {
24
 
    (void) i; return "x"; }
25
 
  static inline scalar_type access (T x, index_type var) {
26
 
    return x; }
27
 
};
28
 
 
29
 
template<typename T, typename U>
30
 
class binary_properties {
31
 
public:
32
 
  typedef U product_type;
33
 
};
34
 
 
35
 
#endif // PROPERTIES_H