Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] View of /branches/vis15/src/lib/include/diderot/base.hxx
ViewVC logotype

View of /branches/vis15/src/lib/include/diderot/base.hxx

Parent Directory Parent Directory | Revision Log Revision Log

Revision 3916 - (download) (as text) (annotate)
Sat May 28 12:01:02 2016 UTC (2 years, 9 months ago) by jhr
File size: 851 byte(s)
  Working on merge: code generation
/*! \file base.hxx
 * \author John Reppy

 * This code is part of the Diderot Project (http://diderot-language.cs.uchicago.edu)
 * COPYRIGHT (c) 2016 The University of Chicago
 * All rights reserved.


#include <teem/air.h>
#include <teem/biff.h>
#include <teem/nrrd.h>
#include <string>
#include <ostream>
#include <iostream>

namespace diderot {

  // vector types
    template <typename REAL> using vec2 = REAL[2];
    template <typename REAL> using vec3 = REAL[3];

  // matrix types
    template <typename REAL> using mat2x2 = REAL[4];
    template <typename REAL> using mat3x3 = REAL[9];
    template <typename REAL> using mat4x4 = REAL[16];

    Nrrd *load_nrrd_file (struct WorldBase *wrld, std::string const &name);

} // namespace diderot

#endif // !_DIDEROT_BASE_HXX_

ViewVC Help
Powered by ViewVC 1.0.0