Home | History | Annotate | Download | only in doc

Lines Matching full:matrix

23 The Array class provides general-purpose arrays, as opposed to the Matrix class which
30 Array is a class template taking the same template parameters as Matrix.
31 As with Matrix, the first three template parameters are mandatory:
35 The last three template parameters are optional. Since this is exactly the same as for Matrix,
38 Eigen also provides typedefs for some common cases, in a way that is similar to the Matrix typedefs
41 the size and the scalar type, as in the Matrix typedefs explained on \ref TutorialMatrixClass "this page". For 2-dimensional arrays, we
91 This provides a functionality that is not directly available for Matrix objects.
107 multiplication as matrix product and arrays interpret multiplication as coefficient-wise product. Thus, two
141 \section TutorialArrayClassConvert Converting between array and matrix expressions
143 When should you use objects of the Matrix class and when should you use objects of the Array class? You cannot
144 apply Matrix operations on arrays, or Array operations on matrices. Thus, if you need to do linear algebraic
145 operations such as matrix multiplication, then you should use matrices; if you need to do coefficient-wise
147 Matrix and Array operations. In that case, you need to convert a matrix to an array or reversely. This gives
150 \link MatrixBase Matrix expressions \endlink have an \link MatrixBase::array() .array() \endlink method that
153 have a \link ArrayBase::matrix() .matrix() \endlink method. As with all Eigen expression abstractions,
155 Both \link MatrixBase::array() .array() \endlink and \link ArrayBase::matrix() .matrix() \endlink
158 Mixing matrices and arrays in an expression is forbidden with Eigen. For instance, you cannot add a matrix and
161 \link ArrayBase::matrix() .matrix()\endlink. The exception to this rule is the assignment operator: it is
162 allowed to assign a matrix expression to an array variable, or to assign an array expression to a matrix
165 The following example shows how to use array operations on a Matrix object by employing the
168 * to multiply them coefficient-wise and assigns the result to the matrix variable \c result (this is legal
169 because Eigen allows assigning array expressions to matrix variables).
184 Similarly, if \c array1 and \c array2 are arrays, then the expression <tt>array1.matrix() * array2.matrix()</tt>
185 computes their matrix product.
187 Here is a more advanced example. The expression <tt>(m.array() + 4).matrix() * m</tt> adds 4 to every
188 coefficient in the matrix \c m and then computes the matrix product of the result with \c m. Similarly, the
189 expression <tt>(m.array() * n.array()).matrix() * m</tt> computes the coefficient-wise product of the matrices
190 \c m and \c n and then the matrix product of the result with \c m.