Skip to content
This repository has been archived by the owner on Oct 10, 2022. It is now read-only.

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
  • Loading branch information
ulises-jeremias committed Sep 22, 2018
2 parents 5541d51 + 168399c commit b54133e
Show file tree
Hide file tree
Showing 58 changed files with 835 additions and 755 deletions.
4 changes: 0 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ script:
- cmake --version
- cmake -trace --warn-uninitialized --warn-unused_vars -Wdev -G "Unix Makefiles" .. -DCML_BUILD_TESTS=ON $FLAGS -DCMAKE_C_FLAGS=$C_FLAGS
- make && ctest
- echo "Tests for static library"
- ./test/test_cml_static
- echo "Tests for shared library"
- ./test/test_cml_shared

addons:
apt:
Expand Down
60 changes: 60 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# Change Log

All notable changes to this project will be documented in this file.

## 1.10.4 - 2/3/2018 - Ulises Jeremias Cornejo Fandos <mailto:ulisescf.24@gmail.com>

After a long time, it is decided to continue recording the growth of the library through this document. Between the last record and the current state of the library, it has suffered a lot of changes.

V1.0 represents a turning point in the development of the library. From now on it is expected to be able to document in detail each of the changes made.

#### Routines available in CML

The library covers a wide range of topics in numerical computing.
Routines are available for the following areas,

- Mathematical Functions
- Complex Numbers
- Special Functions
- Quaternions
- Differential Equations
- Numerical Differentiation
- IEEE Floating-Point
- Physical Constants
- Easing Functions
- Statistics
- Blocks
- Vector _(Valarrays)_ and Matrices
- Sorting Methods
- One Dimensional Root-Finding

## 1.0 - 19/7/2017

It is uploaded to the master branch of the repository cml the new reimplementation of the library, which takes a new approach, changing and improving each of the proportional mathematical definitions. It restarts the previous version, quickly reaching version 1.0.

* * *

# Discontinued version change Log

## 1.0 - 4/3/2017

This version means a complete re-implementation of the library. From this moment we take into account something very important for the development of cml: C is not an object-oriented programming language and should never be.

## 0.3 - 3/30/2017

### Added

- new types added
- mathematical fields definition

### Changed

- filesystem changes
- object-oriented programming in the development of algebraic structures
- eulerian trigonometry definitions
- restructuring of library configuration structures

### Fixed

- minimum errors in function resolution performance
- errors in Eulerian trigonometry functions definition
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# cml
# CMathL

[![Build Status](https://travis-ci.org/CMATHL/cml.svg?branch=master)](https://travis-ci.org/CMATHL/cml) [![Documentation Status](https://readthedocs.org/projects/cml/badge/?version=latest)](http://cml.readthedocs.io/en/latest/?badge=latest) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
[![Build Status](https://travis-ci.org/ScientificC/cmathl.svg?branch=master)](https://travis-ci.org/ScientificC/cmathl) [![Documentation Status](https://readthedocs.org/projects/cml/badge/?version=latest)](http://cml.readthedocs.io/en/latest/?badge=latest) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)

CML is a pure-C math library with a great variety of mathematical functions. It is almost 100% C89/C90 compliant.
CMathL _(CML)_ is a pure-C math library with a great variety of mathematical functions. It is almost 100% C89/C90 compliant.

You can read the [documentation](http://cml.readthedocs.io/) to learn more about CML.

Expand All @@ -27,7 +27,7 @@ You can read the [documentation](http://cml.readthedocs.io/) to learn more about
NOTE: This will install in /usr/local. You probably don't want that. But this is a quick start. The best thing to do is to combine this library with your other code into a larger CMake project/solution.

```shell
$ git clone https://github.com/CMATHL/cml.git
$ git clone https://github.com/ScientificC/cmathl.git
$ cd cml
$ mkdir build
$ cd build
Expand All @@ -44,7 +44,7 @@ You can read more about in the following [chapter](http://cml.readthedocs.io/en/
To run the test suite from a command prompt, using a Makefile-like generator, execute the following:

```shell
$ git clone https://github.com/CMATHL/cml.git
$ git clone https://github.com/ScientificC/cmathl.git
$ cd cml
$ mkdir build
$ cd build
Expand Down
6 changes: 3 additions & 3 deletions cmake/CMLFlags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,21 @@ ENDIF()

OPTION(CML_NO_STDBOOL "Use stdbool.h" BOOL:FALSE)
IF(CML_NO_STDBOOL)
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DCML_NO_STDBOOL=\"${CML_NO_ALIASES}\"")
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DCML_NO_STDBOOL=\"${CML_NO_STDBOOL}\"")
ELSE()
MESSAGE(STATUS "Using stdbool.h")
ENDIF()

OPTION(CML_NO_STDINT "Use stdint.h" BOOL:FALSE)
IF(CML_NO_STDINT)
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DCML_NO_STDINT=\"${CML_NO_ALIASES}\"")
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DCML_NO_STDINT=\"${CML_NO_STDINT}\"")
ELSE()
MESSAGE(STATUS "Using stdint.h")
ENDIF()

OPTION(CML_NO_MATH "Use math.h" BOOL:FALSE)
IF(CML_NO_MATH)
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DCML_NO_MATH=\"${CML_NO_ALIASES}\"")
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DCML_NO_MATH=\"${CML_NO_MATH}\"")
ELSE()
MESSAGE(STATUS "Using math.h")
ENDIF()
1 change: 0 additions & 1 deletion cml/include/cml.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#undef _CML_COMMON_H_

