MCPcopy Create free account
hub / github.com/Kitware/VTK / GetMinAsInt64

Method GetMinAsInt64

ThirdParty/xdmf2/vtkxdmf2/libsrc/XdmfArray.cxx:1302–1318  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1300}
1301
1302XdmfInt64
1303XdmfArray::GetMinAsInt64( void ) {
1304XdmfLength i, Length;
1305XdmfInt64 Value, *Data;
1306
1307Length = this->GetNumberOfElements();
1308Data = new XdmfInt64[ Length ];
1309this->GetValues( 0, Data, Length);
1310Value = Data[0];
1311for( i = 0 ; i < Length ; i++ ){
1312 if ( Data[i] < Value ) {
1313 Value = Data[i];
1314 }
1315 }
1316delete [] Data;
1317return( Value );
1318}
1319
1320XdmfInt64
1321XdmfArray::GetMaxAsInt64( void ) {

Callers

nothing calls this directly

Calls 2

GetValuesMethod · 0.95
GetNumberOfElementsMethod · 0.45

Tested by

no test coverage detected