Skip to content

Commit

Permalink
Fixing whitespace errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
mgalloy committed Oct 9, 2012
1 parent 9f26bbf commit 59d7328
Show file tree
Hide file tree
Showing 376 changed files with 5,535 additions and 5,539 deletions.
16 changes: 8 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ set(VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}")
# required version of CMake
cmake_minimum_required(VERSION 2.8.3)

set(CMAKE_MODULE_PATH
${CMAKE_SOURCE_DIR}/CMake/Modules
${CMAKE_ROOT}/Modules
set(CMAKE_MODULE_PATH
${CMAKE_SOURCE_DIR}/CMake/Modules
${CMAKE_ROOT}/Modules
${CMAKE_MODULE_PATH}
)

Expand All @@ -30,31 +30,31 @@ add_custom_command(
OUTPUT api-docs/index.html
COMMAND idl -e mg_doc_library
DEPENDS ${PRO_FILES} ${DLM_FILES} ${SAV_FILES} ${IDLDOC_FILES}
)
)
add_custom_target(doc DEPENDS api-docs/index.html)

add_custom_command(
OUTPUT api-userdocs/index.html
COMMAND idl -e mg_userdoc_library
DEPENDS ${PRO_FILES} ${DLM_FILES} ${SAV_FILES} ${IDLDOC_FILES}
)
)
add_custom_target(userdoc DEPENDS api-userdocs/index.html)

add_custom_command(
OUTPUT api-dcdocs/idldoc-index.csv
COMMAND idl -e mg_dcdoc_library
DEPENDS ${PRO_FILES} ${DLM_FILES}
)
)
add_custom_target(dcdoc DEPENDS api-dcdocs/idldoc-index.csv)

add_custom_command(
OUTPUT mglib-test-results.html
COMMAND idl -quiet -IDL_QUIET 1 -e mg_run_unittests 2> /dev/null
DEPENDS ${PRO_FILES} ${C_FILES} ${DLM_FILES}
)
)
add_custom_target(unit DEPENDS mglib-test-results.html)

