10 template<sdt Rows, sdt Cols,
class Real_,
int Options,
class Alloc_>
16 static const sdt rows = Rows;
17 static const sdt cols = Cols;
18 static const int options = Options;
23 template<sdt Rows, sdt Cols,
class Real,
int Options,
class Alloc>
MatrixS & fromScalar(Real f)
Initialize with scalar in every element.
Definition: Base.h:72
(m x n)-dimensional matrix
Definition: Matrix.h:24
Alloc_ Alloc
Definition: Matrix.h:19
Matrix(const Alloc &alloc)
Construct with allocator, for a dynamic matrix. Allocator element type must be int8.
Definition: Matrix.h:37
Matrix(const MatrixBase< T > &rhs)
Construct from matrix of any size. Asserts that any fixed dimensions in this matrix match those in rh...
Definition: Matrix.h:40
ptrdiff_t sdt
Size difference type, shorthand for ptrdiff_t.
Definition: Core.h:92
Matrix< matrix::dynamic, matrix::dynamic, Float > MatrixN_f
Definition: Matrix.h:49
Real ElemT
Definition: Matrix.h:15
Matrix< matrix::dynamic, matrix::dynamic, Double > MatrixN_d
Definition: Matrix.h:50
Matrix(Real scalar)
Initialize with scalar in every element.
Definition: Matrix.h:33
Real_ Real
Definition: Matrix.h:14
Matrix(const Real *a, sdt rows, sdt cols, bool rowMajor=true)
Initialize from array with dimensions (rows x cols). If the array is in row-major format set rowMajor...
Definition: Matrix.h:35
float Real
Real number type. See Real_ for real number operations and constants.
Definition: Real.h:21
MatrixS & resize(sdt rows, sdt cols)
Sets number of rows/columns and reallocates only if the size has changed (rows*cols). All previous data is lost on reallocation. Returns self.
Definition: Base.h:277
T * alloc(szt count=1)
Allocate memory for count number of T objects. Objects are not constructed.
Definition: Allocator.h:31
Matrix & operator=(const MatrixBase< T > &rhs)
Assign to matrix of any size. Asserts that any fixed dimensions in this matrix match those in rhs...
Definition: Matrix.h:44
Matrix(sdt rows, sdt cols)
Allocate elements for dimension sizes. Asserts that any fixed dimensions match rows / cols...
Definition: Matrix.h:31
Numeral< Real >::Real_ Real_
Operations and constants for Real type. See Float_, Double_.
Definition: Real.h:25
MatrixBase & operator=(const MatrixBase< T > &rhs)
Assign to matrix of any size. Asserts that any fixed dimensions in this matrix match those in rhs...
Definition: Base.h:97
Storage< Matrix< Rows, Cols, Real_, Options, Alloc_ > > Storage
Definition: Matrix.h:13
Matrix()
No init.
Definition: Matrix.h:29
Matrix base class.
Definition: Base.h:17
MatrixS & fromArray(const Num *a, bool rowMajor=true)
Initialize from array. If the array is in row-major format set rowMajor to true, otherwise set to fal...
Definition: Base.h:53
Global Honeycomb namespace.
Matrix< matrix::dynamic, matrix::dynamic > MatrixN
(m x n)-dimensional matrix types
Definition: Matrix.h:48