On Tue, 12 Aug 2014, Miguel Angel Salazar de Troya wrote:
> This question seems kind of dumb, but I cannot find the way to to this
> operation when the vector is a Point object (for the case of the face
> normals). I've seen in the file tensor_tools.h there are several functions
> for inner products with TypeVector, but I cannot find a dot product of a
> TypeTensor and a TypeVector.
in TypeTensor:
/**
* Multiply a tensor and vector together, i.e. matrix-vector
* product.
* The tensor and vector may be of different types.
*/
template <typename T2>
TypeVector<typename CompareTypes<T,T2>::supertype>
operator * (const TypeVector<T2> &) const;
> Also, there seems to be two families of vector/matrices data structures.
> One the TypeVector/TypeTensor and the DenseVectorBase/DenseMatrixBase, what
> is the reason behind this design?
One is fixed-size; the other variable-size. Fixed-size operations are
easier for the compiler to optimize, but much less flexible.
---
Roy
------------------------------------------------------------------------------
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users