set_directory_properties(PROPERTIES
set_directory_properties(PROPERTIES
ADDITIONAL_MAKE_CLEAN_FILES "api-docs;api-userdocs;api-dcdocs;mglib-test-results.html")

install(FILES COPYING INSTALL README DESTINATION .)
Expand Down
16 changes: 8 additions & 8 deletions COPYING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ Copyright (c) 2007-2010, Michael Galloy <[email protected]>

All rights reserved.

Redistribution and use in source and binary forms, with or without
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

a. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
b. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
b. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
c. Neither the name of Michael Galloy nor the names of its contributors
may be used to endorse or promote products derived from this software
c. Neither the name of Michael Galloy nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
Expand Down Expand Up @@ -52,8 +52,8 @@ are met:
must display the following acknowledgment:
This product includes software developed by Randall Frank
and other unpaid contributors.
5. The name of Randall Frank may not be used to endorse or promote
products derived from this software without
5. The name of Randall Frank may not be used to endorse or promote
products derived from this software without
specific prior written permission.

THIS SOFTWARE IS PROVIDED BY RANDALL FRANK AND CONTRIBUTORS ``AS IS'' AND
Expand All @@ -72,7 +72,7 @@ SUCH DAMAGE.
LICENSE FOR BREWER COLOR TABLES
-------------------------------
Brewer color tables are provided courtesy of Brewer, Cynthia A., 2007.
Brewer color tables are provided courtesy of Brewer, Cynthia A., 2007.
http://www.ColorBrewer.org, accessed 20 October 2007.
Apache-Style Software License for ColorBrewer software and ColorBrewer Color
Expand Down
2 changes: 1 addition & 1 deletion INSTALL.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ There is a more complete configuration in `example_configure.sh` which specifies
After configuration, build mglib with::

make

And install with::

make install
Expand Down
22 changes: 11 additions & 11 deletions overview.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ IDL library of Michael Galloy.
BSD licensed

:Dirs:
./
./
Main utility routines
analysis/
analysis/
Various algorithms (sorting, sampling, etc.) and math helper routines
animation/
animation/
Classes to produce animations using object graphics.
cmdline_tools/
Routines useful at the IDL command line.
collection/
collection/
Objects implementing various types of collections.
cula/
CULAtools bindings.
Expand All @@ -28,23 +28,23 @@ IDL library of Michael Galloy.
a DLM in a quick and nearly automatic manner using the `MG_DLM` class.
dist_tools/cidl
Routines for creating hybrid C/IDL routines
envi/
envi/
ENVI user routines.
fileio/
File input/output routines.
gsl/
Wrappers for GNU Scientific Library (GSL) routines.
hdf/
Routines for reading/writing/querying HDF files.
hdf5/
hdf5/
Routines for reading/writing/querying HDF5 files.
indices/
indices/
Routines for handling index arrays.
install_tools/
install_tools/
Routines for installing new projects and their dependencies.
introspection/
Routines for inspecting variables and routines.
itools/
itools/
iTools related helpers and components.
markdown/
Wrapper for a C implementation of John Gruber's markdown.
Expand All @@ -56,9 +56,9 @@ IDL library of Michael Galloy.
Classes for doing object-oriented programming.
strings/
Routines for manipulating strings.
templating/
templating/
Tools for using templated output.
textmarkup/
textmarkup/
Classes for converting between text markup styles: rst, LaTex, and HTML.
updater/
Start of an automatic updater library.
Expand Down
2 changes: 1 addition & 1 deletion project/povray-screencast.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ The POV-Ray destination cannot handle all graphics atoms. Currently, it only sup
#. `IDLgrText`

Also, only the most common properties of these classes are supported.

Advanced usage
--------------

Expand Down
6 changes: 3 additions & 3 deletions src/analysis/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ set(DLM_NAME mg_${DIRNAME})

add_library("${DLM_NAME}" SHARED "${DLM_NAME}.c")

if (APPLE)
set_target_properties("${DLM_NAME}"
PROPERTIES
if (APPLE)
set_target_properties("${DLM_NAME}"
PROPERTIES
PREFIX ""
SUFFIX ".so"
)
Expand Down
6 changes: 3 additions & 3 deletions src/analysis/mg_acosh.pro
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

;+
; Inverse hyperbolic cosine. Uses the formula:
;
;
; $$\text{acosh}(z) = \ln(z + \sqrt{z + 1} \sqrt{z - 1})$$
;
; :Examples:
Expand All @@ -16,14 +16,14 @@
; .. image:: acosh.png
;
; :Returns:
; float, double, complex, or double complex depending on the input
; float, double, complex, or double complex depending on the input
;
; :Params:
; z : in, required, type=numeric
; input
;-
function mg_acosh, z
compile_opt strictarr

return, alog(z + sqrt(z + 1) * sqrt(z - 1))
end
4 changes: 2 additions & 2 deletions src/analysis/mg_alogm.pro
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function mg_alogm, m
compile_opt strictarr

eigenvals = la_eigenproblem(m, eigenvectors=evecs)
logm = evecs # diag_matrix(alog(eigenvals)) # invert(evecs)
logm = evecs # diag_matrix(alog(eigenvals)) # invert(evecs)

return, logm
end
4 changes: 2 additions & 2 deletions src/analysis/mg_arclength.pro
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
;-
function mg_arclength, x, y
compile_opt strictarr

_x = [shift(x, -1), 0.]
_y = [shift(y, -1), 0.]
d = sqrt((x - _x) * (x - _x) + (y - _y) * (y - _y))

return, total(d[0:n_elements(d) - 2L])
end

Expand Down
4 changes: 2 additions & 2 deletions src/analysis/mg_asinh.pro
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
; .. image:: asinh.png
;
; :Returns:
; float, double, complex, or double complex depending on the input
; float, double, complex, or double complex depending on the input
;
; :Params:
; z : in, required, type=numeric
; input
;-
function mg_asinh, z
compile_opt strictarr

return, alog(z + sqrt(1 + z*z))
end
4 changes: 2 additions & 2 deletions src/analysis/mg_atanh.pro
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

;+
; Inverse hyperbolic tangent. Uses the formula:
;
;
; $$\text{atanh}(z) = \frac{\ln(\frac{1 + z}{1 - z})}{2}$$
;
; :Examples:
Expand All @@ -16,7 +16,7 @@
; .. image:: atanh.png
;
; :Returns:
; float, double, complex, or double complex depending on the input
; float, double, complex, or double complex depending on the input
;
; :Params:
; z : in, required, type=numeric
Expand Down
2 changes: 1 addition & 1 deletion src/analysis/mg_choose.pro
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
;-
function mg_choose, m, n
compile_opt strictarr

return, round(exp(lngamma(m + 1.D) - lngamma(n + 1.D) - lngamma(m - n + 1.D)), /l64)
end
12 changes: 6 additions & 6 deletions src/analysis/mg_equal.pro
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
;
; :Returns:
; 1 if the two values are within the tolerance, 0 if not; for array values
; calculates the Euclidean distance between the two arrays or array and
; calculates the Euclidean distance between the two arrays or array and
; scalar
;
;
; :Params:
; a : in, required, type=numeric scalar/array
; first value(s) to compare
Expand All @@ -20,15 +20,15 @@
;-
function mg_equal, a, b, tolerance=tolerance
compile_opt strictarr

double = size(a, /type) eq 5L || size(b, /type) eq 5L
info = machar(double=double)

_tolerance = n_elements(tolerance) eq 0L ? info.eps : tolerance

diff = (abs(a - b)) ^ 2
if (n_elements(diff) gt 0L) then diff = total(diff)
diff = sqrt(diff)

return, diff lt _tolerance
end
Loading

0 comments on commit 59d7328

Please sign in to comment.