#include <cml/config.h>
#include <cml/errno.h>
#include <cml/ieee.h>
#include <cml/minmax.h>

Expand Down
8 changes: 4 additions & 4 deletions cml/include/cml/complex.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ __CML_BEGIN_DECLS

cml_complex_t cml_complex(double, double);
cml_complex_t cml_complex_polar(double, double);
cml_complex_t cml_complex_zero();
cml_complex_t cml_complex_nan();
cml_complex_t cml_complex_inf();
cml_complex_t cml_complex_ninf();
cml_complex_t cml_complex_zero(void);
cml_complex_t cml_complex_nan(void);
cml_complex_t cml_complex_inf(void);
cml_complex_t cml_complex_ninf(void);
cml_complex_t cml_complex_clone(cml_complex_t);

__CML_END_DECLS
Expand Down
132 changes: 0 additions & 132 deletions cml/include/cml/errno.h

This file was deleted.

54 changes: 0 additions & 54 deletions cml/include/cml/errno/message.h

This file was deleted.

2 changes: 1 addition & 1 deletion cml/include/cml/ieee/endian.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

__CML_BEGIN_DECLS

int cml_little_endian_p();
int cml_little_endian_p(void);

__CML_END_DECLS

Expand Down
6 changes: 3 additions & 3 deletions cml/include/cml/math.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@

__CML_BEGIN_DECLS

double cml_nan();
double cml_inf();
double cml_ninf();
double cml_nan(void);
double cml_inf(void);
double cml_ninf(void);
char* cml_as_string(double);

#include <cml/math/basic.h>
Expand Down
2 changes: 1 addition & 1 deletion cml/include/cml/quaternion.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ __CML_BEGIN_DECLS

cml_quaternion_t cml_quaternion(double, double, double, double);
cml_quaternion_t cml_quaternion_clone(cml_quaternion_t);
cml_quaternion_t cml_quaternion_identity();
cml_quaternion_t cml_quaternion_identity(void);
cml_quaternion_t cml_quaternion_from_axis_anglef3(double, double, double, double);
cml_quaternion_t cml_quaternion_from_spherical_coords(double, double);
cml_quaternion_t cml_quaternion_from_euler_angles(double, double, double);
Expand Down
2 changes: 1 addition & 1 deletion cml/include/cml/roots.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ __CML_END_DECLS
do { \
*_yp = CML_FN_EVAL(_f,_x); \
if (!cml_isfinite(*_yp)) \
CML_ERROR("function value is not finite", CML_EBADFUNC); \
SCIC_ERROR("function value is not finite", SCIC_EBADFUNC); \
} while (0)

#endif
6 changes: 3 additions & 3 deletions cml/include/cml/sort/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ __CML_BEGIN_DECLS

typedef int (*cml_comparison_fn_t)(const void *, const void *);

void cml_qsort(void *a, size_t n, size_t es, cml_comparison_fn_t cmp);
void cml_qsort(void *array, size_t count, size_t size, cml_comparison_fn_t cmp);

void cml_heapsort(void * array, size_t count, size_t size, cml_comparison_fn_t compare);
int cml_heapsort_index(size_t * p, const void * array, size_t count, size_t size, cml_comparison_fn_t compare);
void cml_heapsort(void *array, size_t count, size_t size, cml_comparison_fn_t compare);
int cml_heapsort_index(size_t *p, const void *array, size_t count, size_t size, cml_comparison_fn_t compare);

__CML_END_DECLS

Expand Down

0 comments on commit b54133e

Please sign in to comment.