LCOV - code coverage report
Current view: top level - source - OpAdjoint.cpp (source / functions) Hit Total Coverage
Test: LibForBES Unit Tests Lines: 14 14 100.0 %
Date: 2016-04-18 Functions: 8 8 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* 
       2             :  * File:   OpAdjoint.cpp
       3             :  * Author: Pantelis Sopasakis
       4             :  * 
       5             :  * Created on September 15, 2015, 2:57 PM
       6             :  * 
       7             :  * ForBES is free software: you can redistribute it and/or modify
       8             :  * it under the terms of the GNU Lesser General Public License as published by
       9             :  * the Free Software Foundation, either version 3 of the License, or
      10             :  * (at your option) any later version.
      11             :  *  
      12             :  * ForBES is distributed in the hope that it will be useful,
      13             :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      14             :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
      15             :  * GNU Lesser General Public License for more details.
      16             :  * 
      17             :  * You should have received a copy of the GNU Lesser General Public License
      18             :  * along with ForBES. If not, see <http://www.gnu.org/licenses/>.
      19             :  */
      20             : 
      21             : #include "OpAdjoint.h"
      22             : 
      23           6 : OpAdjoint::OpAdjoint(LinearOperator& op) : LinearOperator(), m_originalOperator(op) {
      24             : 
      25           6 : }
      26             : 
      27          12 : OpAdjoint::~OpAdjoint() {
      28          12 : }
      29             : 
      30          11 : int OpAdjoint::call(Matrix& y, double alpha, Matrix& x, double gamma) {
      31          11 :     return m_originalOperator.callAdjoint(y, alpha, x, gamma);
      32             : }
      33             : 
      34           1 : int OpAdjoint::callAdjoint(Matrix& y, double alpha, Matrix& x, double gamma) {
      35           1 :     return m_originalOperator.call(y, alpha, x, gamma);
      36             : }
      37             : 
      38          17 : std::pair<size_t, size_t> OpAdjoint::dimensionIn() {
      39          17 :     return m_originalOperator.dimensionOut();
      40             : }
      41             : 
      42          25 : std::pair<size_t, size_t> OpAdjoint::dimensionOut() {
      43          25 :     return m_originalOperator.dimensionIn();
      44             : }
      45             : 
      46           2 : bool OpAdjoint::isSelfAdjoint() {
      47           2 :     return m_originalOperator.isSelfAdjoint();
      48             : }
      49             : 
      50             : 
      51             : 
      52             : 
      53             : 
      54             : 

Generated by: LCOV version 1.10