Skip to contents

dot product between vector and FunctionGrad

Usage

dot(op1, op2)

# S4 method for vector,FunctionGrad
dot(op1, op2)

Arguments

op1

a numeric vector.

op2

a FunctionGrad.

Value

A R6 class representing the advection term of a second order linear differential operator.

Examples

if (FALSE) {
library(femR)
data("unit_square")
mesh <- Mesh(unit_square)
Vh <- FunctionSpace(mesh)
f <- Function(Vh)
b <- c(1,1)
advection <- dot(b,grad(f))
}