Feel++ 0.111.0-preview.14
Finite Element Embedded Library in C++
ones.hpp File Reference
+ This graph shows which files directly or indirectly include this file:

Namespaces

namespace  Feel
 -*- mode: c++; coding: utf-8; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; show-trailing-whitespace: t -*-
 

Functions

template<int M, int N = M>
Expr< vf::detail::Ones< M, N > > Feel::vf::constant (double value)
 
template<int M, int N = M>
Expr< vf::detail::Ones< M, N > > Feel::vf::eye ()
 
template<int M, int N = M>
Expr< vf::detail::Ones< M, N > > Feel::vf::Id ()
 
template<int M, int N = M>
Expr< vf::detail::Ones< M, N > > Feel::vf::ones ()
 Return a matrix expression or N-dimensional array whose elements are all 1. More...
 
template<int M, int N = M>
Expr< vf::detail::Ones< M, N > > Feel::vf::zero ()
 

Detailed Description

Function Documentation

◆ ones()

template<int M, int N = M>
Expr< vf::detail::Ones< M, N > > Feel::vf::ones ( )

Return a matrix expression or N-dimensional array whose elements are all 1.

If you need to create a matrix whose values are all the same, you should use an expression like

val * ones<n,m>()
Expr< Val< typename mpl::if_< boost::is_arithmetic< ExprT1 >, mpl::identity< Cst< ExprT1 > >, mpl::identity< ExprT1 > >::type::type > > val(ExprT1 const &__e1)
precompute expression tensorThis allows for more efficient bi/linear form assembly
Definition: val.hpp:264
Author
Christophe

References Feel::vf::ones().

Referenced by Feel::vf::ones().