This repository has been archived by the owner on Oct 25, 2019. It is now read-only.
Made API more transparent
-
More consistent names:
cppmat::matrix
->cppmat::array
cppmat::matrix2
->cppmat::matrix
-
Introducing named constructors. The following is now possible:
-
For all matrix-classes:
cppmat::array<double> A = cppmat::array<double>::Arange()
cppmat::array<double> A = cppmat::array<double>::Zero()
cppmat::array<double> A = cppmat::array<double>::Ones()
cppmat::array<double> A = cppmat::array<double>::Constant(...)
cppmat::array<double> A = cppmat::array<double>::Copy(...)
The same functionality is available as member functions, e.g.
setArange
. -
For all view-classes:
cppmat::view::matrix2<double,4,2> A = cppmat::view::matrix2<double,4,2>::Map(...)
-
For all tensor-classes, see matrix-classes, and:
cppmat::cartesian::tensor4<double> A = cppmat::cartesian::tensor4<double>::I()
cppmat::cartesian::tensor4<double> A = cppmat::cartesian::tensor4<double>::Irt()
cppmat::cartesian::tensor4<double> A = cppmat::cartesian::tensor4<double>::Is()
cppmat::cartesian::tensor4<double> A = cppmat::cartesian::tensor4<double>::Id()
cppmat::cartesian::tensor4<double> A = cppmat::cartesian::tensor4<double>::II()
cppmat::cartesian::tensor2<double> A = cppmat::cartesian::tensor2<double>::I()
cppmat::cartesian::tensor2s<double> A = cppmat::cartesian::tensor2s<double>::I()
cppmat::cartesian::tensor2d<double> A = cppmat::cartesian::tensor2d<double>::I()
-
-
Removed constructors which featured some of the functionality of the named constructors, but relying on mistake sensitive overloads.
-
Removed
zeros
andones
functions, onlysetZero
andsetOnes
remain. -
Renamed
max
andmin
bymaxCoeff
andminCoeff
to stay closer to the syntax of Eigen. -
Renamed
arange
withsetArange
-
Removed
identity...
functions. This functionality has been replaced by the named constructors, which are significantly more transparent.