Difference between revisions of "ITK/Examples/Math/DotProduct"

From KitwarePublic
< ITK‎ | Examples
Jump to navigationJump to search
(Fixed bug.)
 
Line 1: Line 1:
==DotProduct.cxx==
+
{{warning|1=The media wiki content on this page is no longer maintained.  The examples presented on the https://itk.org/Wiki/*  pages likely require ITK version 4.13 or earlier releases.  In many cases, the examples on this page no longer conform to the best practices for modern ITK versions.
<source lang="cpp">
+
}}
#include <itkVector.h>
 
  
int main(int, char*[])
+
[https://itk.org/ITKExamples[ITK Sphinx based examples]]
{
 
  typedef itk::Vector<double, 3> VectorType;
 
 
 
  VectorType v1;
 
  v1[0] = 1.0;
 
  v1[1] = 2.0;
 
  v1[2] = 3.0;
 
 
 
  VectorType v2;
 
  v2[0] = 1.0;
 
  v2[1] = 2.0;
 
  v2[2] = 3.0;
 
 
 
  VectorType::ComponentType dotproduct = v1*v2;
 
  std::cout << "dot(v1,v2): " << dotproduct << std::endl;
 
  
  return EXIT_SUCCESS;
+
Deprecated content that is moved to sphinx
}
 
 
 
</source>
 
 
 
 
 
{{ITKCMakeLists|{{SUBPAGENAME}}}}
 

Latest revision as of 10:25, 30 May 2019

Warning: The media wiki content on this page is no longer maintained. The examples presented on the https://itk.org/Wiki/* pages likely require ITK version 4.13 or earlier releases. In many cases, the examples on this page no longer conform to the best practices for modern ITK versions.

[ITK Sphinx based examples]

Deprecated content that is moved to sphinx