02.05.2014 Views

CoreandServices.book - Ocean - Schlumberger

CoreandServices.book - Ocean - Schlumberger

CoreandServices.book - Ocean - Schlumberger

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Basics<br />

IsAllNonPositive – This method returns true if all properties are not positive.<br />

IndexDouble3 idx3 = new IndexDouble3(3.0, -5.0, -7.0);<br />

bool af = idx3.IsAllNonPositive();<br />

// result for af is false<br />

IndexDouble3 idx3 = new IndexDouble3(-3.0, -5.0, -7.0);<br />

bool af = idx3.IsAllNonPositive();<br />

// result for af is true<br />

IsAllNonZero – This method returns true if all of the properties are not equal to 0.<br />

IndexDouble3 idx3 = new IndexDouble3(0.0, 0.0, 0.0);<br />

bool af = idx3.IsAllNonZero();<br />

// result for af is false<br />

IndexDouble3 idx3 = new IndexDouble3(-3.0, -5.0, 7.0);<br />

bool af = idx3.IsAllNonZero();<br />

// result for af is true<br />

IsAllZero – This method returns true if all property values are equal to 0.<br />

IndexDouble3 idx3 = new IndexDouble3(3.0, 0.0, 0.0);<br />

bool af = idx3.IsAllZero();<br />

// result for af is false<br />

IndexDouble3 idx3 = new IndexDouble3(0.0, 0.0, 0.0);<br />

bool af = idx3.IsAllZero();<br />

// result for af is true<br />

Max – This method returns an Index made of the maximum value of each property.<br />

IndexDouble3 idx_1 = new IndexDouble3(3.0, 10.0, 7.0);<br />

IndexDouble3 idx_2 = new IndexDouble3(1.0, 15.0, 6.0);<br />

IndexDouble3 idx_max = IndexDouble3.Max(idx_1, idx_2);<br />

// idx_max value is (3.0, 15.0, 7.0)<br />

<strong>Schlumberger</strong> Private<br />

<strong>Ocean</strong> Services 4-103

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!