There was an error fetching the commit references. Please try again later.
Added cast function for vectors
This allows to easily change the type of elements in a vector expression, which can be useful to force a specific type when combining vectors with different element types. For example, a double-vector can be cast to float to avoid expensive computations in double precision.
Showing
- src/TNL/Containers/DistributedVectorExpressions.h 11 additions, 0 deletionssrc/TNL/Containers/DistributedVectorExpressions.h
- src/TNL/Containers/DistributedVectorViewExpressions.h 11 additions, 0 deletionssrc/TNL/Containers/DistributedVectorViewExpressions.h
- src/TNL/Containers/Expressions/DistributedExpressionTemplates.h 25 additions, 0 deletions...L/Containers/Expressions/DistributedExpressionTemplates.h
- src/TNL/Containers/Expressions/ExpressionTemplates.h 25 additions, 0 deletionssrc/TNL/Containers/Expressions/ExpressionTemplates.h
- src/TNL/Containers/Expressions/HorizontalOperations.h 14 additions, 0 deletionssrc/TNL/Containers/Expressions/HorizontalOperations.h
- src/TNL/Containers/Expressions/StaticExpressionTemplates.h 25 additions, 0 deletionssrc/TNL/Containers/Expressions/StaticExpressionTemplates.h
- src/TNL/Containers/StaticVectorExpressions.h 12 additions, 0 deletionssrc/TNL/Containers/StaticVectorExpressions.h
- src/TNL/Containers/VectorExpressions.h 11 additions, 0 deletionssrc/TNL/Containers/VectorExpressions.h
- src/TNL/Containers/VectorViewExpressions.h 11 additions, 0 deletionssrc/TNL/Containers/VectorViewExpressions.h
- src/UnitTests/Containers/VectorTest-1.h 44 additions, 40 deletionssrc/UnitTests/Containers/VectorTest-1.h
- src/UnitTests/Containers/VectorUnaryOperationsTest.h 28 additions, 0 deletionssrc/UnitTests/Containers/VectorUnaryOperationsTest.h
Loading