@@ -148,7 +148,7 @@ public static Modules.Parameter AsParameter(this Tensor tensor)
148
148
///
149
149
/// Primarily intended for use in interactive notebooks.
150
150
/// </remarks>
151
- public static string str ( this Tensor tensor , string ? fltFormat = null , int ? width = null , string ? newLine = " \n " , CultureInfo ? cultureInfo = null , TensorStringStyle style = TensorStringStyle . Default )
151
+ public static string str ( this Tensor tensor , string ? fltFormat = null , int ? width = null , string ? newLine = null , CultureInfo ? cultureInfo = null , TensorStringStyle style = TensorStringStyle . Default )
152
152
{
153
153
return tensor . ToString ( style , fltFormat , width , cultureInfo , newLine ) ;
154
154
}
@@ -172,7 +172,7 @@ public static string str(this Tensor tensor, string? fltFormat = null, int? widt
172
172
///
173
173
/// Primarily intended for use in interactive notebooks.
174
174
/// </remarks>
175
- public static string jlstr ( this Tensor tensor , string ? fltFormat = null , int ? width = null , string ? newLine = " \n " , CultureInfo ? cultureInfo = null )
175
+ public static string jlstr ( this Tensor tensor , string ? fltFormat = null , int ? width = null , string ? newLine = null , CultureInfo ? cultureInfo = null )
176
176
{
177
177
return tensor . ToString ( TensorStringStyle . Julia , fltFormat , width , cultureInfo , newLine ) ;
178
178
}
@@ -214,7 +214,7 @@ public static string metastr(this Tensor tensor)
214
214
///
215
215
/// Primarily intended for use in interactive notebooks.
216
216
/// </remarks>
217
- public static string npstr ( this Tensor tensor , string ? fltFormat = "g5" , int ? width = 100 , string ? newLine = " \n " , CultureInfo ? cultureInfo = null )
217
+ public static string npstr ( this Tensor tensor , string ? fltFormat = "g5" , int ? width = 100 , string ? newLine = null , CultureInfo ? cultureInfo = null )
218
218
{
219
219
return tensor . ToString ( TensorStringStyle . Numpy , fltFormat , width , cultureInfo , newLine ) ;
220
220
}
@@ -238,7 +238,7 @@ public static string npstr(this Tensor tensor, string? fltFormat = "g5", int? wi
238
238
///
239
239
/// Primarily intended for use in interactive notebooks.
240
240
/// </remarks>
241
- public static string cstr ( this Tensor tensor , string ? fltFormat = "g5" , int ? width = 100 , string ? newLine = " \n " , CultureInfo ? cultureInfo = null )
241
+ public static string cstr ( this Tensor tensor , string ? fltFormat = "g5" , int ? width = 100 , string ? newLine = null , CultureInfo ? cultureInfo = null )
242
242
{
243
243
return tensor . ToString ( TensorStringStyle . CSharp , fltFormat , width , cultureInfo , newLine ) ;
244
244
}
@@ -259,7 +259,7 @@ public static string cstr(this Tensor tensor, string? fltFormat = "g5", int? wid
259
259
/// The style to use -- either 'default,' 'metadata,' 'julia,' or 'numpy'
260
260
/// </param>
261
261
/// <returns></returns>
262
- public static Tensor print ( this Tensor t , string ? fltFormat = "g5" , int ? width = 100 , string ? newLine = " \n " , CultureInfo ? cultureInfo = null , TensorStringStyle style = TensorStringStyle . Default )
262
+ public static Tensor print ( this Tensor t , string ? fltFormat = "g5" , int ? width = 100 , string ? newLine = null , CultureInfo ? cultureInfo = null , TensorStringStyle style = TensorStringStyle . Default )
263
263
{
264
264
Console . WriteLine ( t . ToString ( style , fltFormat , width , cultureInfo , newLine ) ) ;
265
265
return t ;
0 commit comments