comparison libinterp/corefcn/graphics.cc @ 29931:7faff48840eb

prefer data over fortran_vec for read-only access to data See also the discussion here: https://octave.discourse.group/t/rename-uses-of-fortran-vec-to-data-for-clarity/1439 * Array.h (const T * Array<T>::fortran_vec (void) const): Deprecate. Change all uses to call data instead.
author John W. Eaton <jwe@octave.org>
date Fri, 30 Jul 2021 11:46:05 -0400
parents 3ab696e02f55
children a956ca6698d2
comparison
equal deleted inserted replaced
29930:aa98b5fdfbbb 29931:7faff48840eb
5970 inline ColumnVector 5970 inline ColumnVector
5971 cam2xform (const Array<double>& m) 5971 cam2xform (const Array<double>& m)
5972 { 5972 {
5973 ColumnVector retval (4, 1.0); 5973 ColumnVector retval (4, 1.0);
5974 5974
5975 memcpy (retval.fortran_vec (), m.fortran_vec (), sizeof (double)*3); 5975 memcpy (retval.fortran_vec (), m.data (), sizeof (double)*3);
5976 5976
5977 return retval; 5977 return retval;
5978 } 5978 }
5979 5979
5980 inline RowVector 5980 inline RowVector