------------------------------------------------------------------------------
| 752 | |
| 753 | //------------------------------------------------------------------------------ |
| 754 | double vtkDataArray::GetMaxNorm() |
| 755 | { |
| 756 | vtkIdType i; |
| 757 | double norm, maxNorm; |
| 758 | int nComponents = this->GetNumberOfComponents(); |
| 759 | |
| 760 | maxNorm = 0.0; |
| 761 | for (i = 0; i < this->GetNumberOfTuples(); i++) |
| 762 | { |
| 763 | norm = vtkMath::Norm(this->GetTuple(i), nComponents); |
| 764 | maxNorm = std::max(norm, maxNorm); |
| 765 | } |
| 766 | |
| 767 | return maxNorm; |
| 768 | } |
| 769 | |
| 770 | //------------------------------------------------------------------------------ |
| 771 | int vtkDataArray::CopyInformation(vtkInformation* infoFrom, vtkTypeBool deep) |